You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The semantic analyzer treats properties as overloaded functions.
This was previously ignored by stubgen but regressed in python#15232.
Fixespython#16300
The semantic analyzer treats properties as overloaded functions. This
was previously ignored by stubgen but regressed in #15232.
This PR restores the original behavior.
Fixes#16300
I am having some class like
On creating the stubgen pyi file, the setter is not available.
If the implementing python code is having the
Then mypy gives error as the property is read-only.
error: Property "property_a " defined in "MyClass" is read-only [misc]
Expected Behavior
Expected to have the setter in *.pyi
Actual Behavior
On Creating stubgen for this, got the *.pyi with the following content
Your Environment
The text was updated successfully, but these errors were encountered: