Skip to content

Commit cab649d

Browse files
committed
Two more affected tests that do not work with --update-data
1 parent 2e83a0c commit cab649d

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

test-data/unit/check-incremental.test

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3061,10 +3061,10 @@ main:15: error: Unsupported left operand type for >= ("NoCmp")
30613061
[case testAttrsIncrementalDunder]
30623062
from a import A
30633063
reveal_type(A) # N: Revealed type is "def (a: builtins.int) -> a.A"
3064-
reveal_type(A.__lt__) # N: Revealed type is "def [_AT] (self: _AT`3, other: _AT`3) -> builtins.bool"
3065-
reveal_type(A.__le__) # N: Revealed type is "def [_AT] (self: _AT`4, other: _AT`4) -> builtins.bool"
3066-
reveal_type(A.__gt__) # N: Revealed type is "def [_AT] (self: _AT`5, other: _AT`5) -> builtins.bool"
3067-
reveal_type(A.__ge__) # N: Revealed type is "def [_AT] (self: _AT`6, other: _AT`6) -> builtins.bool"
3064+
reveal_type(A.__lt__) # N: Revealed type is "def [_AT] (self: _AT`4, other: _AT`4) -> builtins.bool"
3065+
reveal_type(A.__le__) # N: Revealed type is "def [_AT] (self: _AT`5, other: _AT`5) -> builtins.bool"
3066+
reveal_type(A.__gt__) # N: Revealed type is "def [_AT] (self: _AT`6, other: _AT`6) -> builtins.bool"
3067+
reveal_type(A.__ge__) # N: Revealed type is "def [_AT] (self: _AT`7, other: _AT`7) -> builtins.bool"
30683068

30693069
A(1) < A(2)
30703070
A(1) <= A(2)
@@ -3098,10 +3098,10 @@ class A:
30983098
[stale]
30993099
[out2]
31003100
main:2: note: Revealed type is "def (a: builtins.int) -> a.A"
3101-
main:3: note: Revealed type is "def [_AT] (self: _AT`3, other: _AT`3) -> builtins.bool"
3102-
main:4: note: Revealed type is "def [_AT] (self: _AT`4, other: _AT`4) -> builtins.bool"
3103-
main:5: note: Revealed type is "def [_AT] (self: _AT`5, other: _AT`5) -> builtins.bool"
3104-
main:6: note: Revealed type is "def [_AT] (self: _AT`6, other: _AT`6) -> builtins.bool"
3101+
main:3: note: Revealed type is "def [_AT] (self: _AT`4, other: _AT`4) -> builtins.bool"
3102+
main:4: note: Revealed type is "def [_AT] (self: _AT`5, other: _AT`5) -> builtins.bool"
3103+
main:5: note: Revealed type is "def [_AT] (self: _AT`6, other: _AT`6) -> builtins.bool"
3104+
main:6: note: Revealed type is "def [_AT] (self: _AT`7, other: _AT`7) -> builtins.bool"
31053105
main:15: error: Unsupported operand types for < ("A" and "int")
31063106
main:16: error: Unsupported operand types for <= ("A" and "int")
31073107
main:17: error: Unsupported operand types for > ("A" and "int")

test-data/unit/pythoneval.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -825,7 +825,7 @@ MyDDict(dict)[0]
825825
_program.py:6: error: Argument 1 to "defaultdict" has incompatible type "type[list[_T]]"; expected "Optional[Callable[[], str]]"
826826
_program.py:9: error: Invalid index type "str" for "defaultdict[int, str]"; expected type "int"
827827
_program.py:9: error: Incompatible types in assignment (expression has type "int", target has type "str")
828-
_program.py:19: error: Argument 1 to "tst" has incompatible type "defaultdict[str, list[Never]]"; expected "defaultdict[int, list[Never]]"
828+
_program.py:19: error: Dict entry 0 has incompatible type "str": "list[Never]"; expected "int": "list[Never]"
829829
_program.py:23: error: Invalid index type "str" for "MyDDict[dict[Never, Never]]"; expected type "int"
830830

831831
[case testCollectionsAliases]

0 commit comments

Comments
 (0)