mirror of
https://github.com/long2ice/fastapi-cache.git
synced 2026-03-25 04:57:54 +00:00
Add flake8-comprehensions linter (#157)
This commit is contained in:
@@ -27,7 +27,7 @@ async def get_ret():
|
||||
@app.get("/")
|
||||
@cache(namespace="test", expire=10)
|
||||
async def index():
|
||||
return dict(ret=await get_ret())
|
||||
return {"ret": await get_ret()}
|
||||
|
||||
|
||||
@app.get("/clear")
|
||||
|
||||
Reference in New Issue
Block a user