Skip to content

Commit e2ace34

Browse files
committed
Add assertion to make mypy happy.
1 parent f5442e1 commit e2ace34

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/strawberry_sqlalchemy_mapper/loader.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ async def _scalars(self, *args, **kwargs):
4646
return await self._async_bind_factory().scalars(*args, **kwargs)
4747
else:
4848
# Deprecated, but supported for now.
49+
assert self._bind is not None
4950
return self._bind.scalars(*args, **kwargs)
5051

5152
def loader_for(self, relationship: RelationshipProperty) -> DataLoader:

0 commit comments

Comments
 (0)