Skip to content

Commit a7bbe34

Browse files
committed
use the "when in doubt, cast" strategy
1 parent d51d4d0 commit a7bbe34

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
@@ -802,7 +802,7 @@ def _create_mermaid_node_name(name: str) -> str:
802802
def _build_mermaid_node(node: NodeInfo) -> list[str]:
803803
var = node.var
804804
node_type = node.node_type
805-
name = var.name
805+
name = cast(str, var.name)
806806
node_name = _create_mermaid_node_name(name)
807807
if node_type == NodeType.DATA:
808808
return [

0 commit comments

Comments
 (0)