mvantellingen / python-zeep

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

Mark imported symbols as public for Pyright compatibility #1302

Closed ernstwi closed 1 year ago

ernstwi commented 2 years ago

This is a fix for the following Pyright rule:

Imported symbols are considered private by default. If they use the “import A as A” (a redundant module alias), “from X import A as A” (a redundant symbol alias), or “from . import A” forms, symbol “A” is not private unless the name begins with an underscore.

The docs state that "typecheckers like Pyright" use this rule, but I don't know what standard this is based on TBH.

I ran make format after adding the aliases, which split all compound imports into separate lines.

mvantellingen commented 1 year ago

Seems duplicate with #1326 Closing this for now (although this was older)