We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e49a9f2 commit 2c0ca37Copy full SHA for 2c0ca37
test-data/unit/check-classes.test
@@ -831,9 +831,7 @@ class A:
831
@property
832
def f(self) -> str: pass
833
a = A() # type: A
834
-s = '' # type: str
835
-s = a.f
836
-a = a.f # E: Incompatible types in assignment (expression has type "str", variable has type "A")
+reveal_type(a.f) # E: Revealed type is 'builtins.str'
837
[builtins fixtures/property.pyi]
838
839
[case testAssigningToReadOnlyProperty]
@@ -910,9 +908,7 @@ class A:
910
908
f = D()
911
909
912
913
914
915
916
917
[case testSettingDataDescriptor]
918
import typing
0 commit comments