Use the Literal["foo", "bar"] syntax consistently (#6984)

This commit is contained in:
Alex Waygood
2022-01-20 18:16:04 +00:00
committed by GitHub
parent 7dd35556c4
commit 76af72831a
2 changed files with 3 additions and 3 deletions

View File

@@ -72,7 +72,7 @@ class Cursor:
def prepare(self, operation: str, newcursor: Literal[True]) -> Cursor: ...
@overload
def prepare(self, operation: str, newcursor: Literal[False]) -> Any: ...
def scroll(self, value: int, mode: Literal["absolute"] | Literal["relative"] = ...) -> None: ...
def scroll(self, value: int, mode: Literal["absolute", "relative"] = ...) -> None: ...
def server_cpu_time(self) -> int: ...
def server_memory_usage(self) -> int: ...
def server_processing_time(self) -> int: ...