Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HypothesisWorks/hypothesis
/ functions
Functions
6,838 in github.com/HypothesisWorks/hypothesis
⨍
Functions
6,838
◇
Types & classes
772
↳
Endpoints
144
↓ 2 callers
Function
_complex_dtypes
Return a strategy for complex dtype objects. ``sizes`` contains the complex sizes in bits, defaulting to ``(64, 128)`` which covers all valid
hypothesis/src/hypothesis/extra/array_api.py:708
↓ 2 callers
Function
_constants_file_str
(constants: Constants)
hypothesis/src/hypothesis/internal/constants_ast.py:198
↓ 2 callers
Function
_convert_targets
Single validator and converter for target arguments.
hypothesis/src/hypothesis/stateful.py:860
↓ 2 callers
Function
_count_leaves
(tree)
hypothesis/tests/cover/test_recursive.py:127
↓ 2 callers
Method
_decide
(self)
hypothesis/src/hypothesis/internal/conjecture/utils.py:390
↓ 2 callers
Function
_dedupe_exceptions
(exc: tuple[type[Exception], ...])
hypothesis/src/hypothesis/extra/ghostwriter.py:153
↓ 2 callers
Method
_deliver_information_message
( self, *, type: InfoObservationType, title: str, content: str | dict )
hypothesis/src/hypothesis/core.py:1424
↓ 2 callers
Function
_deliver_to_file
( observation: Observation, thread_id: int )
hypothesis/src/hypothesis/internal/observability.py:514
↓ 2 callers
Function
_delivered_titles
(observed_dir)
hypothesis/tests/cover/test_observability.py:1005
↓ 2 callers
Method
_draw_collection
(self, min_size, max_size, *, alphabet_size)
hypothesis/src/hypothesis/internal/conjecture/providers.py:1210
↓ 2 callers
Method
_draw_ordinary_datetime
(self, data, tz)
hypothesis/src/hypothesis/strategies/_internal/datetime.py:510
↓ 2 callers
Method
_ensure_directory_exists
(self)
hypothesis/src/hypothesis/database.py:450
↓ 2 callers
Function
_evict_old_observations
(observed_dir: Path)
hypothesis/src/hypothesis/internal/observability.py:506
↓ 2 callers
Function
_exception_string
(except_: tuple[type[Exception], ...])
hypothesis/src/hypothesis/extra/ghostwriter.py:181
↓ 2 callers
Method
_expect_delete
(self, k, v)
hypothesis/tests/cover/test_database_backend.py:605
↓ 2 callers
Method
_expect_event
(self, event_type, args)
hypothesis/tests/cover/test_database_backend.py:601
↓ 2 callers
Method
_expect_save
(self, k, v)
hypothesis/tests/cover/test_database_backend.py:610
↓ 2 callers
Method
_expected_depth
(self)
hypothesis/src/hypothesis/internal/conjecture/utils.py:378
↓ 2 callers
Method
_finish_element
(self)
hypothesis/src/hypothesis/internal/conjecture/utils.py:382
↓ 2 callers
Function
_floating_dtypes
Return a strategy for real-valued floating-point dtype objects. ``sizes`` contains the floating-point sizes in bits, defaulting to ``(32, 64)
hypothesis/src/hypothesis/extra/array_api.py:690
↓ 2 callers
Function
_from_type_deferred
(thing: type[Ex])
hypothesis/src/hypothesis/strategies/_internal/core.py:1329
↓ 2 callers
Method
_get_children_cache
( self, choice_type: ChoiceTypeT, constraints: ChoiceConstraintsT, *, key: ChoiceT )
hypothesis/src/hypothesis/internal/conjecture/datatree.py:900
↓ 2 callers
Function
_get_constraints
(args: tuple[Any, ...])
hypothesis/src/hypothesis/strategies/_internal/types.py:413
↓ 2 callers
Function
_get_filter_gave_ups
(strategy)
hypothesis/tests/cover/test_observability.py:292
↓ 2 callers
Function
_get_local_constants
()
hypothesis/src/hypothesis/internal/conjecture/providers.py:325
↓ 2 callers
Function
_get_module_helper
(obj)
hypothesis/src/hypothesis/extra/ghostwriter.py:735
↓ 2 callers
Function
_get_strategies
Return a dict of strategies for the union of arguments to `funcs`. If `pass_result_to_next_func` is True, assume that the result of each function
hypothesis/src/hypothesis/extra/ghostwriter.py:538
↓ 2 callers
Function
_get_varnames
(funcs)
hypothesis/src/hypothesis/extra/ghostwriter.py:1557
↓ 2 callers
Function
_gitignore_storage_dir_script
(*, home_dir=None)
hypothesis/tests/cover/test_filestorage.py:56
↓ 2 callers
Function
_has_surrogate
(choice)
hypothesis/tests/cover/test_observability.py:660
↓ 2 callers
Function
_imports_for_strategy
(strategy)
hypothesis/src/hypothesis/extra/ghostwriter.py:619
↓ 2 callers
Function
_integer_dtypes
Return a strategy for signed integer dtype objects. ``sizes`` contains the signed integer sizes in bits, defaulting to ``(8, 16, 32, 64)`` wh
hypothesis/src/hypothesis/extra/array_api.py:652
↓ 2 callers
Function
_intervals_to_strategy
( intervals: IntervalSet, *, description: str )
hypothesis/src/hypothesis/strategies/_internal/regex.py:61
↓ 2 callers
Method
_invert
(self, value: Any)
hypothesis/src/hypothesis/strategies/_internal/strategies.py:983
↓ 2 callers
Function
_is_hashable
(value: object)
hypothesis/src/hypothesis/strategies/_internal/strategies.py:618
↓ 2 callers
Method
_join
(self, timeout: float | None = None)
hypothesis/src/hypothesis/database.py:1204
↓ 2 callers
Function
_join_argument_annotations
( annotations: Iterable[_AnnotationData | None], )
hypothesis/src/hypothesis/extra/ghostwriter.py:978
↓ 2 callers
Function
_join_generics
( origin_type_data: tuple[str, set[str]] | None, annotations: Iterable[_AnnotationData | None], )
hypothesis/src/hypothesis/extra/ghostwriter.py:952
↓ 2 callers
Method
_log_phase_statistics
( self, phase: Literal["reuse", "generate", "shrink", "explain"] )
hypothesis/src/hypothesis/internal/conjecture/engine.py:398
↓ 2 callers
Method
_maybe_raise
(self)
hypothesis/tests/conjecture/test_provider.py:872
↓ 2 callers
Function
_model_choice_strategy
(field)
hypothesis/src/hypothesis/extra/django/_fields.py:290
↓ 2 callers
Function
_node_pretty
( choice_type: ChoiceTypeT, value: ChoiceT, constraints: ChoiceConstraintsT, *, forced: bo
hypothesis/src/hypothesis/internal/conjecture/datatree.py:73
↓ 2 callers
Function
_num_days_in_month
Branchless equivalent of ``monthrange(year, month)[1]`` for valid inputs. Written using only arithmetic and (in)equality, with no branching or in
hypothesis/src/hypothesis/strategies/_internal/datetime.py:192
↓ 2 callers
Function
_numeric_dtypes
Return a strategy for all numeric dtype objects.
hypothesis/src/hypothesis/extra/array_api.py:616
↓ 2 callers
Method
_offset_at
(self, instant)
hypothesis/tests/cover/test_datetimes.py:485
↓ 2 callers
Function
_pack_uleb128
Serialize an integer into variable-length bytes. For each byte, the first 7 bits represent (part of) the integer, while the last bit indicate
hypothesis/src/hypothesis/database.py:1233
↓ 2 callers
Function
_params_to_dict
( params: Iterable[inspect.Parameter], )
hypothesis/src/hypothesis/extra/ghostwriter.py:512
↓ 2 callers
Method
_publish
(self, event)
hypothesis/src/hypothesis/extra/redis.py:92
↓ 2 callers
Function
_raise_to_user
Helper function for attaching notes and grouping multiple errors.
hypothesis/src/hypothesis/core.py:1696
↓ 2 callers
Function
_real_dtypes
Return a strategy for all real-valued dtype objects.
hypothesis/src/hypothesis/extra/array_api.py:607
↓ 2 callers
Function
_reject_dtype_class
(dtype: object)
hypothesis/src/hypothesis/extra/numpy.py:113
↓ 2 callers
Method
_remove
(self, data: ConjectureResult)
hypothesis/src/hypothesis/internal/conjecture/pareto.py:281
↓ 2 callers
Function
_resolve_forward_ref_in_caller
Try to resolve a forward reference name by walking up the call stack. This allows us to resolve recursive forward references like: A = li
hypothesis/src/hypothesis/strategies/_internal/types.py:214
↓ 2 callers
Function
_run_and_get_junit
(testdir, *args)
hypothesis/tests/pytest/test_junit.py:31
↓ 2 callers
Function
_run_findability_tests
( Provider: type[PrimitiveProvider], provider_kw_strategy: SearchStrategy[dict[str, Any]], context
hypothesis/src/hypothesis/internal/conjecture/provider_conformance.py:534
↓ 2 callers
Function
_serialize_event
( event: Any, *, allowed_types: tuple[type, ...] = (str,), avoid_realization: bool )
hypothesis/src/hypothesis/control.py:300
↓ 2 callers
Method
_setrecursionlimit
(self, new_limit: int, *, check: bool = True)
hypothesis/src/hypothesis/internal/conjecture/junkdrawer.py:344
↓ 2 callers
Method
_should_trace
(self)
hypothesis/src/hypothesis/core.py:975
↓ 2 callers
Function
_size_to_index
(size: int, *, alphabet_size: int)
hypothesis/src/hypothesis/internal/conjecture/choice.py:198
↓ 2 callers
Method
_split_suffixed
(self, value: Any)
hypothesis/src/hypothesis/strategies/_internal/collections.py:399
↓ 2 callers
Function
_st_strategy_names
Replace strategy name() with st.name(). Uses a tricky re.sub() to avoid problems with frozensets() matching sets() too.
hypothesis/src/hypothesis/extra/ghostwriter.py:817
↓ 2 callers
Method
_start_test_case
(self, random, kw)
hypothesis/src/hypothesis/internal/conjecture/provider_conformance.py:719
↓ 2 callers
Method
_stop_listening
Called whenever no change listeners remain on the database. ``_stop_listening`` and ``_start_listening`` are guaranteed to alternate
hypothesis/src/hypothesis/database.py:350
↓ 2 callers
Function
_strategy
Convert SRE regex parse tree to strategy that generates strings matching that regex represented by that parse tree. `codes` is either a list
hypothesis/src/hypothesis/strategies/_internal/regex.py:344
↓ 2 callers
Function
_string_filter_rewrite
(self, kind, condition)
hypothesis/src/hypothesis/strategies/_internal/strings.py:330
↓ 2 callers
Function
_timezone_key_strategies
SampledFromStrategy branches for IANA keys: plain keys first, then one branch per allowed prefix, with the prefix applied as a sampled_from tr
hypothesis/src/hypothesis/strategies/_internal/datetime.py:1160
↓ 2 callers
Function
_transitions
(tz)
hypothesis/src/hypothesis/strategies/_internal/datetime.py:391
↓ 2 callers
Function
_unpack_uleb128
Inverts _pack_uleb128, and also returns the index at which at which we stopped reading.
hypothesis/src/hypothesis/database.py:1257
↓ 2 callers
Function
_unsigned_integer_dtypes
Return a strategy for unsigned integer dtype objects. ``sizes`` contains the unsigned integer sizes in bits, defaulting to ``(8, 16, 32, 64)`
hypothesis/src/hypothesis/extra/array_api.py:670
↓ 2 callers
Method
_urandom
(size: int)
hypothesis/src/hypothesis/internal/conjecture/providers.py:1251
↓ 2 callers
Function
_with_any_registered
()
hypothesis/src/hypothesis/extra/ghostwriter.py:520
↓ 2 callers
Method
add_listener
Add a change listener. ``f`` will be called whenever a value is saved, deleted, or moved in the database. ``f`` can be calle
hypothesis/src/hypothesis/database.py:269
↓ 2 callers
Method
anchor_map
fragment -> href, for anchor entries whose source is ``docname``.
hypothesis/docs/_ext/hypothesis_redirects.py:197
↓ 2 callers
Function
any_call_of_method
(draw, method)
hypothesis/tests/cover/test_randoms.py:85
↓ 2 callers
Method
append
(self, f)
hypothesis/src/hypothesis/internal/observability.py:374
↓ 2 callers
Function
argument_validation_test
(bad_args)
hypothesis/tests/common/arguments.py:28
↓ 2 callers
Function
array_dtypes
Return a strategy for generating array (compound) dtypes, with members drawn from the given subtype strategy.
hypothesis/src/hypothesis/extra/numpy.py:1002
↓ 2 callers
Function
as_general_categories
Return a tuple of Unicode categories in a normalised order. This function expands one-letter designations of a major class to include all sub
hypothesis/src/hypothesis/internal/charmap.py:218
↓ 2 callers
Function
assert_can_release
()
tooling/src/hypothesistooling/git.py:94
↓ 2 callers
Function
assert_narrowing_matches
(x: f64)
hypothesis/rust/tests/embedded/internal/test_floats.rs:14
↓ 2 callers
Function
assert_outcomes
(result, *, errors=0, failed=0)
hypothesis/tests/pytest/test_fixtures.py:194
↓ 2 callers
Function
assert_output_contains_failure
(output, test, **kwargs)
hypothesis/tests/common/utils.py:177
↓ 2 callers
Function
assert_reordered_exponents
(res)
hypothesis/tests/conjecture/test_float_encoding.py:28
↓ 2 callers
Function
assert_valid_range_list
(ls)
hypothesis/tests/cover/test_charmap.py:44
↓ 2 callers
Function
bar
(μ)
hypothesis/tests/cover/test_unicode_identifiers.py:20
↓ 2 callers
Function
batched
(iterable, n, *, strict=False)
hypothesis/src/hypothesis/internal/compat.py:257
↓ 2 callers
Function
build_docs
(*, builder="html", only=(), to=None)
tooling/src/hypothesistooling/release.py:141
↓ 2 callers
Function
calc_label_from_cls
(cls: type)
hypothesis/src/hypothesis/internal/conjecture/utils.py:54
↓ 2 callers
Function
calc_label_from_hash
(obj: object)
hypothesis/src/hypothesis/internal/conjecture/utils.py:58
↓ 2 callers
Method
call_shrinker
Calls another shrinker class, passing through the relevant context variables. Note we explicitly do not pass through full.
hypothesis/src/hypothesis/internal/conjecture/shrinking/common.py:69
↓ 2 callers
Function
callback
(observation)
hypothesis/tests/crosshair/test_crosshair.py:202
↓ 2 callers
Method
can_trace
()
hypothesis/src/hypothesis/internal/scrutineer.py:68
↓ 2 callers
Function
charmap
Return a dict that maps a Unicode category, to a tuple of 2-tuples covering the codepoint intervals for characters in that category. >>> char
hypothesis/src/hypothesis/internal/charmap.py:81
↓ 2 callers
Function
charmap_file
(fname: str = "charmap")
hypothesis/src/hypothesis/internal/charmap.py:72
↓ 2 callers
Function
check_block
(name, depth)
hypothesis/src/hypothesis/internal/coverage.py:81
↓ 2 callers
Function
check_sample
( values: type[enum.Enum] | Sequence[T], strategy_name: str )
hypothesis/src/hypothesis/internal/conjecture/utils.py:94
↓ 2 callers
Function
check_seed
(a: object)
hypothesis/src/hypothesis/strategies/_internal/random.py:170
↓ 2 callers
Method
check_set_value
(self, val, val_0d, strategy)
hypothesis/src/hypothesis/extra/array_api.py:323
↓ 2 callers
Function
check_xp_attributes
(xp: Any, attributes: list[str])
hypothesis/src/hypothesis/extra/array_api.py:82
↓ 2 callers
Function
choice_constraints_equal
( choice_type: ChoiceTypeT, constraints1: ChoiceConstraintsT, constraints2: ChoiceConstraintsT, )
hypothesis/src/hypothesis/internal/conjecture/choice.py:615
← previous
next →
601–700 of 6,838, ranked by callers