mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-22 02:52:07 +08:00
Import from collections.abc wherever possible (#7635)
This commit is contained in:
@@ -3,10 +3,11 @@ import http.client
|
||||
import sys
|
||||
import time
|
||||
from _typeshed import Self, SupportsRead, SupportsWrite
|
||||
from collections.abc import Callable, Iterable, Mapping
|
||||
from datetime import datetime
|
||||
from io import BytesIO
|
||||
from types import TracebackType
|
||||
from typing import Any, Callable, Iterable, Mapping, Protocol, Union, overload
|
||||
from typing import Any, Protocol, Union, overload
|
||||
from typing_extensions import Literal, TypeAlias
|
||||
|
||||
class _SupportsTimeTuple(Protocol):
|
||||
|
||||
@@ -2,8 +2,9 @@ import http.server
|
||||
import pydoc
|
||||
import socketserver
|
||||
import sys
|
||||
from collections.abc import Callable, Iterable, Mapping
|
||||
from datetime import datetime
|
||||
from typing import Any, Callable, Iterable, Mapping, Pattern, Protocol
|
||||
from typing import Any, Pattern, Protocol
|
||||
from typing_extensions import TypeAlias
|
||||
from xmlrpc.client import Fault
|
||||
|
||||
|
||||
Reference in New Issue
Block a user