Skip to content

Commit

Permalink
Reformat file in the editor. (#446)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcenacp authored Jan 15, 2024
1 parent ebfff19 commit 5ffc6fd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions editor/events/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,6 @@ def _create_instance1_from_instance2(instance1: Resource, instance2: type):
attributes1 = set((field.name for field in dataclasses.fields(instance1)))
attributes2 = set((field.name for field in dataclasses.fields(instance2)))
common_attributes = attributes2.intersection(attributes1)
return instance2(**{
attribute: getattr(instance1, attribute) for attribute in common_attributes
})
return instance2(
**{attribute: getattr(instance1, attribute) for attribute in common_attributes}
)

0 comments on commit 5ffc6fd

Please sign in to comment.