Skip to content

Commit bca8d95

Browse files
committed
lint
1 parent 811762e commit bca8d95

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

hypothesis-python/RELEASE.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
RELEASE_TYPE: patch
22

3-
Speed up usages of |st.sampled_from| by deferring evaluation of its repr, and truncating its repr for large collections (over 512 elements). This is especially noticeable when using |st.sampeld_from| with large collections. The repr of |st.sampled_from| strategies involving sequence classes with custom reprs may change as a result of this release.
3+
Speed up usages of |st.sampled_from| by deferring evaluation of its repr, and truncating its repr for large collections (over 512 elements). This is especially noticeable when using |st.sampled_from| with large collections. The repr of |st.sampled_from| strategies involving sequence classes with custom reprs may change as a result of this release.

hypothesis-python/tests/nocover/test_sampled_from.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def test_enum_repr_uses_class_not_a_list():
8282

8383

8484
def test_repr_truncates_with_many_elements():
85-
s = st.sampled_from([n for n in range(10_000)])
85+
s = st.sampled_from(list(range(10_000)))
8686
repr_limit = 512
8787
assert repr(s) == f"sampled_from([{', '.join(map(str, range(repr_limit)))}, ...])"
8888

0 commit comments

Comments
 (0)