]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Bump mypy to 1.8.0 (#113385)
authorAlex Waygood <Alex.Waygood@Gmail.com>
Thu, 21 Dec 2023 23:14:24 +0000 (23:14 +0000)
committerGitHub <noreply@github.com>
Thu, 21 Dec 2023 23:14:24 +0000 (23:14 +0000)
Tools/clinic/clinic.py
Tools/requirements-dev.txt

index bf3199257f65c912e99c12f90bc7a7a27059c8e2..e8ba805bd53b4584770f307d9244a5312b6fcfea 100755 (executable)
@@ -5815,11 +5815,11 @@ class DSLParser:
         parameter_name = parameter.arg
         name, legacy, kwargs = self.parse_converter(parameter.annotation)
 
+        value: object
         if not default:
             if self.parameter_state is ParamState.OPTIONAL:
                 fail(f"Can't have a parameter without a default ({parameter_name!r}) "
                       "after a parameter with a default!")
-            value: Sentinels | Null
             if is_vararg:
                 value = NULL
                 kwargs.setdefault('c_default', "NULL")
index 3a2e62f70bbb600e52d75d73e5dc28096ae5ffa7..b89f86a35d61153e71154ac41d03df6ba71883aa 100644 (file)
@@ -1,6 +1,6 @@
 # Requirements file for external linters and checks we run on
 # Tools/clinic, Tools/cases_generator/, and Tools/peg_generator/ in CI
-mypy==1.7.1
+mypy==1.8.0
 
 # needed for peg_generator:
 types-psutil==5.9.5.17