mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-29 15:16:54 +08:00
Enable flake8-pyi's Y037 (#9686)
This commit is contained in:
@@ -7,7 +7,7 @@ from collections.abc import Callable, Iterable, Mapping
|
||||
from datetime import datetime
|
||||
from io import BytesIO
|
||||
from types import TracebackType
|
||||
from typing import Any, Protocol, Union, overload
|
||||
from typing import Any, Protocol, overload
|
||||
from typing_extensions import Literal, TypeAlias
|
||||
|
||||
class _SupportsTimeTuple(Protocol):
|
||||
@@ -31,7 +31,7 @@ _Marshallable: TypeAlias = (
|
||||
| Binary
|
||||
)
|
||||
_XMLDate: TypeAlias = int | datetime | tuple[int, ...] | time.struct_time
|
||||
_HostType: TypeAlias = Union[tuple[str, dict[str, str]], str]
|
||||
_HostType: TypeAlias = tuple[str, dict[str, str]] | str
|
||||
|
||||
def escape(s: str) -> str: ... # undocumented
|
||||
|
||||
|
||||
Reference in New Issue
Block a user