-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Using a pipe symbol in typing.Literal
string
#16368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Duplicate of #16367 |
It's a dog-eat-dog world out here on the mypy issue tracker, I'm afraid ;) |
Sorry |
Bug Report
Using
mypy 1.6.1
, I'm unable to use a pipe symbol in a string used intyping.Literal
:To Reproduce
Expected Behavior
No issue with
"foo|bar"
.Actual Behavior
This gives the following output:
Your Environment
mypy.ini
(and other config files):The text was updated successfully, but these errors were encountered: