From eb320154dbfa44203d452f6be0016a9aa836f3bc Mon Sep 17 00:00:00 2001 From: Zachary Collins Date: Mon, 15 Jul 2024 11:49:11 -0700 Subject: [PATCH] Type fixes --- src/seer/dependency_injection.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/seer/dependency_injection.py b/src/seer/dependency_injection.py index 78db25e8c..8a806ec0a 100644 --- a/src/seer/dependency_injection.py +++ b/src/seer/dependency_injection.py @@ -165,7 +165,7 @@ def inject(c: _A) -> _A: argspec = inspect.getfullargspec(c) - @functools.wraps(c) + @functools.wraps(c) # type: ignore def wrapper(*args: Any, **kwargs: Any) -> Any: new_kwds = {**kwargs} @@ -193,12 +193,12 @@ def wrapper(*args: Any, **kwargs: Any) -> Any: except KeyError: raise AssertionError(f"Cannot inject argument {k} as it lacks annotations") - return c(*args, **new_kwds) + return c(*args, **new_kwds) # type: ignore if inspect.isclass(original_type): - return type(original_type.__name__, (original_type,), dict(__init__=wrapper)) + return type(original_type.__name__, (original_type,), dict(__init__=wrapper)) # type: ignore - return wrapper + return wrapper # type: ignore def resolve(source: type[_A]) -> _A: