Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HypothesisWorks/hypothesis
/ functions
Functions
6,609 in github.com/HypothesisWorks/hypothesis
⨍
Functions
6,609
◇
Types & classes
739
↳
Endpoints
139
↓ 4 callers
Method
move
(self, k1, k2, v)
hypothesis/tests/cover/test_database_backend.py:663
↓ 4 callers
Method
new_conjecture_data
( self, prefix: Sequence[ChoiceT | ChoiceTemplate | ValueHole], *, observer: D
hypothesis/src/hypothesis/internal/conjecture/engine.py:1656
↓ 4 callers
Function
numeric_dtype_names
(base_name: str, sizes: Sequence[int])
hypothesis/src/hypothesis/extra/array_api.py:643
↓ 4 callers
Function
permutations
Return a strategy which returns permutations of the ordered collection ``values``. Examples from this strategy shrink by trying to become clo
hypothesis/src/hypothesis/strategies/_internal/core.py:2022
↓ 4 callers
Method
record_value_for_span
(self, span_index: int, value: Any)
hypothesis/src/hypothesis/internal/conjecture/data.py:389
↓ 4 callers
Function
replace_all
Substitute multiple replacement values into a list. Replacements is a list of (start, end, value) triples.
hypothesis/src/hypothesis/internal/conjecture/junkdrawer.py:63
↓ 4 callers
Function
resolve_Dict
(thing)
hypothesis/src/hypothesis/strategies/_internal/types.py:1192
↓ 4 callers
Function
run_validate_branch_check
(tmp_path, *, check, **kwargs)
whole_repo_tests/whole_repo/test_validate_branch_check.py:27
↓ 4 callers
Method
save_choices
( self, choices: Sequence[ChoiceT], sub_key: bytes | None = None )
hypothesis/src/hypothesis/internal/conjecture/engine.py:941
↓ 4 callers
Function
scalar_dtypes
Return a strategy that can return any non-flexible scalar dtype.
hypothesis/src/hypothesis/extra/numpy.py:616
↓ 4 callers
Function
select
(*args)
hypothesis/tests/conjecture/test_choice_tree.py:21
↓ 4 callers
Method
set_for_type
( self, constant_type: type[ConstantT] | ChoiceTypeT )
hypothesis/src/hypothesis/internal/constants_ast.py:49
↓ 4 callers
Method
setstate
(self, *args: Any, **kwargs: Any)
hypothesis/src/hypothesis/internal/entropy.py:34
↓ 4 callers
Function
should_note
()
hypothesis/src/hypothesis/control.py:263
↓ 4 callers
Method
show_changed
(self)
hypothesis/src/hypothesis/_settings.py:1111
↓ 4 callers
Function
stdtr
Student's t CDF for integer df >= 1, evaluated at t. Closed-form finite sum from Abramowitz & Stegun 26.7.7-8.
hypothesis/src/hypothesis/internal/statistics.py:24
↓ 4 callers
Function
test
(ls)
hypothesis/tests/cover/test_replay_logic.py:33
↓ 4 callers
Function
test
(i)
hypothesis/tests/cover/test_seed_printing.py:52
↓ 4 callers
Method
test_function
(self, data: ConjectureData)
hypothesis/src/hypothesis/internal/conjecture/engine.py:555
↓ 4 callers
Function
timezones
A strategy for :class:`python:zoneinfo.ZoneInfo` objects. If ``no_cache=True``, the generated instances are constructed using :meth:`ZoneInfo
hypothesis/src/hypothesis/strategies/_internal/datetime.py:979
↓ 4 callers
Method
track_arg_label
(self, label: str)
hypothesis/src/hypothesis/control.py:168
↓ 4 callers
Function
with_register_backend
(name, provider_cls)
hypothesis/src/hypothesis/internal/conjecture/providers.py:384
↓ 4 callers
Function
write_entries
(tmp_path, entries)
whole_repo_tests/whole_repo/test_validate_branch_check.py:22
↓ 3 callers
Method
__assert_not_frozen
(self, name: str)
hypothesis/src/hypothesis/internal/conjecture/data.py:1234
↓ 3 callers
Method
__exit__
(self, *args, **kwargs)
hypothesis/src/hypothesis/internal/conjecture/junkdrawer.py:430
↓ 3 callers
Method
__init__
(self, testcounter: int)
hypothesis/src/hypothesis/errors.py:319
↓ 3 callers
Method
__init__
(self, min_value, max_value, timezones_strat)
hypothesis/src/hypothesis/strategies/_internal/datetime.py:689
↓ 3 callers
Method
__init__
( self, elements: SearchStrategy[Ex], min_size: int = 0, max_size: float | int
hypothesis/src/hypothesis/strategies/_internal/collections.py:179
↓ 3 callers
Method
__init__
(self, field_count=5, **kwargs)
hypothesis/tests/django/toystore/forms.py:84
↓ 3 callers
Method
__underlying_index
(self, i: int)
hypothesis/src/hypothesis/internal/conjecture/junkdrawer.py:270
↓ 3 callers
Method
_broadcast_change
Called when a value has been either added to or deleted from a key in the underlying database store. The possible values for ``event`
hypothesis/src/hypothesis/database.py:314
↓ 3 callers
Function
_callbacks
()
hypothesis/tests/cover/test_observability.py:631
↓ 3 callers
Function
_choice_to_json
(choice: ChoiceT | None)
hypothesis/src/hypothesis/internal/observability.py:85
↓ 3 callers
Function
_comparator_bound
Return ``(op, bound)`` for filter conditions like ``partial(op, bound)``, with a single positional argument to one of the five comparison operator
hypothesis/src/hypothesis/strategies/_internal/datetime.py:53
↓ 3 callers
Function
_db_for_path
( path: StrPathT | UniqueIdentifier | Literal[":memory:"] | None = None, )
hypothesis/src/hypothesis/database.py:85
↓ 3 callers
Function
_decode_choice
(value)
hypothesis/tests/cover/test_observability.py:418
↓ 3 callers
Method
_draw_bits
(self, n)
hypothesis/src/hypothesis/internal/conjecture/providers.py:1122
↓ 3 callers
Function
_draw_valid_bounds
(data, shape, max_dims, *, permit_none=True)
hypothesis/tests/numpy/test_gen_data.py:592
↓ 3 callers
Method
_ensure_thread
(self)
hypothesis/src/hypothesis/database.py:1179
↓ 3 callers
Function
_findall_from_root
(junit_xml, path)
hypothesis/tests/pytest/test_junit.py:37
↓ 3 callers
Function
_from_dtype
Return a strategy for any value of the given dtype. Values generated are of the Python scalar which is :xp-ref:`promotable <type_promotion.ht
hypothesis/src/hypothesis/extra/array_api.py:175
↓ 3 callers
Function
_from_type
(thing: type[Ex])
hypothesis/src/hypothesis/strategies/_internal/core.py:1358
↓ 3 callers
Function
_hypothesis_parse_gufunc_signature
(signature)
hypothesis/src/hypothesis/extra/_array_helpers.py:301
↓ 3 callers
Method
_initialize_db
(self)
hypothesis/src/hypothesis/database.py:989
↓ 3 callers
Function
_narrowed_bounds
Narrow [min_value, max_value] to satisfy the condition ``func(arg, x)``. ``shift(value, steps)`` moves value by that many of the smallest represe
hypothesis/src/hypothesis/strategies/_internal/datetime.py:66
↓ 3 callers
Method
_note_deprecation
(self)
hypothesis/src/hypothesis/internal/observability.py:361
↓ 3 callers
Function
_position_to_float
Inverse of :func:`_float_to_position` on the integer-valued range. Always returns an integer-valued, non-negative float.
hypothesis/src/hypothesis/internal/conjecture/shrinking/floats.py:38
↓ 3 callers
Function
_rule_qualname
(f: Any)
hypothesis/src/hypothesis/stateful.py:808
↓ 3 callers
Function
_strip_typevars
(type_)
hypothesis/src/hypothesis/extra/ghostwriter.py:246
↓ 3 callers
Function
_timezones_kind
Classify the values a timezones= strategy can generate: "none" if only None, "aware" if only tzinfo instances, or "unknown" if we can't tell.
hypothesis/src/hypothesis/strategies/_internal/datetime.py:94
↓ 3 callers
Function
_try_inline_lambda
Helper: run _try_inline_lambda and return the printer output, or None.
hypothesis/tests/cover/test_lambda_inlining.py:18
↓ 3 callers
Function
_valid_syntax_repr
(strategy)
hypothesis/src/hypothesis/extra/ghostwriter.py:673
↓ 3 callers
Function
_validate_enum_value
(cls: Any, value: object, *, name: str)
hypothesis/src/hypothesis/_settings.py:426
↓ 3 callers
Method
_value_path
(self, key: bytes, value: bytes)
hypothesis/src/hypothesis/database.py:476
↓ 3 callers
Function
_xp_without
A copy of mock_xp with the given attributes removed.
hypothesis/tests/array_api/test_from_dtype.py:40
↓ 3 callers
Function
a
(x)
hypothesis/tests/cover/test_health_checks.py:126
↓ 3 callers
Function
array_shapes
Return a strategy for array shapes (tuples of int >= 1). * ``min_dims`` is the smallest length that the generated shape can possess. * ``max_
hypothesis/src/hypothesis/extra/_array_helpers.py:93
↓ 3 callers
Function
assert_runs_to_output
(TestClass, output)
hypothesis/tests/nocover/test_stateful.py:41
↓ 3 callers
Function
badly_draw_lists
(draw, m=0)
hypothesis/tests/cover/test_composite.py:27
↓ 3 callers
Function
bits_to_bytes
The number of bytes required to represent an n-bit number. Equivalent to (n + 7) // 8, but slightly faster. This really is called enough times
hypothesis/src/hypothesis/internal/conjecture/junkdrawer.py:545
↓ 3 callers
Function
bump_version_info
(version_info, release_type)
tooling/src/hypothesistooling/release.py:101
↓ 3 callers
Function
calc_label_from_callable
(f: Callable)
hypothesis/src/hypothesis/internal/conjecture/utils.py:40
↓ 3 callers
Method
cdf
(self, x: float)
hypothesis/src/hypothesis/internal/statistics.py:130
↓ 3 callers
Function
check
()
hypothesis/tests/nocover/test_threading.py:175
↓ 3 callers
Method
check_exhausted
Recalculates is_exhausted if necessary, and then returns it. A node is exhausted if: - Its transition is Conclusion or Kille
hypothesis/src/hypothesis/internal/conjecture/datatree.py:477
↓ 3 callers
Function
check_valid_integer
Checks that value is either unspecified, or a valid integer. Otherwise raises InvalidArgument.
hypothesis/src/hypothesis/internal/validation.py:41
↓ 3 callers
Function
choice_count
( choices: Sequence[ChoiceT | ChoiceTemplate | ValueHole], )
hypothesis/src/hypothesis/internal/conjecture/engine.py:238
↓ 3 callers
Method
choices
(self)
hypothesis/src/hypothesis/internal/conjecture/shrinker.py:964
↓ 3 callers
Method
conclude_test
( self, status: Status, interesting_origin: InterestingOrigin | None = None, )
hypothesis/src/hypothesis/internal/conjecture/data.py:1443
↓ 3 callers
Method
condition
(self)
hypothesis/src/hypothesis/strategies/_internal/strategies.py:1296
↓ 3 callers
Function
consumes
When introducing a rule in a RuleBasedStateMachine, this function can be used to mark bundles from which each value used in a step with the gi
hypothesis/src/hypothesis/stateful.py:725
↓ 3 callers
Function
convert_kwargs
(name, kwargs)
hypothesis/src/hypothesis/strategies/_internal/random.py:355
↓ 3 callers
Function
current_version
()
tooling/src/hypothesistooling/release.py:355
↓ 3 callers
Method
debug
(self, *args: object)
hypothesis/src/hypothesis/internal/conjecture/shrinking/common.py:78
↓ 3 callers
Function
deferred
A deferred strategy allows you to write a strategy that references other strategies that have not yet been defined. This allows for the easy d
hypothesis/src/hypothesis/strategies/_internal/core.py:2635
↓ 3 callers
Function
do_conversion_test
(f, args, kwargs)
hypothesis/tests/cover/test_reflection.py:50
↓ 3 callers
Function
e
(a, *args, **kwargs)
hypothesis/tests/common/arguments.py:17
↓ 3 callers
Function
elements_and_dtype
(elements, dtype, source=None)
hypothesis/src/hypothesis/extra/pandas/impl.py:137
↓ 3 callers
Method
exit_with
(self, reason: ExitReason)
hypothesis/src/hypothesis/internal/conjecture/engine.py:1131
↓ 3 callers
Function
extract_bits
(x: int, /, width: int | None = None)
hypothesis/src/hypothesis/internal/compat.py:220
↓ 3 callers
Function
f
(x)
hypothesis/tests/nocover/test_regressions.py:27
↓ 3 callers
Function
f
()
hypothesis/tests/cover/test_random_module.py:237
↓ 3 callers
Function
f
(x)
hypothesis/tests/cover/test_reporting.py:37
↓ 3 callers
Function
f
(u, v)
hypothesis/tests/cover/test_testdecorators.py:439
↓ 3 callers
Function
f1
(n)
hypothesis/tests/nocover/test_randomization.py:36
↓ 3 callers
Function
failing_output
(test)
hypothesis/tests/cover/test_functions.py:258
↓ 3 callers
Method
fetch
Return an iterable over all values matching this key.
hypothesis/src/hypothesis/database.py:243
↓ 3 callers
Method
fetch
(self, key)
hypothesis/tests/cover/test_phases.py:64
↓ 3 callers
Function
float_to_lex
(f: float)
hypothesis/src/hypothesis/internal/conjecture/floats.py:193
↓ 3 callers
Function
forced_or_cached_value
(target: SearchStrategy)
hypothesis/src/hypothesis/strategies/_internal/strategies.py:117
↓ 3 callers
Method
from_characters_args
( cls, *, codec: str | None = None, min_codepoint: int | None = None,
hypothesis/src/hypothesis/strategies/_internal/strings.py:95
↓ 3 callers
Function
from_dtype
Creates a strategy which can generate any value of the given dtype. Compatible parameters are passed to the inferred strategy function while
hypothesis/src/hypothesis/extra/numpy.py:127
↓ 3 callers
Method
from_path
(cls, path: str)
hypothesis/src/hypothesis/internal/scrutineer.py:267
↓ 3 callers
Function
frozensets
This is identical to the sets function but instead returns frozensets.
hypothesis/src/hypothesis/strategies/_internal/core.py:455
↓ 3 callers
Function
gc_collect
()
hypothesis/tests/cover/test_random_module.py:34
↓ 3 callers
Function
get_recorded
(name, actual="")
hypothesis/tests/ghostwriter/test_expected_output.py:56
↓ 3 callers
Function
get_reports
(file_contents, *, testdir)
hypothesis/tests/nocover/test_scrutineer.py:64
↓ 3 callers
Function
has_a_non_zero_byte
(x)
hypothesis/tests/nocover/test_database_usage.py:31
↓ 3 callers
Function
has_release
()
tooling/src/hypothesistooling/release.py:65
↓ 3 callers
Method
in_bounds
(self, value)
hypothesis/src/hypothesis/strategies/_internal/datetime.py:317
← previous
next →
401–500 of 6,609, ranked by callers