Skip to content

Commit

Permalink
fix: logger flagged errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabiana Clemente authored and fabclmnt committed Jul 9, 2024
1 parent 1c42264 commit 488341c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ydata_profiling/utils/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ class ProfilingLogger(logging.Logger):
def __init__(self, name: str, level: int = logging.INFO):
super().__init__(name, level)

def info_def_report(self, dataframe, timeseries: bool) -> None: # type: ignore
if dataframe is pd.DataFrame:
def info_def_report(self, dataframe, timeseries: bool) -> None: # noqa: ANN001
if isinstance(dataframe, pd.DataFrame):
dataframe = "pandas"
report_type = "regular"
elif dataframe is type(None):
elif isinstance(dataframe, None):
dataframe = "pandas"
report_type = "compare"
else:
Expand Down

0 comments on commit 488341c

Please sign in to comment.