0
0
mirror of https://github.com/python/cpython.git synced 2024-11-29 00:56:12 +01:00

Bump mypy to 1.8.0 (#113385)

This commit is contained in:
Alex Waygood 2023-12-21 23:14:24 +00:00 committed by GitHub
parent d058eaeed4
commit 7de9855410
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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")

View 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