@@ -3642,10 +3642,10 @@ from a import A
3642
3642
reveal_type(A) # E: Revealed type is 'def (a: builtins.int) -> a.A'
3643
3643
reveal_type(A.__eq__) # E: Revealed type is 'def (self: a.A, other: builtins.object) -> builtins.bool'
3644
3644
reveal_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'
3649
3649
3650
3650
A(1) < A(2)
3651
3651
A(1) <= A(2)
@@ -3681,10 +3681,10 @@ class A:
3681
3681
main:2: error: Revealed type is 'def (a: builtins.int) -> a.A'
3682
3682
main:3: error: Revealed type is 'def (self: a.A, other: builtins.object) -> builtins.bool'
3683
3683
main: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'
3688
3688
main:17: error: Unsupported operand types for < ("A" and "int")
3689
3689
main:18: error: Unsupported operand types for <= ("A" and "int")
3690
3690
main:19: error: Unsupported operand types for > ("A" and "int")
@@ -4526,10 +4526,10 @@ class A:
4526
4526
tmp/b.py:3: error: Revealed type is 'def (a: builtins.int) -> a.A'
4527
4527
tmp/b.py:4: error: Revealed type is 'def (builtins.object, builtins.object) -> builtins.bool'
4528
4528
tmp/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'
4533
4533
tmp/b.py:18: error: Unsupported operand types for < ("A" and "int")
4534
4534
tmp/b.py:19: error: Unsupported operand types for <= ("A" and "int")
4535
4535
tmp/b.py:20: error: Unsupported operand types for > ("A" and "int")
0 commit comments