Skip to content

Commit 6c74b2f

Browse files
authored
gh-104683: Argument clinic: Make the filename parameter to Clinic required (#107439)
1 parent 2e9ddb9 commit 6c74b2f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Tools/clinic/clinic.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2015,7 +2015,6 @@ def __post_init__(self, args: tuple[str, ...]) -> None:
20152015
if self.type =='file':
20162016
d = {}
20172017
filename = self.clinic.filename
2018-
assert filename is not None
20192018
d['path'] = filename
20202019
dirname, basename = os.path.split(filename)
20212020
if not dirname:
@@ -2133,8 +2132,8 @@ def __init__(
21332132
language: CLanguage,
21342133
printer: BlockPrinter | None = None,
21352134
*,
2135+
filename: str,
21362136
verify: bool = True,
2137-
filename: str | None = None
21382137
) -> None:
21392138
# maps strings to Parser objects.
21402139
# (instantiated from the "parsers" global.)

0 commit comments

Comments
 (0)