Browse Source

style: reformat

pull/666/head
MinJae Kwon 2 years ago
parent
commit
bf413688ea
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      diagrams/__init__.py

+ 2
- 2
diagrams/__init__.py View File

@@ -295,7 +295,7 @@ class Node:
self._diagram = getdiagram() self._diagram = getdiagram()
if self._diagram is None: if self._diagram is None:
raise EnvironmentError("Global diagrams context not set up") raise EnvironmentError("Global diagrams context not set up")
if self._diagram.autolabel: if self._diagram.autolabel:
prefix = self.__class__.__name__ prefix = self.__class__.__name__
if self.label: if self.label:
@@ -342,7 +342,7 @@ class Node:
return other return other


def __rsub__(self, other: Union[List["Node"], List["Edge"]]): def __rsub__(self, other: Union[List["Node"], List["Edge"]]):
""" Called for [Nodes] and [Edges] - Self because list don't have __sub__ operators. """
"""Called for [Nodes] and [Edges] - Self because list don't have __sub__ operators."""
for o in other: for o in other:
if isinstance(o, Edge): if isinstance(o, Edge):
o.connect(self) o.connect(self)


Loading…
Cancel
Save