| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| Hypothesis for Python - version 6.152.7 source code.tar.gz | 2026-05-13 | 9.6 MB | |
| Hypothesis for Python - version 6.152.7 source code.zip | 2026-05-13 | 10.1 MB | |
| README.md | 2026-05-13 | 527 Bytes | |
| Totals: 3 Items | 19.7 MB | 0 | |
This patch improves our type hints for ".filter()" to work with "typing.TypeGuard". For example:
from typing import TypeGuard
from hypothesis import strategies as st
def is_str(x: object) -> TypeGuard[str]: return isinstance(x, str)
s = st.from_type(object).filter(is_str)
# previously: SearchStrategy[object] # now: SearchStrategy[str] reveal_type(s)
The canonical version of these notes (with links) is on readthedocs.