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
str does the trick again?
  • Loading branch information
erlend-aasland committed May 21, 2023
commit e239ab5cf939aa68d2b880f820e9827505a6b7fb
4 changes: 2 additions & 2 deletions Tools/clinic/clinic.py
Original file line number Diff line number Diff line change
Expand Up @@ -2506,7 +2506,7 @@ def __init__(
*,
default = inspect.Parameter.empty,
function: Function,
converter: CConverter,
converter: "CConverter",
annotation = inspect.Parameter.empty,
docstring: str | None = None,
group: int = 0
Expand Down Expand Up @@ -2535,7 +2535,7 @@ def is_vararg(self) -> bool:
def is_optional(self) -> bool:
return not self.is_vararg() and (self.default is not unspecified)

def copy(self, **overrides) -> Parameter:
def copy(self, **overrides) -> "Parameter":
kwargs = {
'name': self.name, 'kind': self.kind, 'default':self.default,
'function': self.function, 'converter': self.converter, 'annotation': self.annotation,
Expand Down