mvantellingen / python-zeep

A Python SOAP client
http://docs.python-zeep.org
Other
1.88k stars 586 forks source link

zeep.* attributes not available in mypy #1203

Open Dreamsorcerer opened 3 years ago

Dreamsorcerer commented 3 years ago

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 commented 3 years ago

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

from zeep.client import AsyncClient as AsyncClient