Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Make mypy happy
  • Loading branch information
erlend-aasland committed Mar 1, 2024
commit 972d0dbd3662e0414af3677f77aaa752b93a34dc
1 change: 1 addition & 0 deletions Tools/clinic/clinic.py
Original file line number Diff line number Diff line change
Expand Up @@ -5280,6 +5280,7 @@ def state_parameters_start(self, line: str) -> None:
if not self.indent.infer(line):
return self.next(self.state_function_docstring, line)

assert self.function
Comment thread
erlend-aasland marked this conversation as resolved.
Outdated
if self.function.kind in {GETTER, SETTER}:
getset = self.function.kind.name.lower()
fail(f"@{getset} methods cannot define parameters")
Expand Down