浏览代码

refactor: Reflect changes in Cluster class (#653)

pull/650/merge
gabriel-tessier 2 年前
committed by GitHub
父节点
当前提交
eeb1dc7f2b
找不到此签名对应的密钥 GPG 密钥 ID: 4AEE18F83AFDEB23
共有 1 个文件被更改,包括 2 次插入5 次删除
  1. +2
    -5
      diagrams/__init__.py

+ 2
- 5
diagrams/__init__.py 查看文件

@@ -260,11 +260,8 @@ class Cluster:
self._diagram.subgraph(self.dot)
setcluster(self._parent)

def _validate_direction(self, direction: str):
direction = direction.upper()
if direction in self.__directions:
return True
return False
def _validate_direction(self, direction: str) -> bool:
return direction.upper() in self.__directions

def node(self, nodeid: str, label: str, **attrs) -> None:
"""Create a new node in the cluster."""


正在加载...
取消
保存