summaryrefslogtreecommitdiffstats
path: root/Tools/clinic
diff options
context:
space:
mode:
authorAlex Waygood <Alex.Waygood@Gmail.com>2023-07-29 18:46:52 (GMT)
committerGitHub <noreply@github.com>2023-07-29 18:46:52 (GMT)
commit6c74b2f66957912d4202869939499864ca268e23 (patch)
treee8f5c4837349c19944a7910a4ef158b931fe6ff1 /Tools/clinic
parent2e9ddb943c2b61216f473c92a434a9adeaf483d7 (diff)
downloadcpython-6c74b2f66957912d4202869939499864ca268e23.zip
cpython-6c74b2f66957912d4202869939499864ca268e23.tar.gz
cpython-6c74b2f66957912d4202869939499864ca268e23.tar.bz2
gh-104683: Argument clinic: Make the `filename` parameter to `Clinic` required (#107439)
Diffstat (limited to 'Tools/clinic')
-rwxr-xr-xTools/clinic/clinic.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Tools/clinic/clinic.py b/Tools/clinic/clinic.py
index cb999c1..3c16dc3 100755
--- a/Tools/clinic/clinic.py
+++ b/Tools/clinic/clinic.py
@@ -2015,7 +2015,6 @@ class Destination:
if self.type =='file':
d = {}
filename = self.clinic.filename
- assert filename is not None
d['path'] = filename
dirname, basename = os.path.split(filename)
if not dirname:
@@ -2133,8 +2132,8 @@ impl_definition block
language: CLanguage,
printer: BlockPrinter | None = None,
*,
+ filename: str,
verify: bool = True,
- filename: str | None = None
) -> None:
# maps strings to Parser objects.
# (instantiated from the "parsers" global.)