Skip to content

Commit c6a48bc

Browse files
committed
update wording
1 parent 43c1377 commit c6a48bc

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

hypothesis-python/src/hypothesis/_settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ class settings(metaclass=settingsMeta):
460460
"default",
461461
max_examples=100,
462462
derandomize=False,
463-
database=not_set, # see settings.database for details
463+
database=not_set, # see settings.database for the default database
464464
verbosity=Verbosity.normal,
465465
phases=tuple(Phase),
466466
stateful_step_count=50,

hypothesis-python/src/hypothesis/internal/conjecture/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ def check_sample(
8787
"Hypothesis treats earlier values as simpler."
8888
)
8989
if isinstance(values, range):
90+
# this is a type violation. we should fix this by making the return type
91+
# `Sequence[T] | range`, and audit downstream uses.
9092
return values # type: ignore
9193
return tuple(values)
9294

0 commit comments

Comments
 (0)