PiperOrigin-RevId: 384195478
Showing 1 of 3 files from the diff.
flax/core/frozen_dict.py
changed.
Other files ignored by Codecov
CHANGELOG.md
has changed.
tests/core/frozen_dict_test.py
has changed.
@@ -95,7 +95,7 @@
Loading
95 | 95 | ||
96 | 96 | def copy(self, add_or_replace: Mapping[K, V]) -> 'FrozenDict[K, V]': |
|
97 | 97 | """Create a new FrozenDict with additional or replaced entries.""" |
|
98 | - | return type(self)(self, **unfreeze(add_or_replace)) |
|
98 | + | return type(self)({**self, **unfreeze(add_or_replace)}) |
|
99 | 99 | ||
100 | 100 | def items(self): |
|
101 | 101 | for key in self._dict: |
Files | Coverage |
---|---|
flax | 82.30% |
Project Totals (65 files) | 82.30% |
1022383837
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file.
The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files.
The size and color of each slice is representing the number of statements and the coverage, respectively.