Skip to content

Commit dabc739

Browse files
committed
remove some unused typing from selector thread
1 parent 7cfacc4 commit dabc739

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

Lib/asyncio/_selector_thread.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
:license: Apache-2.0
1010
"""
1111

12+
from __future__ import annotations
13+
1214
import asyncio
1315
import atexit
1416
import contextvars
@@ -32,9 +34,6 @@
3234
Union,
3335
)
3436

35-
if typing.TYPE_CHECKING:
36-
from typing_extensions import TypeVarTuple, Unpack
37-
3837

3938
class _HasFileno(Protocol):
4039
def fileno(self) -> int:
@@ -45,9 +44,6 @@ def fileno(self) -> int:
4544

4645
_T = TypeVar("_T")
4746

48-
if typing.TYPE_CHECKING:
49-
_Ts = TypeVarTuple("_Ts")
50-
5147
# Collection of selector thread event loops to shut down on exit.
5248
_selector_loops: Set["SelectorThread"] = set()
5349

@@ -299,4 +295,3 @@ def remove_writer(self, fd: _FileDescriptorLike) -> bool:
299295
return False
300296
self._wake_selector()
301297
return True
302-

0 commit comments

Comments
 (0)