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

This commit is contained in:
Alex Waygood authored and GitHub committed 2022-01-20 20:16:04 +02:00
1 parent 7dd35556c4
commit 76af72831a
2 files changed
+3 -3

No files matched your search

+1 -1
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: ...