- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 321
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
FAST002 + B008 when using DI with FastAPI and Ruff #850
Comments
Hello. We've merged #721 just recently and haven't had a release yet, as it needs some docs and examples to be updated. I'll work on it this weekend, so stay tuned. |
Oh, awesome. Sorry for the dupe |
Any news to get a release containing #721 ? |
Woop 🎉 |
Hi,
I am new to dependency_injector.
I am trying to use the FastAPI example code and ruff configured like so:
I am getting
B008
andFAST002
Note: I cannot reproduce the
FAST002
on the dependency_injector FastAPI basic example, just the B008 shows up.Anyway, I tried doing this
Now ruff is happy, but DI breaks.
AttributeError: 'Provide' object has no attribute 'process'
I tried other variations, but nothing worked.
Is there a way to write this so ruff and mypy are happy, and DI continues to work?
Thank you
The text was updated successfully, but these errors were encountered: