We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1655685 commit 0383609Copy full SHA for 0383609
turn_by_turn/madng.py
@@ -19,7 +19,6 @@
19
import logging
20
from datetime import datetime
21
from pathlib import Path
22
-from typing import TYPE_CHECKING
23
24
import pandas as pd
25
@@ -30,9 +29,6 @@
30
29
except ImportError:
31
HAS_TFS = False
32
33
-if TYPE_CHECKING:
34
- from tfs import TfsDataFrame
35
-
36
from turn_by_turn.structures import TbtData, TransverseData
37
38
LOGGER = logging.getLogger()
@@ -77,7 +73,7 @@ def read_tbt(file_path: str | Path) -> TbtData:
77
73
return convert_to_tbt(df)
78
74
79
75
80
-def convert_to_tbt(df: pd.DataFrame | TfsDataFrame) -> TbtData:
76
+def convert_to_tbt(df: pd.DataFrame | tfs.TfsDataFrame) -> TbtData:
81
"""
82
Convert a TFS or pandas DataFrame to a ``TbtData`` object.
83
0 commit comments