mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 13:34:58 +08:00
Use PEP 604 syntax wherever possible (#7493)
This commit is contained in:
@@ -2,8 +2,8 @@ import sys
|
||||
from typing import Callable, Optional, Sequence, Text
|
||||
|
||||
if sys.platform != "win32":
|
||||
_CompleterT = Optional[Callable[[str, int], Optional[str]]]
|
||||
_CompDispT = Optional[Callable[[str, Sequence[str], int], None]]
|
||||
_CompleterT = Optional[Callable[[str, int], str | None]]
|
||||
_CompDispT = Callable[[str, Sequence[str], int], None] | None
|
||||
def parse_and_bind(__string: str) -> None: ...
|
||||
def read_init_file(__filename: Text | None = ...) -> None: ...
|
||||
def get_line_buffer() -> str: ...
|
||||
|
||||
Reference in New Issue
Block a user