Skip to content

Commit 138eccd

Browse files
committed
fix: array optional typing
1 parent a7f75b3 commit 138eccd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/ydata_profiling/model/summary_algorithms.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def inner(
2929
def safe_histogram(
3030
values: np.ndarray,
3131
bins: Union[int, str, np.ndarray] = "auto",
32-
weights: Optional = None,
32+
weights: Optional[np.ndarray] = None,
3333
density: bool = False,
3434
) -> Tuple[np.ndarray, np.ndarray]:
3535
"""
@@ -109,7 +109,7 @@ def histogram_compute(
109109
return stats
110110

111111
def chi_square(
112-
values: Optional = None, histogram: Optional = None
112+
values: Optional[np.ndarray] = None, histogram: Optional[np.ndarray] = None
113113
) -> dict:
114114
if histogram is None:
115115
try:

0 commit comments

Comments
 (0)