From 138e2493a28ec4f098ce404304f22b0d24c21a9b Mon Sep 17 00:00:00 2001 From: "Michael R. Crusoe" Date: Tue, 14 Nov 2023 15:20:26 +0100 Subject: [PATCH] some small tweaks for MyPy 1.7.0 --- mypy-requirements.txt | 2 +- mypy.ini | 1 - pyproject.toml | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/mypy-requirements.txt b/mypy-requirements.txt index 48e270fd..152dfc2f 100644 --- a/mypy-requirements.txt +++ b/mypy-requirements.txt @@ -1,4 +1,4 @@ -mypy==1.7.0 # update pyproject.toml as well +mypy[mypyc]==1.7.0 # update pyproject.toml as well black>=19.10b0 types-pkg_resources types-requests diff --git a/mypy.ini b/mypy.ini index 7cee2ab5..b13ad92b 100644 --- a/mypy.ini +++ b/mypy.ini @@ -5,4 +5,3 @@ show_column_numbers = true show_error_codes = true pretty = true warn_unreachable = True -new_type_inference = True diff --git a/pyproject.toml b/pyproject.toml index de2621cd..99077201 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,8 +1,8 @@ [build-system] requires = [ - "setuptools>=45", + "setuptools>=50", # 50 is to match mypyc's minimum "setuptools_scm[toml]>=8.0.4,<9", - 'mypy==1.7.0', # update mypy-requirements as well + 'mypy[mypyc]==1.7.0', # update mypy-requirements as well "black>=19.10b0,<23.12", "types-pkg_resources", "types-requests",