Skip to content

Commit

Permalink
fix: ruff lint switch type check to isinstance
Browse files Browse the repository at this point in the history
  • Loading branch information
lchen-2101 committed Jan 17, 2024
1 parent 162d45a commit 814bf7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/entities/repos/institutions_repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ async def upsert_institution(session: AsyncSession, fi: FinancialInstitutionDto)

if "sbl_institution_types" in fi_data:
types_association = [
SblTypeMappingDao(type_id=t) if type(t) is str else SblTypeMappingDao(type_id=t.id, details=t.details)
SblTypeMappingDao(type_id=t) if isinstance(t, str) else SblTypeMappingDao(type_id=t.id, details=t.details)
for t in fi.sbl_institution_types
]
fi_data["sbl_institution_types"] = types_association
Expand Down

0 comments on commit 814bf7a

Please sign in to comment.