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

feat: support for injector library #175

Closed
wants to merge 3 commits into from
Closed

Conversation

OlehChyhyryn
Copy link
Contributor

add support for injector library, which is often used in Python for dependency injection pattern implementation

add support for [injector](https://github.com/python-injector/injector) library, which is often used in python for dependency injection pattern implementation
@OlehChyhyryn
Copy link
Contributor Author

I like the staff you implemented in this linter; we found it useful in our projects. We faced a conflict with the injector project because it used typing annotation in runtime.

For example:

from injector import Inject
from service_b import ServiceB

class ServiceA:
     def __init__(self, service_b: Inject[ServiceB]) -> None:
         ...

In this pull request I want to add the support for such functionality for ones using this library as we do.

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

Successfully merging this pull request may close these issues.

None yet

1 participant