KEMBAR78
Suggest typing.Literal for exit-return error messages by cdce8p · Pull Request #18541 · python/mypy · GitHub
Skip to content

Conversation

cdce8p
Copy link
Collaborator

@cdce8p cdce8p commented Jan 26, 2025

typing.Literal was added to the stdlib in Python 3.8.

@github-actions
Copy link
Contributor

Diff from mypy_primer, showing the effect of this PR on open source code:

prefect (https://github.com/PrefectHQ/prefect)
- src/prefect/_internal/concurrency/cancellation.py:267: note: Use "typing_extensions.Literal[False]" as the return type or change it to "None"
+ src/prefect/_internal/concurrency/cancellation.py:267: note: Use "typing.Literal[False]" as the return type or change it to "None"

@cdce8p cdce8p added the upnext label Jan 26, 2025
@hauntsaninja hauntsaninja merged commit 6274218 into python:master Jan 27, 2025
18 checks passed
@cdce8p cdce8p deleted the suggest-typing-literal branch January 27, 2025 01:48
x612skm pushed a commit to x612skm/mypy-dev that referenced this pull request Feb 24, 2025
`typing.Literal` was added to the stdlib in Python 3.8.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants