mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-12-28 12:32:59 +03:00
fix lint
This commit is contained in:
parent
9c9283d553
commit
3be88902e5
|
|
@ -33,7 +33,6 @@ class Container(containers.DeclarativeContainer):
|
|||
@app.get("/")
|
||||
@inject
|
||||
async def index(db: AsyncSessionLocal = Depends(Closing[Provide["db_session"]])):
|
||||
global global_list
|
||||
if db.id in global_list:
|
||||
raise Exception("The db session is already used") # never reaches here
|
||||
global_list.append(db.id)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user