@@ -3642,10 +3642,10 @@ from a import A
36423642reveal_type(A) # E: Revealed type is 'def (a: builtins.int) -> a.A'
36433643reveal_type(A.__eq__) # E: Revealed type is 'def (self: a.A, other: builtins.object) -> builtins.bool'
36443644reveal_type(A.__ne__) # E: Revealed type is 'def (self: a.A, other: builtins.object) -> builtins.bool'
3645- reveal_type(A.__lt__) # E: Revealed type is 'def [AT] (self: AT`1, other: AT`1) -> builtins.bool'
3646- reveal_type(A.__le__) # E: Revealed type is 'def [AT] (self: AT`1, other: AT`1) -> builtins.bool'
3647- reveal_type(A.__gt__) # E: Revealed type is 'def [AT] (self: AT`1, other: AT`1) -> builtins.bool'
3648- reveal_type(A.__ge__) # E: Revealed type is 'def [AT] (self: AT`1, other: AT`1) -> builtins.bool'
3645+ reveal_type(A.__lt__) # E: Revealed type is 'def [AT] (self: AT`- 1, other: AT`- 1) -> builtins.bool'
3646+ reveal_type(A.__le__) # E: Revealed type is 'def [AT] (self: AT`- 1, other: AT`- 1) -> builtins.bool'
3647+ reveal_type(A.__gt__) # E: Revealed type is 'def [AT] (self: AT`- 1, other: AT`- 1) -> builtins.bool'
3648+ reveal_type(A.__ge__) # E: Revealed type is 'def [AT] (self: AT`- 1, other: AT`- 1) -> builtins.bool'
36493649
36503650A(1) < A(2)
36513651A(1) <= A(2)
@@ -3681,10 +3681,10 @@ class A:
36813681main:2: error: Revealed type is 'def (a: builtins.int) -> a.A'
36823682main:3: error: Revealed type is 'def (self: a.A, other: builtins.object) -> builtins.bool'
36833683main:4: error: Revealed type is 'def (self: a.A, other: builtins.object) -> builtins.bool'
3684- main:5: error: Revealed type is 'def [AT] (self: AT`1, other: AT`1) -> builtins.bool'
3685- main:6: error: Revealed type is 'def [AT] (self: AT`1, other: AT`1) -> builtins.bool'
3686- main:7: error: Revealed type is 'def [AT] (self: AT`1, other: AT`1) -> builtins.bool'
3687- main:8: error: Revealed type is 'def [AT] (self: AT`1, other: AT`1) -> builtins.bool'
3684+ main:5: error: Revealed type is 'def [AT] (self: AT`- 1, other: AT`- 1) -> builtins.bool'
3685+ main:6: error: Revealed type is 'def [AT] (self: AT`- 1, other: AT`- 1) -> builtins.bool'
3686+ main:7: error: Revealed type is 'def [AT] (self: AT`- 1, other: AT`- 1) -> builtins.bool'
3687+ main:8: error: Revealed type is 'def [AT] (self: AT`- 1, other: AT`- 1) -> builtins.bool'
36883688main:17: error: Unsupported operand types for < ("A" and "int")
36893689main:18: error: Unsupported operand types for <= ("A" and "int")
36903690main:19: error: Unsupported operand types for > ("A" and "int")
@@ -4526,10 +4526,10 @@ class A:
45264526tmp/b.py:3: error: Revealed type is 'def (a: builtins.int) -> a.A'
45274527tmp/b.py:4: error: Revealed type is 'def (builtins.object, builtins.object) -> builtins.bool'
45284528tmp/b.py:5: error: Revealed type is 'def (builtins.object, builtins.object) -> builtins.bool'
4529- tmp/b.py:6: error: Revealed type is 'def [T] (self: T`1, other: T`1) -> builtins.bool'
4530- tmp/b.py:7: error: Revealed type is 'def [T] (self: T`1, other: T`1) -> builtins.bool'
4531- tmp/b.py:8: error: Revealed type is 'def [T] (self: T`1, other: T`1) -> builtins.bool'
4532- tmp/b.py:9: error: Revealed type is 'def [T] (self: T`1, other: T`1) -> builtins.bool'
4529+ tmp/b.py:6: error: Revealed type is 'def [T] (self: T`- 1, other: T`- 1) -> builtins.bool'
4530+ tmp/b.py:7: error: Revealed type is 'def [T] (self: T`- 1, other: T`- 1) -> builtins.bool'
4531+ tmp/b.py:8: error: Revealed type is 'def [T] (self: T`- 1, other: T`- 1) -> builtins.bool'
4532+ tmp/b.py:9: error: Revealed type is 'def [T] (self: T`- 1, other: T`- 1) -> builtins.bool'
45334533tmp/b.py:18: error: Unsupported operand types for < ("A" and "int")
45344534tmp/b.py:19: error: Unsupported operand types for <= ("A" and "int")
45354535tmp/b.py:20: error: Unsupported operand types for > ("A" and "int")
0 commit comments