Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
change: now the kwarg name of the compression manager param is CamelCase
  • Loading branch information
caue-paiva committed Sep 27, 2025
commit 2ff3c3e3da04ddecc305e827eb979e552aa59e29
4 changes: 2 additions & 2 deletions dash/_compression.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,12 +322,12 @@ def get_compression_manager_from_kwargs(
"""Extract compression manager from kwargs dict.

Args:
kwargs: Dictionary that may contain 'compression_manager' key
kwargs: Dictionary that may contain 'CompressionManager' key

Returns:
BaseStoreCompressionManager instance or None if not found
"""
return kwargs.get("compression_manager", None)
return kwargs.get("CompressionManager", None)


# Convenience alias
Expand Down
6 changes: 3 additions & 3 deletions tests/unit/library/test_grouped_callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def test_callback_compression_manager_parameter():
@app.callback(
Output("output", "children"),
Input("input", "value"),
compression_manager=compression_manager,
CompressionManager=compression_manager,
)
def update_output(value):
return value
Expand Down Expand Up @@ -259,15 +259,15 @@ def test_multiple_callbacks_different_compression_managers():
@app.callback(
Output("output1", "children"),
Input("input1", "value"),
compression_manager=compression_manager1,
CompressionManager=compression_manager1,
)
def update_output1(value):
return value

@app.callback(
Output("output2", "children"),
Input("input2", "value"),
compression_manager=compression_manager2,
CompressionManager=compression_manager2,
)
def update_output2(value):
return value
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_compression.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ class TestKwargsHelperFunction:
def test_get_manager_from_kwargs_present(self):
"""Test extracting compression manager when present in kwargs."""
manager = GzipCompressionManager()
kwargs = {"compression_manager": manager, "other_param": "value"}
kwargs = {"CompressionManager": manager, "other_param": "value"}

result = get_compression_manager_from_kwargs(kwargs)
assert result is manager
Expand Down