Skip to content

Commit

Permalink
gh-104683: Argument clinic: Make the filename parameter to Clinic
Browse files Browse the repository at this point in the history
… required (#107439)
  • Loading branch information
AlexWaygood authored Jul 29, 2023
1 parent 2e9ddb9 commit 6c74b2f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Tools/clinic/clinic.py
Original file line number Diff line number Diff line change
Expand Up @@ -2015,7 +2015,6 @@ def __post_init__(self, args: tuple[str, ...]) -> None:
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:
Expand Down Expand Up @@ -2133,8 +2132,8 @@ def __init__(
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.)
Expand Down

0 comments on commit 6c74b2f

Please sign in to comment.