general: update mypy config, seems that logs of type: ignore aren't necessary anymore
This commit is contained in:
parent
a445d2cbfe
commit
c34656e8fb
52 changed files with 142 additions and 105 deletions
|
@ -9,7 +9,7 @@ from ..core.error import Res
|
|||
from ..core.orgmode import parse_org_datetime, one_table
|
||||
|
||||
|
||||
import pandas as pd # type: ignore
|
||||
import pandas as pd
|
||||
import orgparse
|
||||
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ def dataframe() -> DataFrameT:
|
|||
from ...endomondo import dataframe as EDF
|
||||
from ...runnerup import dataframe as RDF
|
||||
|
||||
import pandas as pd # type: ignore
|
||||
import pandas as pd
|
||||
return pd.concat([
|
||||
EDF(),
|
||||
RDF(),
|
||||
|
|
|
@ -78,7 +78,7 @@ def cross_trainer_manual_dataframe() -> DataFrameT:
|
|||
'''
|
||||
Only manual org-mode entries
|
||||
'''
|
||||
import pandas as pd # type: ignore[import]
|
||||
import pandas as pd
|
||||
df = pd.DataFrame(cross_trainer_data())
|
||||
return df
|
||||
|
||||
|
@ -91,7 +91,7 @@ def dataframe() -> DataFrameT:
|
|||
'''
|
||||
Attaches manually logged data (which Endomondo can't capture) and attaches it to Endomondo
|
||||
'''
|
||||
import pandas as pd # type: ignore[import]
|
||||
import pandas as pd
|
||||
|
||||
from ...endomondo import dataframe as EDF
|
||||
edf = EDF()
|
||||
|
|
|
@ -8,7 +8,7 @@ class Combine:
|
|||
|
||||
@cdf
|
||||
def dataframe(self, with_temperature: bool=True) -> DataFrameT:
|
||||
import pandas as pd # type: ignore
|
||||
import pandas as pd
|
||||
# todo include 'source'?
|
||||
df = pd.concat([m.dataframe() for m in self.modules])
|
||||
|
||||
|
|
|
@ -56,7 +56,7 @@ def from_orgmode() -> Iterator[Result]:
|
|||
|
||||
|
||||
def make_dataframe(data: Iterator[Result]):
|
||||
import pandas as pd # type: ignore
|
||||
import pandas as pd
|
||||
def it():
|
||||
for e in data:
|
||||
if isinstance(e, Exception):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue