Skip to content

Commit 8fcc417

Browse files
authored
chore: fix linting errors (#1732)
1 parent e3c8404 commit 8fcc417

2 files changed

Lines changed: 3 additions & 2 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):

0 commit comments

Comments
 (0)