Skip to content

Commit 05545e9

Browse files
committed
Fix two tiny bugs in the conformance suite
1 parent e6b1896 commit 05545e9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

conformance/results/mypy/aliases_recursive.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ output = """
33
aliases_recursive.py:19: error: Dict entry 1 has incompatible type "str": "complex"; expected "str": "int | str | float | list[Json] | dict[str, Json] | None" [dict-item]
44
aliases_recursive.py:20: error: List item 1 has incompatible type "complex"; expected "int | str | float | list[Json] | dict[str, Json] | None" [list-item]
55
aliases_recursive.py:38: error: Incompatible types in assignment (expression has type "tuple[int, tuple[str, int], tuple[int, tuple[int, list[int]]]]", variable has type "RecursiveTuple") [assignment]
6-
aliases_recursive.py:39: error: Name "t6" already defined on line 38 [no-redef]
6+
aliases_recursive.py:39: error: Incompatible types in assignment (expression has type "tuple[int, list[int]]", variable has type "RecursiveTuple") [assignment]
77
aliases_recursive.py:50: error: Dict entry 0 has incompatible type "str": "list[int]"; expected "str": "str | int | Mapping[str, RecursiveMapping]" [dict-item]
88
aliases_recursive.py:51: error: Dict entry 2 has incompatible type "str": "list[int]"; expected "str": "str | int | Mapping[str, RecursiveMapping]" [dict-item]
99
aliases_recursive.py:52: error: Dict entry 2 has incompatible type "str": "list[int]"; expected "str": "str | int | Mapping[str, RecursiveMapping]" [dict-item]

conformance/tests/aliases_recursive.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def func1(j1: Json) -> Json2:
3636
t4: RecursiveTuple = (1, ("1", 1), "2") # OK
3737
t5: RecursiveTuple = (1, ("1", 1), (1, (1, 2))) # OK
3838
t6: RecursiveTuple = (1, ("1", 1), (1, (1, [2]))) # E
39-
t6: RecursiveTuple = (1, [1]) # E
39+
t7: RecursiveTuple = (1, [1]) # E
4040

4141

4242
RecursiveMapping = str | int | Mapping[str, "RecursiveMapping"]

conformance/tests/enums_members.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def species(self) -> str: # Non-member property
7272
return "mammal"
7373

7474
def speak(self) -> None: # Non-member method
75-
print("meow" if self is Pet.CAT else "woof")
75+
print("meow" if self is Pet4.CAT else "woof")
7676

7777
class Nested: ... # Non-member nested class
7878

0 commit comments

Comments
 (0)