🎨 Format files with pre-commit and Ruff (#611)

This commit is contained in:
Sebastián Ramírez
2024-02-25 19:39:33 +01:00
committed by GitHub
parent 2802a4df9e
commit 0cc802eec8
35 changed files with 156 additions and 163 deletions
+1 -3
View File
@@ -1,5 +1,3 @@
from typing import List
from fastapi.encoders import jsonable_encoder
from sqlalchemy.orm import Session
@@ -21,7 +19,7 @@ class CRUDItem(CRUDBase[Item, ItemCreate, ItemUpdate]):
def get_multi_by_owner(
self, db: Session, *, owner_id: int, skip: int = 0, limit: int = 100
) -> List[Item]:
) -> list[Item]:
return (
db.query(self.model)
.filter(Item.owner_id == owner_id)