1212# *******************************************************************************
1313# from sphinx.application import Sphinx
1414
15- from sphinx_needs .data import NeedsInfoType
15+ from sphinx_needs .need_item import NeedItem
1616
1717# from score_metamodel import (
1818# CheckLogger,
1919# graph_check,
2020# )
2121
2222
23- def get_standards_needs (needs : list [NeedsInfoType ]) -> dict [str , NeedsInfoType ]:
23+ def get_standards_needs (needs : list [NeedItem ]) -> dict [str , NeedItem ]:
2424 """
2525 Return a dictionary of all standard requirements from the Sphinx app's needs.
2626 """
@@ -29,32 +29,32 @@ def get_standards_needs(needs: list[NeedsInfoType]) -> dict[str, NeedsInfoType]:
2929
3030
3131def get_standards_workproducts (
32- needs : list [NeedsInfoType ],
33- ) -> dict [str , NeedsInfoType ]:
32+ needs : list [NeedItem ],
33+ ) -> dict [str , NeedItem ]:
3434 """
3535 Return a dictionary of standard workproducts from the Sphinx app's needs.
3636 """
3737
3838 return {need ["id" ]: need for need in needs if need ["type" ] == "std_wp" }
3939
4040
41- def get_workflows (needs : list [NeedsInfoType ]) -> dict [str , NeedsInfoType ]:
41+ def get_workflows (needs : list [NeedItem ]) -> dict [str , NeedItem ]:
4242 """
4343 Return a dictionary of all workflows from the Sphinx app's needs.
4444 """
4545
4646 return {need ["id" ]: need for need in needs if need .get ("type" ) == "workflow" }
4747
4848
49- def get_workproducts (needs : list [NeedsInfoType ]) -> dict [str , NeedsInfoType ]:
49+ def get_workproducts (needs : list [NeedItem ]) -> dict [str , NeedItem ]:
5050 """
5151 Return a dictionary of all workproducts from the Sphinx app's needs.
5252 """
5353
5454 return {need ["id" ]: need for need in needs if need .get ("type" ) == "workproduct" }
5555
5656
57- def get_compliance_req_needs (needs : list [NeedsInfoType ]) -> set [str ]:
57+ def get_compliance_req_needs (needs : list [NeedItem ]) -> set [str ]:
5858 """
5959 Return a set of all compliance_req values from the Sphinx app's needs,
6060 but only if the need type is one of the specified process-related types.
@@ -68,7 +68,7 @@ def get_compliance_req_needs(needs: list[NeedsInfoType]) -> set[str]:
6868 }
6969
7070
71- def get_compliance_wp_needs (needs : list [NeedsInfoType ]) -> set [str ]:
71+ def get_compliance_wp_needs (needs : list [NeedItem ]) -> set [str ]:
7272 """
7373 Return a set of all compliance_wp values from the Sphinx app's needs,
7474 but only if the need type is "workproduct".
@@ -177,7 +177,7 @@ def get_compliance_wp_needs(needs: list[NeedsInfoType]) -> set[str]:
177177
178178
179179def my_pie_linked_standard_requirements (
180- needs : list [NeedsInfoType ], results : list [int ], ** kwargs : str | int | float
180+ needs : list [NeedItem ], results : list [int ], ** kwargs : str | int | float
181181) -> None :
182182 """
183183 Function to render the chart of check for standard requirements linked
@@ -210,7 +210,7 @@ def my_pie_linked_standard_requirements(
210210
211211
212212def my_pie_linked_standard_requirements_by_tag (
213- needs : list [NeedsInfoType ], results : list [int ], ** kwargs : str | int | float
213+ needs : list [NeedItem ], results : list [int ], ** kwargs : str | int | float
214214) -> None :
215215 """
216216 Filter function used for 'needpie' directives.
@@ -258,7 +258,7 @@ def my_pie_linked_standard_requirements_by_tag(
258258
259259
260260def my_pie_linked_standard_workproducts (
261- needs : list [NeedsInfoType ], results : list [int ], ** kwargs : str | int | float
261+ needs : list [NeedItem ], results : list [int ], ** kwargs : str | int | float
262262) -> None :
263263 """
264264 Function to render the chart of check for standar workproducts linked
@@ -292,7 +292,7 @@ def my_pie_linked_standard_workproducts(
292292
293293
294294def my_pie_workproducts_contained_in_exactly_one_workflow (
295- needs : list [NeedsInfoType ], results : list [int ], ** kwargs : str | int | float
295+ needs : list [NeedItem ], results : list [int ], ** kwargs : str | int | float
296296) -> None :
297297 """
298298 Function to render the chart of check for workproducts that are contained
0 commit comments