Skip to content

Commit

Permalink
Merge pull request #34 from CentML/feb09-fix-typing
Browse files Browse the repository at this point in the history
Fix typing
  • Loading branch information
xinli-centml committed Feb 9, 2023
2 parents aa12301 + e4efe4b commit 79643fd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion skyline/analysis/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
from skyline.tracking.tracker import Tracker
from skyline.user_code_utils import user_code_environment

from typing import List

logger = logging.getLogger(__name__)

# habitat imports
Expand Down Expand Up @@ -566,7 +568,7 @@ def _fit_linear_model(x, y):
# Linear model: y = slope * x + bias
return slope, bias

def _convert_to_energy_responses(entries: list)-> list[pm.EnergyResponse]:
def _convert_to_energy_responses(entries: list)-> List[pm.EnergyResponse]:
energy_response_list = []
for entry in entries:
if EnergyTableInterface.is_valid_entry_with_timestamp(entry):
Expand Down

0 comments on commit 79643fd

Please sign in to comment.