‘method’ object does not support the context manager protocol error in FastAPI with Dependency Injector
I’m working on a FastAPI application where I’m using Dependency Injector to manage my dependencies. I have a JobService that interacts with the database through SQLAlchemy. I’m encountering an error when trying to create a new job: ‘method’ object does not support the context manager protocol.