From f82950657ef89c43dd5753dad919127749dc016f Mon Sep 17 00:00:00 2001 From: Adriane Boyd Date: Wed, 24 May 2023 17:31:47 +0200 Subject: [PATCH] Add typing_extensions requirement for pydantic --- requirements.txt | 4 +++- setup.cfg | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index 783e6f0f8..81de4ce14 100644 --- a/requirements.txt +++ b/requirements.txt @@ -23,7 +23,9 @@ langcodes>=3.2.0,<4.0.0 # Official Python utilities setuptools packaging>=20.0 -typing_extensions>=3.7.4.1,<4.2.0; python_version < "3.8" +# Require and pin typing_extensions for all python versions as a workaround +# for pydantic incompatibility with typing_extensions>=4.6.0 +typing_extensions>=3.7.4.1,<4.6.0 # Development dependencies pre-commit>=2.13.0 cython>=0.25,<3.0 diff --git a/setup.cfg b/setup.cfg index 97e6efc21..971703844 100644 --- a/setup.cfg +++ b/setup.cfg @@ -63,7 +63,9 @@ install_requires = # Official Python utilities setuptools packaging>=20.0 - typing_extensions>=3.7.4,<4.2.0; python_version < "3.8" + # Require and pin typing_extensions for all python versions as a workaround + # for pydantic incompatibility with typing_extensions>=4.6.0 + typing_extensions>=3.7.4.1,<4.6.0 langcodes>=3.2.0,<4.0.0 [options.entry_points]