Skip to content

Commit

Permalink
Updated docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaCappelletti94 committed Jun 2, 2020
1 parent f433920 commit 196245f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions random_dict/random_dict.py
Expand Up @@ -96,10 +96,17 @@ def random_dict(
generators_combinations: int = 5
) -> Dict:
"""Return a random dictionary with at most given max_depth and max_height.
Parameters
---------------------
max_depth:int, maximum depth of dictionary.
max_height:int, maximum height of dictionary.
generators:Tuple[Callable], functions used to populate the dictionary.
generators_combinations: int = 5, functions combinations to use.
Returns
---------------------
Random dictionary.
"""
generators_tuples = list(product(_value_gen(
generators, max_height), _value_gen(generators, max_height)))
Expand Down

0 comments on commit 196245f

Please sign in to comment.