Просмотр исходного кода

lint: fix unwanted indents.

pull/736/head
Thomas Senay 2 лет назад
Родитель
Сommit
c3a8ad8d38
1 измененных файлов: 22 добавлений и 22 удалений
  1. +22
    -22
      diagrams/__init__.py

+ 22
- 22
diagrams/__init__.py Просмотреть файл

@@ -77,16 +77,16 @@ class Diagram:
# TODO: Label position option
# TODO: Save directory option (filename + directory?)
def __init__(
self,
name: str = "",
filename: str = "",
direction: str = "LR",
curvestyle: str = "ortho",
outformat: str = "png",
show: bool = True,
graph_attr: dict = {},
node_attr: dict = {},
edge_attr: dict = {},
self,
name: str = "",
filename: str = "",
direction: str = "LR",
curvestyle: str = "ortho",
outformat: str = "png",
show: bool = True,
graph_attr: dict = {},
node_attr: dict = {},
edge_attr: dict = {},
):
"""Diagram represents a global diagrams context.

@@ -208,10 +208,10 @@ class Cluster:
# Cluster direction does not work now. Graphviz couldn't render
# correctly for a subgraph that has a different rank direction.
def __init__(
self,
label: str = "cluster",
direction: str = "LR",
graph_attr: dict = {},
self,
label: str = "cluster",
direction: str = "LR",
graph_attr: dict = {},
):
"""Cluster represents a cluster context.

@@ -427,14 +427,14 @@ class Edge:
}

def __init__(
self,
node: "Node" = None,
forward: bool = False,
reverse: bool = False,
label: str = "",
color: str = "",
style: str = "",
**attrs: Dict,
self,
node: "Node" = None,
forward: bool = False,
reverse: bool = False,
label: str = "",
color: str = "",
style: str = "",
**attrs: Dict,
):
"""Edge represents an edge between two nodes.



Загрузка…
Отмена
Сохранить