Skip to content
This repository has been archived by the owner on Jul 8, 2023. It is now read-only.

Commit

Permalink
fix: fix a wrongly refactored code from previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
bellini666 committed Jun 23, 2023
1 parent 493a1ad commit fb0de57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion strawberry_django_plus/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def _process_type(cls, *args, **kwargs):
type_def = get_object_definition(ret, strict=True)
for d in type_def.directives or []:
if isinstance(d, SchemaDirectiveWithResolver):
d.register(ret)
d.register(type_def)

return ret

Expand Down
3 changes: 1 addition & 2 deletions strawberry_django_plus/optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@
_interfaces: """
defaultdict[
Schema,
Dict[StrawberryObjectDefinition,
List[StrawberryObjectDefinition]],
Dict[StrawberryObjectDefinition, List[StrawberryObjectDefinition]],
]""" = defaultdict(
dict,
)
Expand Down

0 comments on commit fb0de57

Please sign in to comment.