Skip to content

Commit 8f41e45

Browse files
committed
Explicitly cast exclude_graph_view to DiGraph to fix unknown member
1 parent dab8369 commit 8f41e45

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/gardenlinux/features/parser.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import os
99
from glob import glob
1010
from pathlib import Path
11-
from typing import Callable, Optional
11+
from typing import Callable, Optional, cast
1212

1313
import networkx
1414
import yaml
@@ -245,7 +245,9 @@ def _exclude_from_filter_set(self, graph, input_features, filter_set):
245245
:since: 0.7.0
246246
"""
247247

248-
exclude_graph_view = Parser._get_graph_view_for_attr(graph, "exclude")
248+
exclude_graph_view = cast(
249+
networkx.DiGraph, Parser._get_graph_view_for_attr(graph, "exclude")
250+
)
249251
exclude_list = []
250252

251253
for node in networkx.lexicographical_topological_sort(graph):

0 commit comments

Comments
 (0)