Big diff: Use new "|" union syntax (#5872)

This commit is contained in:
Akuli
2021-08-08 12:05:21 +03:00
committed by GitHub
parent b9adb7a874
commit ee487304d7
578 changed files with 8080 additions and 8966 deletions

View File

@@ -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: ...