Skip to content

Explicit export#110

Open
Dreamsorcerer wants to merge 1 commit into
google:masterfrom
Dreamsorcerer:patch-1
Open

Explicit export#110
Dreamsorcerer wants to merge 1 commit into
google:masterfrom
Dreamsorcerer:patch-1

Conversation

@Dreamsorcerer

Copy link
Copy Markdown

We get mypy errors because nothing is explicitly exported from this library.

e.g.

fuzzers/payload_url.py:22:6: error: Module "atheris" does not explicitly export
attribute "instrument_imports"  [attr-defined]
    with atheris.instrument_imports():
         ^~~~~~~~~~~~~~~~~~~~~~~~~~

This explicitly exports everything mentioned in the README, using __all__. The alternative export mechanism is to use as syntax on the imports, if the first method is not preferred for any reason.

@TheShiftedBit

Copy link
Copy Markdown
Collaborator

There are actually many more things intentionally exported than just the ones mentioned in the readme.

@Dreamsorcerer

Copy link
Copy Markdown
Author

There are actually many more things intentionally exported than just the ones mentioned in the readme.

Do you want me to add everything in the file? Or feel free to just update it directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants