Skip to content

Commit

Permalink
Add missing type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
andreArtelt committed Jun 4, 2024
1 parent d303009 commit 112c4bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion epyt_flow/topology.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"""
from copy import deepcopy
import warnings
from typing import Any
import numpy as np
import networkx as nx
from scipy.sparse import bsr_array
Expand Down Expand Up @@ -92,7 +93,7 @@ def __init__(self, f_inp: str, nodes: list[tuple[str, dict]],
info={"id": link_id, "nodes": link, "diameter": link_diameter,
"length": link_length})

def convert_units(self, units: int):
def convert_units(self, units: int) -> Any:
"""
Converts this instance to a :class:`epyt_flow.topology.NetworkTopology` instance
where everything is measured in given measurement units category
Expand Down

0 comments on commit 112c4bb

Please sign in to comment.