summaryrefslogtreecommitdiffstats
path: root/Tools/clinic
diff options
context:
space:
mode:
authorAlex Waygood <Alex.Waygood@Gmail.com>2023-12-21 23:14:24 (GMT)
committerGitHub <noreply@github.com>2023-12-21 23:14:24 (GMT)
commit7de9855410d034b2b7624a057dbf7c3f58ee5328 (patch)
treeb7862e3a73f8ef61e5c0f8faefd4d51dae19333a /Tools/clinic
parentd058eaeed44766a8291013b275ad22f153935d3b (diff)
downloadcpython-7de9855410d034b2b7624a057dbf7c3f58ee5328.zip
cpython-7de9855410d034b2b7624a057dbf7c3f58ee5328.tar.gz
cpython-7de9855410d034b2b7624a057dbf7c3f58ee5328.tar.bz2
Bump mypy to 1.8.0 (#113385)
Diffstat (limited to 'Tools/clinic')
-rwxr-xr-xTools/clinic/clinic.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/clinic/clinic.py b/Tools/clinic/clinic.py
index bf31992..e8ba805 100755
--- a/Tools/clinic/clinic.py
+++ b/Tools/clinic/clinic.py
@@ -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")