mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Use PEP 604 syntax wherever possible, part II (#7514)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
from typing import Any, Callable, Optional, Union
|
||||
from typing import Any, Callable, Union
|
||||
|
||||
_Macro = Union[tuple[str], tuple[str, Optional[str]]]
|
||||
_Macro = Union[tuple[str], tuple[str, str | None]]
|
||||
|
||||
def gen_lib_options(
|
||||
compiler: CCompiler, library_dirs: list[str], runtime_library_dirs: list[str], libraries: list[str]
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from typing import Any, Mapping, Optional, overload
|
||||
from typing import Any, Mapping, overload
|
||||
|
||||
_Option = tuple[str, Optional[str], str]
|
||||
_Option = tuple[str, str | None, str]
|
||||
_GR = tuple[list[str], OptionDummy]
|
||||
|
||||
def fancy_getopt(
|
||||
|
||||
Reference in New Issue
Block a user