]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
manager: fixed new pylint warning in compat code
authorVasek Sraier <git@vakabus.cz>
Thu, 27 Oct 2022 20:47:41 +0000 (22:47 +0200)
committerVasek Sraier <git@vakabus.cz>
Sat, 3 Dec 2022 10:31:10 +0000 (11:31 +0100)
manager/knot_resolver_manager/compat/asyncio.py

index f9615c3e2e4629a0ef7bb46c203243928f5bec2d..cb1ca130bc218058e29858edb92d97f1ef9c6875 100644 (file)
@@ -46,6 +46,7 @@ def async_in_a_thread(func: Callable[..., T]) -> Callable[..., Coroutine[None, N
 def create_task(coro: Awaitable[T], name: Optional[str] = None) -> "asyncio.Task[T]":
     # version 3.8 and higher, call directly
     if sys.version_info.major >= 3 and sys.version_info.minor >= 8:
+        # pylint: disable=unexpected-keyword-arg
         return asyncio.create_task(coro, name=name)  # type: ignore[attr-defined]
 
     # version 3.7 and higher, call directly without the name argument