Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6c74b2f

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

File tree

Expand file treeCollapse file tree

1 file changed

+1
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-2
lines changed

‎Tools/clinic/clinic.py

Copy file name to clipboardExpand all lines: Tools/clinic/clinic.py
+1-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.