Skip to content

Commit 49913fa

Browse files
committed
fix mypy error with python 3.10
1 parent 4b6a764 commit 49913fa

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

nrel/routee/transit/thermal_energy.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,10 @@ def load_thermal_lookup_table() -> pd.DataFrame:
115115

116116

117117
def compute_HVAC_energy(
118-
start_hours: pd.Series, end_hours: pd.Series, power_array: np.ndarray
119-
) -> np.ndarray:
118+
start_hours: pd.Series,
119+
end_hours: pd.Series,
120+
power_array: np.typing.NDArray[np.number],
121+
) -> np.typing.NDArray[np.number]:
120122
"""
121123
Calculate HVAC + BTMS energy consumption between time intervals.
122124

0 commit comments

Comments
 (0)