Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using decorator results in errors about untyped decorators #106

Open
ShravanSunder opened this issue Jul 4, 2024 · 1 comment
Open

Using decorator results in errors about untyped decorators #106

ShravanSunder opened this issue Jul 4, 2024 · 1 comment

Comments

@ShravanSunder
Copy link

With pylance (strict) i'm getting errors with injector decorators.

2024-07-04 0736 Brave Browser ivankorobkovpython-inject Python dependency injection

It doesn' tlook like the any paramspec or typevars in the definition

def params(**args_to_classes: Binding) -> Callable:
    """Return a decorator which injects args into a function.

    For example::

        @inject.params(cache=RedisCache, db=DbInterface)
        def sign_up(name, email, cache, db):
            pass
    """
    return _ParametersInjection(**args_to_classes)
@ivankorobkov
Copy link
Owner

Hi!

I don't know what's the problem or how to fix it 🤷‍♂️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants