Skip to content

Commit 0c38332

Browse files
committed
convert-hf : flake8 doesn't like lowercase L as a variable name
1 parent f09674f commit 0c38332

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

convert-hf-to-gguf.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2251,12 +2251,12 @@ def __init__(self, *, meta: Tensor, data: Tensor | None = None, args: list[Any]
22512251
def _recurse_apply(o: Any, fn: Callable[[Any], Any]) -> Any:
22522252
# TODO: dicts
22532253
if isinstance(o, (list, tuple)):
2254-
l = []
2254+
L = []
22552255
for item in o:
2256-
l.append(LazyTorchTensor._recurse_apply(item, fn))
2256+
L.append(LazyTorchTensor._recurse_apply(item, fn))
22572257
if isinstance(o, tuple):
2258-
l = tuple(l)
2259-
return l
2258+
L = tuple(L)
2259+
return L
22602260
elif isinstance(o, LazyTorchTensor):
22612261
return fn(o)
22622262
else:

0 commit comments

Comments
 (0)