Skip to content

Commit b8c1811

Browse files
Update stdlib/@tests/test_cases/check_types.py
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
1 parent 8c60e06 commit b8c1811

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

stdlib/@tests/test_cases/check_types.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,6 @@ def foo(self) -> None:
6767

6868
# ideally this would be `_SpecialForm` (Union)
6969
assert_type(union_type | Literal[1], types.UnionType | Any)
70-
# pyright special cases this operation
71-
assert_type(union_type[int], object) # pyright: ignore[reportAssertTypeFailure]
70+
# Both mypy and pyright special-case this operation,
71+
# but in different ways, so we just check that no error is emitted:
72+
union_type[int]

0 commit comments

Comments
 (0)