Skip to content

Commit

Permalink
chore: Disallow implicit re-exports of imported values in Python modules
Browse files Browse the repository at this point in the history
- Set Mypy option `no_implicit_reexport` to `True`.

From https://mypy.readthedocs.io/en/stable/command_line.html#cmdoption-mypy-no-implicit-reexport:

> […] [do] not re-export unless the item is imported using from-as or is included in `__all__`.

Ref: https://app.shortcut.com/cordada/story/6589 [sc-6589]
  • Loading branch information
fpinto-cdd committed May 7, 2024
1 parent a52a17f commit d49c401
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mypy.ini
Expand Up @@ -12,6 +12,7 @@ plugins =

follow_imports = normal
ignore_missing_imports = False
no_implicit_reexport = True
strict_optional = True
disallow_untyped_defs = True
check_untyped_defs = True
Expand Down

0 comments on commit d49c401

Please sign in to comment.