mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
Big diff: Use new "|" union syntax (#5872)
This commit is contained in:
@@ -4,12 +4,10 @@ if sys.version_info < (3, 8):
|
||||
import os
|
||||
|
||||
DEV_NULL = os.devnull
|
||||
from typing import NamedTuple, Optional, Tuple
|
||||
from typing import NamedTuple, Tuple
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
def libc_ver(
|
||||
executable: Optional[str] = ..., lib: str = ..., version: str = ..., chunksize: int = ...
|
||||
) -> Tuple[str, str]: ...
|
||||
def libc_ver(executable: str | None = ..., lib: str = ..., version: str = ..., chunksize: int = ...) -> Tuple[str, str]: ...
|
||||
|
||||
else:
|
||||
def libc_ver(executable: str = ..., lib: str = ..., version: str = ..., chunksize: int = ...) -> Tuple[str, str]: ...
|
||||
|
||||
Reference in New Issue
Block a user