Skip to content

Commit a7dd63a

Browse files
committed
handy dandy cast
1 parent 665005b commit a7dd63a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymc/model_graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,7 @@ def model_to_mermaid(model=None, *, var_names=None, include_dim_lengths: bool =
908908
graph = ModelGraph(model)
909909
plates = sorted(graph.get_plates(var_names=var_names), key=lambda plate: hash(plate.dim_info))
910910
edges = sorted(graph.edges(var_names=var_names))
911-
nodes = sorted(graph.nodes(plates=plates), key=lambda node: node.var.name)
911+
nodes = sorted(graph.nodes(plates=plates), key=lambda node: cast(str, node.var.name))
912912

913913
return "\n".join(
914914
[

0 commit comments

Comments
 (0)