Skip to content

Commit 773dfd1

Browse files
Fix pyright type error in conversion_validation.py
Change return type annotation to allow string values in error dict to match the actual return in the except clause. Co-Authored-By: Alex Peng <[email protected]>
1 parent 27c40a6 commit 773dfd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gguf-py/gguf/conversion_validation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def validate_tensor_conversion(
4040
max_rmse_threshold: float = 0.01,
4141
max_error_threshold: float = 0.1,
4242
verbose: bool = False
43-
) -> tuple[bool, dict[str, float]]:
43+
) -> tuple[bool, dict[str, float | str]]:
4444
"""
4545
Validate accuracy of a single tensor conversion.
4646

0 commit comments

Comments
 (0)