You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dbanty
changed the title
Generated models/__init__.py does not explicitly re-export types
Explicitly re-export types in models/__init__.py
Jan 29, 2022
Describe the bug
In the generated client, the
models/__init__.py
looks something like:This makes it convenient to do:
But this is missing adding the types to
__all__
to properly mark them as exported:Without this,
mypy --strict
throws the following errors:See: https://mypy.readthedocs.io/en/stable/command_line.html#cmdoption-mypy-no-implicit-reexport
Expected behavior
No errors in usage when
mypy --strict
is used for this kind of import.Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: