Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.11/site-packages/anyio/abc/__init__.py: 100%
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1from __future__ import annotations
3from typing import TYPE_CHECKING
5from .._lazyimport import (
6 fix_package_names,
7 install_lazy_importer,
8 set_deprecated_aliases,
9)
11if TYPE_CHECKING or not install_lazy_importer():
12 from ._eventloop import AsyncBackend as AsyncBackend
13 from ._resources import AsyncResource as AsyncResource
14 from ._sockets import ConnectedUDPSocket as ConnectedUDPSocket
15 from ._sockets import ConnectedUNIXDatagramSocket as ConnectedUNIXDatagramSocket
16 from ._sockets import IPAddressType as IPAddressType
17 from ._sockets import IPSockAddrType as IPSockAddrType
18 from ._sockets import SocketAttribute as SocketAttribute
19 from ._sockets import SocketListener as SocketListener
20 from ._sockets import SocketStream as SocketStream
21 from ._sockets import UDPPacketType as UDPPacketType
22 from ._sockets import UDPSocket as UDPSocket
23 from ._sockets import UNIXDatagramPacketType as UNIXDatagramPacketType
24 from ._sockets import UNIXDatagramSocket as UNIXDatagramSocket
25 from ._sockets import UNIXSocketStream as UNIXSocketStream
26 from ._streams import AnyByteReceiveStream as AnyByteReceiveStream
27 from ._streams import AnyByteSendStream as AnyByteSendStream
28 from ._streams import AnyByteStream as AnyByteStream
29 from ._streams import AnyByteStreamConnectable as AnyByteStreamConnectable
30 from ._streams import (
31 AnyUnreliableByteReceiveStream as AnyUnreliableByteReceiveStream,
32 )
33 from ._streams import AnyUnreliableByteSendStream as AnyUnreliableByteSendStream
34 from ._streams import AnyUnreliableByteStream as AnyUnreliableByteStream
35 from ._streams import ByteReceiveStream as ByteReceiveStream
36 from ._streams import ByteSendStream as ByteSendStream
37 from ._streams import ByteStream as ByteStream
38 from ._streams import ByteStreamConnectable as ByteStreamConnectable
39 from ._streams import Listener as Listener
40 from ._streams import ObjectReceiveStream as ObjectReceiveStream
41 from ._streams import ObjectSendStream as ObjectSendStream
42 from ._streams import ObjectStream as ObjectStream
43 from ._streams import ObjectStreamConnectable as ObjectStreamConnectable
44 from ._streams import UnreliableObjectReceiveStream as UnreliableObjectReceiveStream
45 from ._streams import UnreliableObjectSendStream as UnreliableObjectSendStream
46 from ._streams import UnreliableObjectStream as UnreliableObjectStream
47 from ._subprocesses import Process as Process
48 from ._tasks import TaskGroup as TaskGroup
49 from ._tasks import TaskStatus as TaskStatus
50 from ._testing import TestRunner as TestRunner
52 fix_package_names()
53 set_deprecated_aliases(
54 {
55 "CapacityLimiter": "anyio.CapacityLimiter",
56 "Condition": "anyio.Condition",
57 "Event": "anyio.Event",
58 "Lock": "anyio.Lock",
59 "Semaphore": "anyio.Semaphore",
60 "CancelScope": "anyio.CancelScope",
61 "BlockingPortal": "anyio.from_thread.BlockingPortal",
62 }
63 )