Skip to content

Commit f9790b2

Browse files
committed
Fixed mypy errors on CI
1 parent 2fe9c86 commit f9790b2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

flax/traceback_util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
# Whether to filter flax frames from traceback.
2626
_flax_filter_tracebacks = config.flax_filter_frames
2727
# Flax specific set of paths to exclude from tracebacks.
28-
_flax_exclusions = set()
28+
_flax_exclusions = set() # type: ignore[var-annotated]
2929

3030

3131
# re-import JAX symbol for convenience.

flax/training/checkpoints.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1163,7 +1163,7 @@ def read_chunk(i):
11631163
else:
11641164
checkpoint_contents = fp.read()
11651165

1166-
state_dict = serialization.msgpack_restore(checkpoint_contents)
1166+
state_dict = serialization.msgpack_restore(bytes(checkpoint_contents))
11671167
state_dict = _restore_mpas(
11681168
state_dict,
11691169
target,

0 commit comments

Comments
 (0)