Skip to content

Commit 6150b28

Browse files
feeling flakey
1 parent f413b9b commit 6150b28

File tree

1 file changed

+2
-3
lines changed
  • mpcontribs-client/mpcontribs/client

1 file changed

+2
-3
lines changed

mpcontribs-client/mpcontribs/client/utils.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
from __future__ import annotations
44

5-
import enum
65
import gzip
76
from hashlib import md5
87
from jsonschema.exceptions import ValidationError
@@ -137,10 +136,10 @@ def unflatten_dict(dct: dict[str, Any], separator: str = ".") -> dict[str, Any]:
137136

138137
def _set_value(key, value):
139138
for i, x in enumerate(split_key := key.split(separator)):
140-
y = unflattened if i == 0 else v
139+
y = unflattened if i == 0 else v # noqa: F821
141140
if x not in y:
142141
y[x] = {} if i < len(split_key) - 1 else value
143-
v = y[x]
142+
v = y[x] # noqa: F841
144143

145144
_ = [
146145
_set_value(k, dct[k])

0 commit comments

Comments
 (0)