mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-04 19:28:50 +08:00
Use the Literal["foo", "bar"] syntax consistently (#6984)
This commit is contained in:
1 parent
7dd35556c4
commit
76af72831a
2 files changed
+3
-3
No files matched your search
@@ -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: ...
|
||||
|
||||
Reference in new issue
Block a user