diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 47721ef88..8d137c3b3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,4 +1,4 @@ -default_stages: [commit, push, manual] +default_stages: [pre-commit, pre-push, manual] repos: - repo: https://github.com/commitizen-tools/commitizen diff --git a/src/ydata_profiling/model/correlations.py b/src/ydata_profiling/model/correlations.py index 2138d88c8..2bbaa1112 100644 --- a/src/ydata_profiling/model/correlations.py +++ b/src/ydata_profiling/model/correlations.py @@ -3,7 +3,7 @@ """Correlations between variables.""" import warnings -from typing import Dict, List, Optional, Sized +from typing import Dict, List, Optional, Sized, no_type_check import numpy as np import pandas as pd @@ -19,6 +19,7 @@ class CorrelationBackend: """Helper class to select and cache the appropriate correlation backend (Pandas or Spark).""" + @no_type_check def __init__(self, df: Sized): """Determine backend once and store it for all correlation computations.""" if isinstance(df, pd.DataFrame):