Skip to content

Commit

Permalink
Update src/anyio/_backends/_asyncio.py
Browse files Browse the repository at this point in the history
  • Loading branch information
agronholm authored Dec 5, 2024
1 parent 810f6fe commit 3893475
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/anyio/_backends/_asyncio.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,9 +408,8 @@ def __init__(self, deadline: float = math.inf, shield: bool = False):
self._cancel_handle: asyncio.Handle | None = None
self._tasks: set[asyncio.Task] = set()
self._host_task: asyncio.Task | None = None
self._pending_uncancellations: int | None
if sys.version_info >= (3, 11):
self._pending_uncancellations = 0
self._pending_uncancellations: int | None = 0
else:
self._pending_uncancellations = None

Expand Down

0 comments on commit 3893475

Please sign in to comment.