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 bbedae3 commit b6f630bCopy full SHA for b6f630b
1 file changed
test-data/unit/check-narrowing.test
@@ -3030,9 +3030,15 @@ class A:
3030
if type(self) is type(x):
3031
reveal_type(self) # N: Revealed type is "__main__.A"
3032
reveal_type(x) # N: Revealed type is "__main__.A"
3033
+ else:
3034
+ reveal_type(self) # N: Revealed type is "__main__.A"
3035
+ reveal_type(x) # N: Revealed type is "builtins.object"
3036
if type(self) == type(x):
3037
3038
3039
3040
3041
3042
3043
[builtins fixtures/primitives.pyi]
3044
0 commit comments