mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
Big diff: Use new "|" union syntax (#5872)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from typing import Any, Iterable, Iterator, Optional, Text, Tuple, TypeVar
|
||||
from typing import Any, Iterable, Iterator, Text, Tuple, TypeVar
|
||||
|
||||
from .connections import Connection
|
||||
|
||||
@@ -18,10 +18,10 @@ class Cursor:
|
||||
def close(self) -> None: ...
|
||||
def setinputsizes(self, *args) -> None: ...
|
||||
def setoutputsizes(self, *args) -> None: ...
|
||||
def nextset(self) -> Optional[bool]: ...
|
||||
def nextset(self) -> bool | None: ...
|
||||
def mogrify(self, query: Text, args: object = ...) -> str: ...
|
||||
def execute(self, query: Text, args: object = ...) -> int: ...
|
||||
def executemany(self, query: Text, args: Iterable[object]) -> Optional[int]: ...
|
||||
def executemany(self, query: Text, args: Iterable[object]) -> int | None: ...
|
||||
def callproc(self, procname: Text, args: Iterable[Any] = ...) -> Any: ...
|
||||
def scroll(self, value: int, mode: Text = ...) -> None: ...
|
||||
def __enter__(self: _SelfT) -> _SelfT: ...
|
||||
|
||||
Reference in New Issue
Block a user