We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51add1a commit 1e1a4b2Copy full SHA for 1e1a4b2
Tools/clinic/libclinic/function.py
@@ -214,15 +214,15 @@ class Parameter:
214
def __repr__(self) -> str:
215
return f'<clinic.Parameter {self.name!r}>'
216
217
+ def is_keyword_only(self) -> bool:
218
+ return self.kind == inspect.Parameter.KEYWORD_ONLY
219
+
220
def is_positional_only(self) -> bool:
221
return self.kind == inspect.Parameter.POSITIONAL_ONLY
222
223
def is_positional_or_keyword(self) -> bool:
224
return self.kind == inspect.Parameter.POSITIONAL_OR_KEYWORD
225
- def is_keyword_only(self) -> bool:
- return self.kind == inspect.Parameter.KEYWORD_ONLY
-
226
def is_vararg(self) -> bool:
227
return self.kind == inspect.Parameter.VAR_POSITIONAL
228
0 commit comments