From ce7276163b6c5abf22722410a10c7919cf556b10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20Portela=20Afonso?= Date: Tue, 18 Mar 2025 18:52:32 +0000 Subject: [PATCH] chore: fix linting errors --- .pre-commit-config.yaml | 2 +- src/ydata_profiling/model/correlations.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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):