Skip to content

Commit

Permalink
More black linting
Browse files Browse the repository at this point in the history
  • Loading branch information
guffee23 committed Sep 15, 2023
1 parent 69e77a8 commit 6f9c391
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ def parse_leis(leis: List[str] = Query(None)) -> Optional[List]:
"""

if leis:
return list(chain.from_iterable([x.split(',') for x in leis]))
return list(chain.from_iterable([x.split(",") for x in leis]))
else:
return None
6 changes: 5 additions & 1 deletion src/entities/repos/institutions_repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@


async def get_institutions(
session: AsyncSession, leis: List[str] = None, domain: str = "", page: int = 0, count: int = 100,
session: AsyncSession,
leis: List[str] = None,
domain: str = "",
page: int = 0,
count: int = 100,
) -> List[FinancialInstitutionDao]:
async with session.begin():
stmt = (
Expand Down
4 changes: 3 additions & 1 deletion src/routers/institutions.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ async def get_institutions(
page: int = 0,
count: int = 100,
):
return await repo.get_institutions(request.state.db_session, leis, domain, page, count)
return await repo.get_institutions(
request.state.db_session, leis, domain, page, count
)


@router.post("/", response_model=Tuple[str, FinancialInstitutionDto])
Expand Down

0 comments on commit 6f9c391

Please sign in to comment.