-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix mypy implicit reexport error #133
Comments
Alternatively, |
You can just do |
And it turns out that the star import doesn't really work either: python/mypy#10198 (comment) |
mypy.ini workaround: # https://github.com/konradhalas/dacite/issues/133
[mypy-dacite]
implicit_reexport = True |
I'm also running into this. Thanks for opening the issue. |
hi @markedwards - thank you for reporting this issue. Should be fixed in a7834ba |
As the fix is not released on PyPI yet, here is workaround for a # https://github.com/konradhalas/dacite/issues/133
[[tool.mypy.overrides]]
module = "dacite"
implicit_reexport = true (adapted from @Akuli) |
Following recommendations provided by @jessestricker at konradhalas/dacite#133
tests/azure_devops/variable_groups/test_service.py:6: error: Module "lib_team_services_common.azure_devops.services" does not explicitly export attribute "VariableGroupService"; implicit reexport disabled |
If you try to import
from_dict
withno_implicit_reexport
enabled in mypy, you get an error:This is easily fixed by simply defining
__all__
indacite/__init__.py
. I'm happy to do a PR if it helps.The text was updated successfully, but these errors were encountered: