Skip to content

Commit 1a0d458

Browse files
committed
isort; improve type hint of returned objects
1 parent 485b773 commit 1a0d458

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/planetarypy/utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,17 @@
1919
from typing import Union
2020
from urllib.request import urlopen
2121

22+
import pandas as pd
2223
import requests
2324
from requests.auth import HTTPBasicAuth
2425
from tqdm.auto import tqdm
2526

26-
import pandas as pd
2727
from planetarypy.datetime import fromdoyformat
2828

2929
logger = logging.getLogger(__name__)
3030

3131

32-
def replace_all_doy_times(df: pd.DataFrame, timecol: str = "TIME"):
32+
def replace_all_doy_times(df: pd.DataFrame, timecol: str = "TIME") -> pd.DataFrame:
3333
"""
3434
Convert all detected DOY time columns in df to datetimes in place.
3535
@@ -129,7 +129,7 @@ def have_internet():
129129
conn.close()
130130

131131

132-
def file_variations(filename: Union[str, Path], extensions: list) -> list:
132+
def file_variations(filename: Union[str, Path], extensions: list[str]) -> list[Path]:
133133
"""
134134
Return list of variations of a file name based on possible extensions.
135135

0 commit comments

Comments
 (0)