diff --git a/ert/data/record/_record.py b/ert/data/record/_record.py index 941560f3035..0e1467899d5 100644 --- a/ert/data/record/_record.py +++ b/ert/data/record/_record.py @@ -19,16 +19,13 @@ ) from beartype import beartype -from beartype.roar import ( # type: ignore - BeartypeDecorHintPepDeprecatedWarning, - BeartypeException, -) +from beartype.roar import BeartypeDecorHintPepDeprecationWarning, BeartypeException from pydantic import PositiveInt import ert # Mute PEP-585 warnings from Python 3.9: -warnings.simplefilter(action="ignore", category=BeartypeDecorHintPepDeprecatedWarning) +warnings.simplefilter(action="ignore", category=BeartypeDecorHintPepDeprecationWarning) number = Union[int, float] numerical_record_data = Union[List[number], Dict[str, number], Dict[int, number]] diff --git a/setup.py b/setup.py index 5c5fe447b50..a56e92ddfab 100644 --- a/setup.py +++ b/setup.py @@ -1,9 +1,9 @@ -import sys import os +import sys + from setuptools import find_packages -from skbuild import setup from setuptools_scm import get_version - +from skbuild import setup # Corporate networks tend to be behind a proxy server with their own non-public # SSL certificates. Conan keeps its own certificates, whose path we can override @@ -68,7 +68,7 @@ def package_files(directory): "ansicolors==1.1.8", "async-exit-stack; python_version < '3.7'", "async-generator", - "beartype >= 0.8.0, <0.9.0", + "beartype >= 0.9.1", "cloudevents", "cloudpickle", "tqdm>=4.62.0", diff --git a/types-requirements.txt b/types-requirements.txt index ac66c93e573..3e615953b2f 100644 --- a/types-requirements.txt +++ b/types-requirements.txt @@ -1,4 +1,4 @@ -mypy != 0.920 +mypy < 0.920 types-aiofiles types-requests types-pkg_resources