Skip to content

Commit

Permalink
Forgot to comment out the directives...
Browse files Browse the repository at this point in the history
  • Loading branch information
A5rocks committed Dec 26, 2021
1 parent 3ffc343 commit ae8ac73
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test-data/unit/semanal-errors.test
Original file line number Diff line number Diff line change
Expand Up @@ -844,13 +844,13 @@ cast(str, target=None) # E: "cast" must be called with 2 positional arguments
from typing import Any
Any(str, None) # E: Any(...) is no longer supported. Use cast(Any, ...) instead
Any(arg=str) # E: Any(...) is no longer supported. Use cast(Any, ...) instead
[out]
#[out]

# TODO: fix this
# [case testTypeListAsType]
#
# def f(x:[int, str]) -> None: # E: Bracketed expression "[...]" is not valid as a type \
# # N: Did you mean "List[...]"?
# def f(x:[int, str]) -> None: $ E: Bracketed expression "[...]" is not valid as a type \
# $ N: Did you mean "List[...]"?
# pass
# [out]

Expand Down

0 comments on commit ae8ac73

Please sign in to comment.