Sfoglia il codice sorgente

refactor: Reflect changes in Cluster class (#653)

pull/650/merge
gabriel-tessier 2 anni fa
committed by GitHub
parent
commit
eeb1dc7f2b
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: 4AEE18F83AFDEB23
1 ha cambiato i file con 2 aggiunte e 5 eliminazioni
  1. +2
    -5
      diagrams/__init__.py

+ 2
- 5
diagrams/__init__.py Vedi File

@@ -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."""


Caricamento…
Annulla
Salva