Skip to content

Commit

Permalink
Apply 3.10 typing updates
Browse files Browse the repository at this point in the history
  • Loading branch information
abkfenris committed Dec 2, 2022
1 parent 8fe2f2c commit e12972a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/forecasts/utils/erddap.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
"""ERDDAP dataset interaction utility functions"""
from datetime import datetime
from typing import Union

from pandas import DataFrame


def attribute_value(info_df: DataFrame, attribute: str) -> Union[float, str, int]:
def attribute_value(info_df: DataFrame, attribute: str) -> float | str | int:
"""Return the value of a single dataset attribute"""
row = info_df[info_df["Attribute Name"] == attribute].values[0]
value = row[-1]
Expand Down

0 comments on commit e12972a

Please sign in to comment.