Skip to content

Commit 1e1a4b2

Browse files
committed
Reduce diff
1 parent 51add1a commit 1e1a4b2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tools/clinic/libclinic/function.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,15 +214,15 @@ class Parameter:
214214
def __repr__(self) -> str:
215215
return f'<clinic.Parameter {self.name!r}>'
216216

217+
def is_keyword_only(self) -> bool:
218+
return self.kind == inspect.Parameter.KEYWORD_ONLY
219+
217220
def is_positional_only(self) -> bool:
218221
return self.kind == inspect.Parameter.POSITIONAL_ONLY
219222

220223
def is_positional_or_keyword(self) -> bool:
221224
return self.kind == inspect.Parameter.POSITIONAL_OR_KEYWORD
222225

223-
def is_keyword_only(self) -> bool:
224-
return self.kind == inspect.Parameter.KEYWORD_ONLY
225-
226226
def is_vararg(self) -> bool:
227227
return self.kind == inspect.Parameter.VAR_POSITIONAL
228228

0 commit comments

Comments
 (0)