We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fa4acf commit 44acb37Copy full SHA for 44acb37
src/strawberry_sqlalchemy_mapper/mapper.py
@@ -132,11 +132,7 @@ def resolve_type(self) -> Type[Any]:
132
def _get_relationship_key(model: object, relationship: RelationshipProperty) -> Tuple[str, ...]:
133
"""Return relationship key for data loader."""
134
return tuple(
135
- [
136
- getattr(model, local.key)
137
- for local, _ in relationship.local_remote_pairs or []
138
- if local.key
139
- ],
+ getattr(model, local.key) for local, _ in relationship.local_remote_pairs or [] if local.key
140
)
141
142
0 commit comments