From 2df37418de99eb2684f4c54c7064b66207cde909 Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Mon, 27 Jan 2025 22:43:16 +0100 Subject: [PATCH] Pin mypy_extensions to <2 --- mypy-requirements.txt | 2 +- pyproject.toml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mypy-requirements.txt b/mypy-requirements.txt index 8d41a3fc7003..4b70c6abcb1d 100644 --- a/mypy-requirements.txt +++ b/mypy-requirements.txt @@ -1,5 +1,5 @@ # NOTE: this needs to be kept in sync with the "requires" list in pyproject.toml # and the pins in setup.py typing_extensions>=4.6.0 -mypy_extensions>=1.0.0 +mypy_extensions>=1.0.0,<2 tomli>=1.1.0; python_version<'3.11' diff --git a/pyproject.toml b/pyproject.toml index 157c26385e4e..f1a15bccc343 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,9 +4,9 @@ requires = [ # and build-requirements.txt, because those are both needed for # self-typechecking :/ "setuptools >= 75.1.0", - # the following is from mypy-requirements.txt/setup.py + # the following is from mypy-requirements.txt "typing_extensions>=4.6.0", - "mypy_extensions>=1.0.0", + "mypy_extensions>=1.0.0,<2", "tomli>=1.1.0; python_version<'3.11'", # the following is from build-requirements.txt "types-psutil", @@ -48,7 +48,7 @@ requires-python = ">=3.9" dependencies = [ # When changing this, also update build-system.requires and mypy-requirements.txt "typing_extensions>=4.6.0", - "mypy_extensions>=1.0.0", + "mypy_extensions>=1.0.0,<2", "tomli>=1.1.0; python_version<'3.11'", ] dynamic = ["version"]