Skip to content

Commit

Permalink
use immutable default
Browse files Browse the repository at this point in the history
Signed-off-by: Kyle Sayers <[email protected]>
  • Loading branch information
kylesayrs committed Feb 5, 2025
1 parent 46ae8eb commit a2934b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/llmcompressor/modifiers/utils/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class HooksMixin(BaseModel):

@classmethod
@contextlib.contextmanager
def disable_hooks(cls, keep: Set[RemovableHandle] = set()):
def disable_hooks(cls, keep: Set[RemovableHandle] = frozenset()):
"""
Disable all hooks across all modifiers. Composing multiple contexts is
equivalent to the union of `keep` arguments
Expand Down

0 comments on commit a2934b3

Please sign in to comment.