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
Partially revert Function.copy() annotation
  • Loading branch information
erlend-aasland committed May 21, 2023
commit 0ecd3a15fdb7f800aa6b7c48e3d95d8187853f6e
2 changes: 1 addition & 1 deletion Tools/clinic/clinic.py
Original file line number Diff line number Diff line change
Expand Up @@ -2476,7 +2476,7 @@ def methoddef_flags(self) -> str | None:
def __repr__(self) -> str:
return '<clinic.Function ' + self.name + '>'

def copy(self, **overrides: dict[str, Any]) -> "Function":
def copy(self, **overrides) -> "Function":
Comment thread
erlend-aasland marked this conversation as resolved.
kwargs = {
'name': self.name, 'module': self.module, 'parameters': self.parameters,
'cls': self.cls, 'c_basename': self.c_basename,
Expand Down