Skip to content

Commit 959ab32

Browse files
committed
chore: fix linting errors
1 parent e3c8404 commit 959ab32

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
default_stages: [commit, push, manual]
1+
default_stages: [pre-commit, pre-push, manual]
22

33
repos:
44
- repo: https://github.com/commitizen-tools/commitizen

src/ydata_profiling/model/correlations.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""Correlations between variables."""
44

55
import warnings
6-
from typing import Dict, List, Optional, Sized
6+
from typing import Dict, List, Optional, Sized, no_type_check
77

88
import numpy as np
99
import pandas as pd
@@ -19,6 +19,7 @@
1919
class CorrelationBackend:
2020
"""Helper class to select and cache the appropriate correlation backend (Pandas or Spark)."""
2121

22+
@no_type_check
2223
def __init__(self, df: Sized):
2324
"""Determine backend once and store it for all correlation computations."""
2425
if isinstance(df, pd.DataFrame):

src/ydata_profiling/model/pandas/summary_pandas.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,10 @@
99
from visions import VisionsTypeset
1010

1111
from ydata_profiling.config import Settings
12+
from ydata_profiling.model.summarizer import BaseSummarizer
1213
from ydata_profiling.model.typeset import ProfilingTypeSet
1314
from ydata_profiling.utils.dataframe import sort_column_names
1415

15-
BaseSummarizer: Any = "BaseSummarizer" # type: ignore
16-
1716

1817
def _is_cast_type_defined(typeset: VisionsTypeset, series: str) -> bool:
1918
return isinstance(typeset, ProfilingTypeSet) and series in typeset.type_schema

0 commit comments

Comments
 (0)