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
I get the errors below in the @property and def foo(self) -> str:
snippet.py:7:6: error: Signature of "foo" incompatible with supertype "A"
snippet.py:8:5: error: Signature of "foo" incompatible with supertype "A"
Note: something similar was reported (#8185) and it was closed saying that you can't override a writeable attribute with a read-only one, but in the case, it does have the setter (I even added a deleter to check if it made a difference, but it didn't).
So, is there any way to convert from an attribute in a superclass to a property keeping type-safety?
The text was updated successfully, but these errors were encountered:
In the code:
I get the errors below in the
@property
anddef foo(self) -> str:
Note: something similar was reported (#8185) and it was closed saying that you can't override a writeable attribute with a read-only one, but in the case, it does have the setter (I even added a deleter to check if it made a difference, but it didn't).
So, is there any way to convert from an attribute in a superclass to a property keeping type-safety?
The text was updated successfully, but these errors were encountered: