Skip to content

Conversation

mthuurne
Copy link

@mthuurne mthuurne commented Jan 2, 2024

This avoids the re-exports from being flagged as errors when a project that uses Invoke is checked using mypy --no-implicit-reexport.

It also obsoletes all flake8 suppressions in __init__.py.

I assumed the following names should be re-exported:

  • every imported name that wasn't used in __init__.py itself
  • context.Context and runners.Result

I assumed the following names should not be re-exported:

  • typing.Any and typing.Optional

This avoids the re-exports from being flagged as errors when a project
that uses Invoke is checked using `mypy --no-implicit-reexport`.

It also obsoletes all flake8 suppressions in `__init__.py`.
@ogenstad
Copy link

Was also going to open a PR for this. I'd move the __all__ so it's below the imports though.

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