We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99161c6 commit c03724bCopy full SHA for c03724b
hypothesis-python/src/hypothesis/strategies/_internal/collections.py
@@ -321,6 +321,7 @@ def __init__(
321
optional: Optional[dict[T, SearchStrategy[Ex]]],
322
):
323
dict_type = type(mapping)
324
+ self.mapping = mapping
325
keys = tuple(mapping.keys())
326
self.fixed = st.tuples(*[mapping[k] for k in keys]).map(
327
lambda value: dict_type(zip(keys, value))
@@ -348,5 +349,5 @@ def calc_is_empty(self, recur):
348
349
350
def __repr__(self):
351
if self.optional is not None:
- return f"fixed_dictionaries({self.keys!r}, optional={self.optional!r})"
352
- return f"fixed_dictionaries({self.keys!r})"
+ return f"fixed_dictionaries({self.mapping!r}, optional={self.optional!r})"
353
+ return f"fixed_dictionaries({self.mapping!r})"
0 commit comments