Skip to content

Commit bca9ef0

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 0727f1b commit bca9ef0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

misc/analyze_cache.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def extract(chunks: Iterable[JsonDict]) -> Iterable[JsonDict]:
4242
yield chunk
4343
yield from extract(chunk.values())
4444
elif isinstance(chunk, list):
45-
yield from extract(chunk) #type: ignore[unreachable] #TODO: is this actually unreachable, or are our types wrong?
45+
yield from extract(chunk) # type: ignore[unreachable] #TODO: is this actually unreachable, or are our types wrong?
4646

4747
yield from extract([chunk.data for chunk in chunks])
4848

@@ -93,7 +93,7 @@ def compress(chunk: JsonDict) -> JsonDict:
9393
def helper(chunk: JsonDict) -> JsonDict:
9494
nonlocal counter
9595
if not isinstance(chunk, dict):
96-
return chunk #type: ignore[unreachable] #TODO: is this actually unreachable, or are our types wrong?
96+
return chunk # type: ignore[unreachable] #TODO: is this actually unreachable, or are our types wrong?
9797

9898
if len(chunk) <= 2:
9999
return chunk
@@ -124,7 +124,7 @@ def decompress(chunk: JsonDict) -> JsonDict:
124124

125125
def helper(chunk: JsonDict) -> JsonDict:
126126
if not isinstance(chunk, dict):
127-
return chunk #type: ignore[unreachable] #TODO: is this actually unreachable, or are our types wrong?
127+
return chunk # type: ignore[unreachable] #TODO: is this actually unreachable, or are our types wrong?
128128
if ".id" in chunk:
129129
return cache[chunk[".id"]]
130130

0 commit comments

Comments
 (0)