Skip to content

Commit 5f80267

Browse files
committed
🎨 style: mypy
1 parent 68e69a0 commit 5f80267

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/repositories/jmy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class JmyRepository(BaseRepository[JmyCompany]):
99
def __init__(self):
1010
super().__init__(model=JmyCompany)
1111

12-
async def read_by_name(self, name: str, eager: bool = False) -> JmyCompany:
12+
async def read_by_name(self, name: str, eager: bool = False) -> JmyCompany | None:
1313
stmt = select(self.model)
1414
if eager:
1515
stmt = self._eager(stmt=stmt)

app/services/jmy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
class JmyService(BaseService[JmyCompany, JmyCompanyRequest, JmyCompanyOut]):
99
def __init__(self, jmy_repository: JmyRepository):
1010
super().__init__(repository=jmy_repository, schema=JmyCompanyOut)
11-
self.repository: jmy_repository
11+
self.repository: JmyRepository
1212

1313
@database.transactional
1414
async def create(self, schema: JmyCompanyRequest) -> JmyCompanyOut:

0 commit comments

Comments
 (0)