Skip to content

Commit 1240878

Browse files
committed
fix(linting): code formatting
1 parent 4cdb70d commit 1240878

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/ydata_profiling/model/summary_algorithms.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,11 @@ def histogram_compute(
5555
# manter a lógica original do max_bins
5656
if len(bins) > hist_config.max_bins:
5757
bins = np.histogram_bin_edges(finite_values, bins=hist_config.max_bins)
58-
weights = weights if weights is not None and len(weights) == hist_config.max_bins else None
58+
weights = (
59+
weights
60+
if weights is not None and len(weights) == hist_config.max_bins
61+
else None
62+
)
5963

6064
stats[name] = np.histogram(
6165
finite_values,

0 commit comments

Comments
 (0)