mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-22 19:13:34 +08:00
Use PEP 585 syntax wherever possible (#6717)
This commit is contained in:
@@ -4,7 +4,7 @@ if sys.version_info < (3, 8):
|
||||
import os
|
||||
|
||||
DEV_NULL = os.devnull
|
||||
from typing import NamedTuple, Tuple
|
||||
from typing import NamedTuple
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
def libc_ver(executable: str | None = ..., lib: str = ..., version: str = ..., chunksize: int = ...) -> tuple[str, str]: ...
|
||||
@@ -17,11 +17,11 @@ if sys.version_info < (3, 8):
|
||||
distname: str = ...,
|
||||
version: str = ...,
|
||||
id: str = ...,
|
||||
supported_dists: Tuple[str, ...] = ...,
|
||||
supported_dists: tuple[str, ...] = ...,
|
||||
full_distribution_name: bool = ...,
|
||||
) -> tuple[str, str, str]: ...
|
||||
def dist(
|
||||
distname: str = ..., version: str = ..., id: str = ..., supported_dists: Tuple[str, ...] = ...
|
||||
distname: str = ..., version: str = ..., id: str = ..., supported_dists: tuple[str, ...] = ...
|
||||
) -> tuple[str, str, str]: ...
|
||||
|
||||
def win32_ver(release: str = ..., version: str = ..., csd: str = ..., ptype: str = ...) -> tuple[str, str, str, str]: ...
|
||||
|
||||
Reference in New Issue
Block a user