mirror of
https://github.com/python/cpython.git
synced 2025-09-30 20:31:52 +00:00
gh-104683: Argument clinic: Make the filename
parameter to Clinic
required (#107439)
This commit is contained in:
parent
2e9ddb943c
commit
6c74b2f669
1 changed files with 1 additions and 2 deletions
|
@ -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.)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue