From 02ca5981332e559c7c07941d09645cb1b4c6d2e4 Mon Sep 17 00:00:00 2001 From: Tiago Silva Date: Fri, 29 Nov 2024 15:00:23 +0000 Subject: [PATCH] Fix linting --- .gitignore | 1 + backgrounder/concurrency.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 953ccec..e6be50a 100644 --- a/.gitignore +++ b/.gitignore @@ -16,6 +16,7 @@ node_modules/ results/ site/ target/ +venv/ # files **/*.so diff --git a/backgrounder/concurrency.py b/backgrounder/concurrency.py index 3da870c..9fc8eef 100644 --- a/backgrounder/concurrency.py +++ b/backgrounder/concurrency.py @@ -35,7 +35,7 @@ def enforce_async_callable(func: Callable[..., Any]) -> Callable[..., Awaitable[ """ Enforces the callable to be async by returning an AsyncCallable. """ - return func if is_async_callable(func) else AsyncCallable(func) # type:ignore + return func if is_async_callable(func) else AsyncCallable(func) class AsyncCallable: