From 18e3a4f727c4f846167fdece35e8741b1803aca2 Mon Sep 17 00:00:00 2001 From: gonzo Date: Thu, 29 Aug 2024 15:20:05 +0200 Subject: [PATCH] remove type hint to avoid mypy error --- eventkit/ops/create.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/eventkit/ops/create.py b/eventkit/ops/create.py index afcd2b8..4ca62eb 100644 --- a/eventkit/ops/create.py +++ b/eventkit/ops/create.py @@ -1,7 +1,6 @@ import asyncio import itertools import time -from typing import Awaitable from ..event import Event from ..util import NO_VALUE, timerange @@ -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)