Skip to content
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

zeep.* attributes not available in mypy #1203

Open
Dreamsorcerer opened this issue Mar 24, 2021 · 1 comment · May be fixed by #1204
Open

zeep.* attributes not available in mypy #1203

Dreamsorcerer opened this issue Mar 24, 2021 · 1 comment · May be fixed by #1204

Comments

@Dreamsorcerer
Copy link
Contributor

With code which references zeep.Settings or zeep.AsyncClient (for example), mypy produces this error:

: error: Module has no attribute "Settings"  [attr-defined]

It works fine if using the full name (e.g. zeep.settings.Settings).

Not sure what is confusing it.

@Dreamsorcerer
Copy link
Contributor Author

Maybe using the explicit reexport approach would solve it (in __init__.py):

from zeep.client import AsyncClient as AsyncClient

@Dreamsorcerer Dreamsorcerer linked a pull request Mar 24, 2021 that will close this issue
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 a pull request may close this issue.

1 participant