Skip to content

Commit

Permalink
Merge pull request #2958 from chiamp:pop_doc_str
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 519817606
  • Loading branch information
Flax Authors committed Mar 27, 2023
2 parents 396edea + 7b1b4d9 commit 8957389
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flax/core/frozen_dict.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,8 @@ def copy(x: Union[FrozenDict, Dict[str, Any]], add_or_replace: Union[FrozenDict,

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

0 comments on commit 8957389

Please sign in to comment.