-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
bugmypy got something wrongmypy got something wrong
Description
Bug Report
mypy 1.9.0: self check fails with Python 3.11 / 3.12. This was found while updating the Debian packaging.
To Reproduce
# in a checkout of https://github.com/python/mypy/tree/1.9.0
PYTHONPATH=$PWD python3.11 -m mypy --config-file mypy_self_check.ini -p mypy
# or
PYTHONPATH=$PWD python3.12 -m mypy --config-file mypy_self_check.ini -p mypy
Expected Behavior
Success: no issues found in 179 source files or similar
Actual Behavior
mypy/checker.py:540: error: Parenthesized context managers are only supported in Python 3.9 and greater [syntax]
return True
^
mypy/checker.py:540: note: See https://mypy.rtfd.io/en/stable/_refs.html#code-syntax for more info
Found 1 error in 1 file (errors prevented further checking)
Your Environment
- Mypy version used: 1.9.0
- Mypy command-line flags: N/A
- Mypy configuration options from
mypy.ini(and other config files): - Python version used: 3.11.8-3 & 3.12.2-4
Metadata
Metadata
Assignees
Labels
bugmypy got something wrongmypy got something wrong