@@ -3035,10 +3035,10 @@ main:15: error: Unsupported left operand type for >= ("NoCmp")
30353035[case testAttrsIncrementalDunder]
30363036from a import A
30373037reveal_type(A) # N: Revealed type is "def (a: builtins.int) -> a.A"
3038- reveal_type(A.__lt__) # N: Revealed type is "def [_AT] (self: _AT`-1 , other: _AT`-1 ) -> builtins.bool"
3039- reveal_type(A.__le__) # N: Revealed type is "def [_AT] (self: _AT`-1 , other: _AT`-1 ) -> builtins.bool"
3040- reveal_type(A.__gt__) # N: Revealed type is "def [_AT] (self: _AT`-1 , other: _AT`-1 ) -> builtins.bool"
3041- reveal_type(A.__ge__) # N: Revealed type is "def [_AT] (self: _AT`-1 , other: _AT`-1 ) -> builtins.bool"
3038+ reveal_type(A.__lt__) # N: Revealed type is "def [_AT] (self: _AT`3 , other: _AT`3 ) -> builtins.bool"
3039+ reveal_type(A.__le__) # N: Revealed type is "def [_AT] (self: _AT`4 , other: _AT`4 ) -> builtins.bool"
3040+ reveal_type(A.__gt__) # N: Revealed type is "def [_AT] (self: _AT`5 , other: _AT`5 ) -> builtins.bool"
3041+ reveal_type(A.__ge__) # N: Revealed type is "def [_AT] (self: _AT`6 , other: _AT`6 ) -> builtins.bool"
30423042
30433043A(1) < A(2)
30443044A(1) <= A(2)
@@ -3072,10 +3072,10 @@ class A:
30723072[stale]
30733073[out2]
30743074main:2: note: Revealed type is "def (a: builtins.int) -> a.A"
3075- main:3: note: Revealed type is "def [_AT] (self: _AT`- 1, other: _AT`- 1) -> builtins.bool"
3076- main:4: note: Revealed type is "def [_AT] (self: _AT`-1 , other: _AT`-1 ) -> builtins.bool"
3077- main:5: note: Revealed type is "def [_AT] (self: _AT`-1 , other: _AT`-1 ) -> builtins.bool"
3078- main:6: note: Revealed type is "def [_AT] (self: _AT`-1 , other: _AT`-1 ) -> builtins.bool"
3075+ main:3: note: Revealed type is "def [_AT] (self: _AT`1, other: _AT`1) -> builtins.bool"
3076+ main:4: note: Revealed type is "def [_AT] (self: _AT`2 , other: _AT`2 ) -> builtins.bool"
3077+ main:5: note: Revealed type is "def [_AT] (self: _AT`3 , other: _AT`3 ) -> builtins.bool"
3078+ main:6: note: Revealed type is "def [_AT] (self: _AT`4 , other: _AT`4 ) -> builtins.bool"
30793079main:15: error: Unsupported operand types for < ("A" and "int")
30803080main:16: error: Unsupported operand types for <= ("A" and "int")
30813081main:17: error: Unsupported operand types for > ("A" and "int")
@@ -3963,10 +3963,10 @@ class A:
39633963tmp/b.py:3: note: Revealed type is "def (a: builtins.int) -> a.A"
39643964tmp/b.py:4: note: Revealed type is "def (builtins.object, builtins.object) -> builtins.bool"
39653965tmp/b.py:5: note: Revealed type is "def (builtins.object, builtins.object) -> builtins.bool"
3966- tmp/b.py:6: note: Revealed type is "def [_DT] (self: _DT`- 1, other: _DT`- 1) -> builtins.bool"
3967- tmp/b.py:7: note: Revealed type is "def [_DT] (self: _DT`-1 , other: _DT`-1 ) -> builtins.bool"
3968- tmp/b.py:8: note: Revealed type is "def [_DT] (self: _DT`-1 , other: _DT`-1 ) -> builtins.bool"
3969- tmp/b.py:9: note: Revealed type is "def [_DT] (self: _DT`-1 , other: _DT`-1 ) -> builtins.bool"
3966+ tmp/b.py:6: note: Revealed type is "def [_DT] (self: _DT`1, other: _DT`1) -> builtins.bool"
3967+ tmp/b.py:7: note: Revealed type is "def [_DT] (self: _DT`2 , other: _DT`2 ) -> builtins.bool"
3968+ tmp/b.py:8: note: Revealed type is "def [_DT] (self: _DT`3 , other: _DT`3 ) -> builtins.bool"
3969+ tmp/b.py:9: note: Revealed type is "def [_DT] (self: _DT`4 , other: _DT`4 ) -> builtins.bool"
39703970tmp/b.py:18: error: Unsupported operand types for < ("A" and "int")
39713971tmp/b.py:19: error: Unsupported operand types for <= ("A" and "int")
39723972tmp/b.py:20: error: Unsupported operand types for > ("A" and "int")
@@ -6325,7 +6325,7 @@ reveal_type(D.meth)
63256325reveal_type(D().meth)
63266326[out]
63276327[out2]
6328- tmp/m.py:4: note: Revealed type is "def [Self <: lib.C] (self: Self`0 , other: Self`0 ) -> Self`0 "
6328+ tmp/m.py:4: note: Revealed type is "def [Self <: lib.C] (self: Self`1 , other: Self`1 ) -> Self`1 "
63296329tmp/m.py:5: note: Revealed type is "def (other: m.D) -> m.D"
63306330
63316331[case testIncrementalNestedGenericCallableCrash]
0 commit comments