Enable flake8-pyi's Y037 (#9686)

This commit is contained in:
Alex Waygood authored and GitHub committed 2023-02-06 19:01:02 -08:00
1 parent c4c4bee8aa
commit 0ef9c3f8e8
38 files changed
+119 -201

No files matched your search

+2 -2
View File
@@ -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