gh-104683: Argument clinic: Make the `filename` parameter to `Clinic` required (#107439)

This commit is contained in:
Alex Waygood 2023-07-29 19:46:52 +01:00 committed by GitHub
parent 2e9ddb943c
commit 6c74b2f669
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

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