mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-25 02:57:14 +08:00
Big diff: use lower-case list and dict (#5888)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
from socket import socket
|
||||
from typing import Any, Dict, FrozenSet, Iterable, List, Sequence, Set, Tuple
|
||||
from typing import Any, FrozenSet, Iterable, Sequence, Set, Tuple
|
||||
|
||||
from .compat import HAS_IPV6 as HAS_IPV6, PY2 as PY2, WIN as WIN, string_types as string_types
|
||||
from .proxy_headers import PROXY_HEADERS as PROXY_HEADERS
|
||||
@@ -9,12 +9,12 @@ KNOWN_PROXY_HEADERS: FrozenSet[Any]
|
||||
|
||||
def asbool(s: bool | str | int | None) -> bool: ...
|
||||
def asoctal(s: str) -> int: ...
|
||||
def aslist_cronly(value: str) -> List[str]: ...
|
||||
def aslist(value: str) -> List[str]: ...
|
||||
def aslist_cronly(value: str) -> list[str]: ...
|
||||
def aslist(value: str) -> list[str]: ...
|
||||
def asset(value: str | None) -> Set[str]: ...
|
||||
def slash_fixed_str(s: str | None) -> str: ...
|
||||
def str_iftruthy(s: str | None) -> str | None: ...
|
||||
def as_socket_list(sockets: Sequence[object]) -> List[socket]: ...
|
||||
def as_socket_list(sockets: Sequence[object]) -> list[socket]: ...
|
||||
|
||||
class _str_marker(str): ...
|
||||
class _int_marker(int): ...
|
||||
@@ -23,7 +23,7 @@ class _bool_marker: ...
|
||||
class Adjustments:
|
||||
host: _str_marker = ...
|
||||
port: _int_marker = ...
|
||||
listen: List[str] = ...
|
||||
listen: list[str] = ...
|
||||
threads: int = ...
|
||||
trusted_proxy: str | None = ...
|
||||
trusted_proxy_count: int | None = ...
|
||||
@@ -48,14 +48,14 @@ class Adjustments:
|
||||
expose_tracebacks: bool = ...
|
||||
unix_socket: str | None = ...
|
||||
unix_socket_perms: int = ...
|
||||
socket_options: List[Tuple[int, int, int]] = ...
|
||||
socket_options: list[Tuple[int, int, int]] = ...
|
||||
asyncore_loop_timeout: int = ...
|
||||
asyncore_use_poll: bool = ...
|
||||
ipv4: bool = ...
|
||||
ipv6: bool = ...
|
||||
sockets: List[socket] = ...
|
||||
sockets: list[socket] = ...
|
||||
def __init__(self, **kw: Any) -> None: ...
|
||||
@classmethod
|
||||
def parse_args(cls, argv: str) -> Tuple[Dict[str, Any], Any]: ...
|
||||
def parse_args(cls, argv: str) -> Tuple[dict[str, Any], Any]: ...
|
||||
@classmethod
|
||||
def check_sockets(cls, sockets: Iterable[socket]) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user