mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-07-19 22:50:29 +08:00
Fix various argument of extension modules (#13651)
* Mark various positional-only arguments: These are all positional-only arguments in C code using the `METH_O` flag. * Remove various `*args, **kwargs` arguments that are using the `METH_NOARGS` flag in C.
This commit is contained in:
@@ -632,8 +632,8 @@ class Match(Generic[AnyStr]):
|
||||
def ends(self, group: int | str = ..., /) -> list[int]: ...
|
||||
@overload
|
||||
def ends(self, group1: int | str, group2: int | str, /, *groups: int | str) -> tuple[list[int], ...]: ...
|
||||
def expand(self, template: AnyStr) -> AnyStr: ...
|
||||
def expandf(self, format: AnyStr) -> AnyStr: ...
|
||||
def expand(self, template: AnyStr, /) -> AnyStr: ...
|
||||
def expandf(self, format: AnyStr, /) -> AnyStr: ...
|
||||
@overload
|
||||
def captures(self, group: int | str = ..., /) -> list[AnyStr]: ...
|
||||
@overload
|
||||
|
||||
Reference in New Issue
Block a user