Open mthuurne opened 10 months ago
This avoids the re-exports from being flagged as errors when a project that uses Invoke is checked using mypy --no-implicit-reexport.
mypy --no-implicit-reexport
It also obsoletes all flake8 suppressions in __init__.py.
__init__.py
I assumed the following names should be re-exported:
context.Context
runners.Result
I assumed the following names should not be re-exported:
typing.Any
typing.Optional
Was also going to open a PR for this. I'd move the __all__ so it's below the imports though.
__all__
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:
__init__.py
itselfcontext.Context
andrunners.Result
I assumed the following names should not be re-exported:
typing.Any
andtyping.Optional