Skip to content

Commit

Permalink
refactor defaultdict support documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
andiserg committed Jan 23, 2024
1 parent 3e01a02 commit 62e0a91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/adaptix/_internal/morphing/facade/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,10 +372,10 @@ def validating_loader(data):


def default_dict(pred: Pred, default_factory: Callable) -> Provider:
"""DefaultDictProvider factory with overriden default_factory parameter
"""DefaultDict provider with overriden default_factory parameter
:param pred: Predicate specifying where the provider should be used.
See :ref:`predicate-system` for details.
:param default_factory: param that will be passed to DefaultDictProvider
:param default_factory: default_factory parameter of the defaultdict instance to be created by the loader
"""
return bound(pred, DefaultDictProvider(default_factory))

0 comments on commit 62e0a91

Please sign in to comment.