mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-07-12 03:10:52 +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:
@@ -85,7 +85,7 @@ class Cursor:
|
||||
def prepare(self, operation: str, newcursor: Literal[True]) -> Cursor: ...
|
||||
@overload
|
||||
def prepare(self, operation: str, newcursor: Literal[False]) -> Any: ...
|
||||
def print_message(self, *args, **kwargs): ...
|
||||
def print_message(self): ...
|
||||
def parsenamedquery(self, *args, **kwargs): ...
|
||||
def scroll(self, value: int, mode: Literal["absolute", "relative"] = ...) -> None: ...
|
||||
def server_cpu_time(self) -> int: ...
|
||||
|
||||
Reference in New Issue
Block a user