Skip to content

Commit 92b356d

Browse files
committed
Fix on mypy
1 parent a7dea07 commit 92b356d

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

stdlib/asyncio/__init__.pyi

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,22 @@ else:
3434
from .unix_events import *
3535

3636
if sys.version_info >= (3, 14):
37-
from .events import _AbstractEventLoopPolicy as AbstractEventLoopPolicy # pyright: ignore[reportUnusedImport]
37+
from .events import _AbstractEventLoopPolicy
38+
39+
AbstractEventLoopPolicy = _AbstractEventLoopPolicy
3840

3941
if sys.platform == "win32":
4042
if sys.version_info >= (3, 14):
41-
from .windows_events import (
42-
_DefaultEventLoopPolicy as DefaultEventLoopPolicy, # pyright: ignore[reportUnusedImport]
43-
_WindowsProactorEventLoopPolicy as WindowsProactorEventLoopPolicy, # pyright: ignore[reportUnusedImport]
44-
_WindowsSelectorEventLoopPolicy as WindowsSelectorEventLoopPolicy, # pyright: ignore[reportUnusedImport]
45-
)
43+
from .windows_events import _DefaultEventLoopPolicy, _WindowsProactorEventLoopPolicy, _WindowsSelectorEventLoopPolicy
44+
45+
DefaultEventLoopPolicy = _DefaultEventLoopPolicy
46+
WindowsProactorEventLoopPolicy = _WindowsProactorEventLoopPolicy
47+
WindowsSelectorEventLoopPolicy = _WindowsSelectorEventLoopPolicy
4648
else:
4749
if sys.version_info >= (3, 14):
48-
from .unix_events import _DefaultEventLoopPolicy as DefaultEventLoopPolicy # pyright: ignore[reportUnusedImport]
50+
from .unix_events import _DefaultEventLoopPolicy
51+
52+
DefaultEventLoopPolicy = _DefaultEventLoopPolicy
4953

5054
if sys.platform == "win32":
5155
if sys.version_info >= (3, 14):

0 commit comments

Comments
 (0)