Skip to content

Commit 80d49fb

Browse files
committed
Lint fix
1 parent 2ccf786 commit 80d49fb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pymc/model_graph.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,8 @@ def edges(
430430
]
431431

432432

433+
GraphAttrMapping = dict[Any, Any]
434+
433435
def make_graph(
434436
name: str,
435437
plates: list[Plate],
@@ -439,7 +441,7 @@ def make_graph(
439441
figsize=None,
440442
dpi=300,
441443
node_formatters: NodeTypeFormatterMapping | None = None,
442-
graph_attrs : dict[str, Any] | None,
444+
graph_attrs : GraphAttrMapping | None = None,
443445
create_plate_label: PlateLabelFunc = create_plate_label_with_dim_length,
444446
):
445447
"""Make graphviz Digraph of PyMC model.
@@ -680,7 +682,7 @@ def model_to_graphviz(
680682
figsize: tuple[int, int] | None = None,
681683
dpi: int = 300,
682684
node_formatters: NodeTypeFormatterMapping | None = None,
683-
graph_attrs: dict[str, Any] | None = None,
685+
graph_attrs: GraphAttrMapping | None = None,
684686
include_dim_lengths: bool = True,
685687
):
686688
"""Produce a graphviz Digraph from a PyMC model.

0 commit comments

Comments
 (0)