Skip to content

Commit

Permalink
Fix last mypy error
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWaygood committed Jul 14, 2023
1 parent 6891e14 commit f9cb537
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tools/clinic/clinic.py
Original file line number Diff line number Diff line change
Expand Up @@ -798,8 +798,8 @@ def output_templates(
) -> dict[str, str]:
parameters = list(f.parameters.values())
assert parameters
assert isinstance(parameters[0].converter, self_converter)
del parameters[0]
first_param = parameters.pop(0)
assert isinstance(first_param.converter, self_converter)
requires_defining_class = False
if parameters and isinstance(parameters[0].converter, defining_class_converter):
requires_defining_class = True
Expand Down

0 comments on commit f9cb537

Please sign in to comment.