Skip to content

Commit 8957389

Browse files
author
Flax Authors
committed
Merge pull request google#2958 from chiamp:pop_doc_str
PiperOrigin-RevId: 519817606
2 parents 396edea + 7b1b4d9 commit 8957389

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

flax/core/frozen_dict.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,8 @@ def copy(x: Union[FrozenDict, Dict[str, Any]], add_or_replace: Union[FrozenDict,
245245

246246
def pop(x: Union[FrozenDict, Dict[str, Any]], key: str) -> Tuple[Union[FrozenDict, Dict[str, Any]], Any]:
247247
"""Create a new dict where one entry is removed. This is a utility
248-
function for regular dicts that mimics the behavior of `FrozenDict.pop`.
248+
function that can act on either a FrozenDict or regular dict and
249+
mimics the behavior of `FrozenDict.pop`.
249250
250251
Example::
251252

0 commit comments

Comments
 (0)