Skip to content

Commit 2116386

Browse files
authored
Update 'typing_extensions' to >=4.6.0 to fix python 3.12 error (#17312)
With earlier versions of typing_extensions, the following traceback is seen: ``` Traceback (most recent call last): File ".../bin/mypy", line 5, in <module> from mypy.__main__ import console_entry File ".../lib/python3.12/site-packages/mypy/__main__.py", line 9, in <module> from mypy.main import main, process_options File ".../lib/python3.12/site-packages/mypy/main.py", line 12, in <module> from typing_extensions import Final File ".../lib/python3.12/site-packages/typing_extensions.py", line 1174, in <module> class TypeVar(typing.TypeVar, _DefaultMixin, _root=True): TypeError: type 'typing.TypeVar' is not an acceptable base type ``` The error is addressed in typing_extensions in python/typing_extensions#162, which is included in the 4.6.0 release.
1 parent c3bbd1c commit 2116386

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mypy-requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# NOTE: this needs to be kept in sync with the "requires" list in pyproject.toml
2-
typing_extensions>=4.1.0
2+
typing_extensions>=4.6.0
33
mypy_extensions>=1.0.0
44
tomli>=1.1.0; python_version<'3.11'

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ requires = [
66
"setuptools >= 40.6.2",
77
"wheel >= 0.30.0",
88
# the following is from mypy-requirements.txt
9-
"typing_extensions>=4.1.0",
9+
"typing_extensions>=4.6.0",
1010
"mypy_extensions>=1.0.0",
1111
"tomli>=1.1.0; python_version<'3.11'",
1212
# the following is from build-requirements.txt

0 commit comments

Comments
 (0)