Skip to content

Commit 03432a9

Browse files
committed
better type hints, warn once
Signed-off-by: Kyle Sayers <[email protected]>
1 parent 0e5df88 commit 03432a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compressed_tensors/utils/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def decorator(func: T) -> T:
195195

196196
@wraps(func)
197197
def wrapped(*args, **kwargs):
198-
warnings.warn(message, DeprecationWarning, stacklevel=2)
198+
logger.bind(log_once=True).warning(message)
199199
return func(*args, **kwargs)
200200

201201
return wrapped

0 commit comments

Comments
 (0)