Skip to content

Commit 5435e26

Browse files
style: Format slice notation
1 parent 7cb771e commit 5435e26

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/datajoint/diagram.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ def make_dot(self):
761761
if schema_name and "." in name:
762762
cluster_label = cluster_labels.get(schema_name)
763763
if cluster_label and name.startswith(cluster_label + "."):
764-
display_name = name[len(cluster_label) + 1:]
764+
display_name = name[len(cluster_label) + 1 :]
765765
node.set_label("<<u>" + display_name + "</u>>" if node.get("distinguished") == "True" else display_name)
766766
node.set_color(props["color"])
767767
node.set_style("filled")
@@ -960,7 +960,7 @@ def make_mermaid(self) -> str:
960960
# Strip module prefix from display name if it matches the cluster label
961961
display_name = node
962962
if "." in node and node.startswith(label + "."):
963-
display_name = node[len(label) + 1:]
963+
display_name = node[len(label) + 1 :]
964964
class_suffix = f":::{cls}" if cls else ""
965965
lines.append(f" {safe_id}{left}{display_name}{right}{class_suffix}")
966966
lines.append(" end")

0 commit comments

Comments
 (0)