Skip to content

Commit 925ff06

Browse files
Update tests/llmcompressor/pipelines/test_cache.py
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Signed-off-by: Kyle Sayers <[email protected]>
1 parent 8a33609 commit 925ff06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/llmcompressor/pipelines/test_cache.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,8 @@ def deep_equal(a, b) -> bool:
182182
return False
183183
return all(deep_equal(a[key], b[key]) for key in a.keys())
184184
case _ if is_dataclass(a):
185-
a_dict = {field: getattr(a, field.name) for field in fields(a)}
186-
b_dict = {field: getattr(b, field.name) for field in fields(b)}
185+
a_dict = {field.name: getattr(a, field.name) for field in fields(a)}
186+
b_dict = {field.name: getattr(b, field.name) for field in fields(b)}
187187

188188
return deep_equal(a_dict, b_dict)
189189
case _:

0 commit comments

Comments
 (0)