Skip to content

Commit d84e7a0

Browse files
committed
fix: Restores accidentally deleted test case
1 parent 15ff148 commit d84e7a0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/test_tc008.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
examples = [
1717
('', set()),
1818
("x: TypeAlias = 'int'", {'1:15 ' + TC008.format(alias='int')}),
19+
# this should emit a TC010 instead
20+
("x: TypeAlias = 'int' | None", set()),
1921
# this used to emit an error before fixing #164 if we wanted to handle
2022
# this case once again we could add a whitelist of subscriptable types
2123
("x: TypeAlias = 'Dict[int]'", set()),

0 commit comments

Comments
 (0)