Skip to content

Commit

Permalink
Fixup type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
mfisher87 committed Oct 2, 2024
1 parent 2e31159 commit a04f64a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions usaon_benefit_tool/util/sankey.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def permitted_source_link_types(node_type: NodeType) -> set[NodeType]:
{
"from": str,
"to": str,
"weight": int,
"weight": int | float,
"color": str,
"id": NotRequired[int],
"tooltipHTML": str,
Expand Down Expand Up @@ -180,7 +180,7 @@ def _node_ids_in_links(links: list[HighchartsSankeySeriesLink]) -> set[str]:
return node_ids


def _weight_for_criticality_rating(criticality_rating: int | None) -> float:
def _weight_for_criticality_rating(criticality_rating: int | None) -> int | float:
"""If criticality rating is not set, return a very thin line."""
if criticality_rating is None:
return 0.01
Expand Down

0 comments on commit a04f64a

Please sign in to comment.