Pārlūkot izejas kodu

style: reformat

pull/666/head
MinJae Kwon pirms 2 gadiem
vecāks
revīzija
bf413688ea
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. +2
    -2
      diagrams/__init__.py

+ 2
- 2
diagrams/__init__.py Parādīt failu

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

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:
if isinstance(o, Edge):
o.connect(self)


Notiek ielāde…
Atcelt
Saglabāt