lint: blackify

pull/61/head
mingrammer 5 years ago
parent ca1e7ec02a
commit a088225998

@ -143,7 +143,7 @@ class Diagram:
setdiagram(None) setdiagram(None)
def _repr_png_(self): def _repr_png_(self):
return self.dot.pipe(format='png') return self.dot.pipe(format="png")
def _validate_direction(self, direction: str) -> bool: def _validate_direction(self, direction: str) -> bool:
direction = direction.upper() direction = direction.upper()
@ -403,7 +403,8 @@ class Edge:
"fontsize": "13", "fontsize": "13",
} }
def __init__(self, def __init__(
self,
node: "Node" = None, node: "Node" = None,
forward: bool = False, forward: bool = False,
reverse: bool = False, reverse: bool = False,
@ -504,15 +505,14 @@ class Edge:
@property @property
def attrs(self) -> Dict: def attrs(self) -> Dict:
if self.forward and self.reverse: if self.forward and self.reverse:
direction = 'both' direction = "both"
elif self.forward: elif self.forward:
direction = 'forward' direction = "forward"
elif self.reverse: elif self.reverse:
direction = 'back' direction = "back"
else: else:
direction = 'none' direction = "none"
return {**self._attrs, "dir": direction}
return {**self._attrs, 'dir': direction}
Group = Cluster Group = Cluster

Loading…
Cancel
Save