Azure / msrest-for-python

The runtime library "msrest" for AutoRest generated Python clients.
MIT License
41 stars 64 forks source link

adding py.typed broke models that did not wrap __init__ #211

Closed bmc-msft closed 4 years ago

bmc-msft commented 4 years ago

Because Models have the attributes defined in _attribute_map, which then get set via setattr, the models are broken unless they also define the values at the class or instance level.

lmazuel commented 4 years ago

Hi @bmc-msft When you say "broke", could you precise a little, adding py.typed should just allow mypy to check deeper, that could make mypy angry, but I don't see how it could "break" something. Would you have exact situation you have encountered?

lmazuel commented 4 years ago

Closing for inactivity