Skip to content

Commit

Permalink
style: reformat with black 23
Browse files Browse the repository at this point in the history
  • Loading branch information
James Harr committed Mar 2, 2023
1 parent d9b7d32 commit 4d96f55
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion examples/03-remote-system/diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ class AlphabeticalOrderDiff(Diff):
def order_children_default(cls, children):
"""Simple diff to return all children in alphabetical order."""
for child in sorted(children.values()):

# it's possible to access additional information about the object
# like child.action can be "update", "create" or "delete"

Expand Down
1 change: 0 additions & 1 deletion examples/03-remote-system/local_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ def load(self, filename=COUNTRIES_FILE): # pylint: disable=arguments-differ
# A Country object will be created for each country, it will be stored inside the adapter with self.add(),
# and it will be linked to its parent with parent.add_child(item)
for country in countries:

# Retrive the parent region object from the internal cache.
region = self.get(obj=self.region, identifier=slugify(country.get("region")))

Expand Down
1 change: 1 addition & 0 deletions tests/unit/test_diffsync_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@ class AttrChildOverlap(DiffSyncModel):

def test_diffsync_model_subclass_inheritance():
"""Verify that the class validation works properly even with a hierarchy of subclasses."""

# Pylint would complain because we're not actually using any of the classes declared below
# pylint: disable=unused-variable
class Alpha(DiffSyncModel):
Expand Down

0 comments on commit 4d96f55

Please sign in to comment.