Skip to content

Commit f8d4f7d

Browse files
committed
fixup
1 parent 238ae01 commit f8d4f7d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

chia/server/chia_policy.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import ssl
77
import struct
88
import sys
9+
import weakref
910

1011
if sys.platform == "win32":
1112
import _overlapped # type: ignore[import-not-found]
@@ -57,7 +58,11 @@ class BaseEventsServer(asyncio.base_events.Server):
5758
else:
5859
_loop: EventsAbstractEventLoop
5960
_sockets: Iterable[socket.socket]
60-
_active_count: int
61+
if sys.version_info >= (3, 13):
62+
# https://github.com/python/cpython/blob/v3.13.7/Lib/asyncio/base_events.py#L283
63+
_clients: weakref.WeakSet[object]
64+
else:
65+
_active_count: int
6166
_protocol_factory: _ProtocolFactory
6267
_backlog: int
6368
_ssl_context: _SSLContext

0 commit comments

Comments
 (0)