module documentation
(source)

Astroid hook for the Hypothesis library.

Without this hook pylint reports no-value-for-parameter for use of strategies defined using the @hypothesis.strategies.composite decorator. For example:

from hypothesis import strategies as st

@st.composite def a_strategy(draw):

return draw(st.integers())

a_strategy()

Function is​_decorated​_with​_st​_composite Return True if a decorated node has @st.composite applied.
Function remove​_draw​_parameter​_from​_composite​_strategy Given that the FunctionDef is decorated with @st.composite, remove the first argument (draw) - it's always supplied by Hypothesis so we don't need to emit the no-value-for-parameter lint.
Constant COMPOSITE​_NAMES Undocumented
def is_decorated_with_st_composite(node): (source)
Return True if a decorated node has @st.composite applied.
def remove_draw_parameter_from_composite_strategy(node): (source)
Given that the FunctionDef is decorated with @st.composite, remove the first argument (draw) - it's always supplied by Hypothesis so we don't need to emit the no-value-for-parameter lint.
COMPOSITE_NAMES: tuple[str, ...] = (source)

Undocumented

Value
('composite',
 'st.composite',
 'strategies.composite',
 'hypothesis.strategies.composite')