Skip to content

Commit

Permalink
remove type hint to avoid mypy error
Browse files Browse the repository at this point in the history
  • Loading branch information
gnzsnz committed Aug 29, 2024
1 parent d63441e commit 18e3a4f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions eventkit/ops/create.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import asyncio
import itertools
import time
from typing import Awaitable

from ..event import Event
from ..util import NO_VALUE, timerange
Expand All @@ -11,7 +10,7 @@
class Wait(Event):
__slots__ = ("_task",)

def __init__(self, future: Awaitable, name="wait"):
def __init__(self, future, name="wait"):
Event.__init__(self, name)
self._task = asyncio.create_task(future)
self._task.add_done_callback(self._on_task_done)
Expand Down

0 comments on commit 18e3a4f

Please sign in to comment.