diff --git a/hypothesis-python/src/hypothesis/strategies/_internal/core.py b/hypothesis-python/src/hypothesis/strategies/_internal/core.py index 9e095aaf50..2a367c7add 100644 --- a/hypothesis-python/src/hypothesis/strategies/_internal/core.py +++ b/hypothesis-python/src/hypothesis/strategies/_internal/core.py @@ -1305,8 +1305,8 @@ def from_type_guarded(thing): pass if (hasattr(typing, "_TypedDictMeta") and type(thing) is typing._TypedDictMeta) or ( hasattr(types.typing_extensions, "_TypedDictMeta") # type: ignore - and type(thing) is types.typing_extensions._TypedDictMeta - ): # type: ignore # pragma: no cover + and type(thing) is types.typing_extensions._TypedDictMeta # type: ignore + ): # pragma: no cover def _get_annotation_arg(key, annotation_type): try: diff --git a/requirements/coverage.txt b/requirements/coverage.txt index d129f6bd88..9d65451dd3 100644 --- a/requirements/coverage.txt +++ b/requirements/coverage.txt @@ -10,7 +10,7 @@ async-timeout==5.0.1 # via redis attrs==24.1.0 # via - # -r /home/runner/work/hypothesis/hypothesis/requirements/test.in + # -r requirements/test.in # hypothesis (hypothesis-python/setup.py) black==24.10.0 # via -r requirements/coverage.in @@ -18,7 +18,7 @@ click==8.1.7 # via # -r requirements/coverage.in # black -coverage[toml]==7.6.7 +coverage[toml]==7.6.8 # via pytest-cov dpcontracts==0.6.0 # via -r requirements/coverage.in @@ -51,24 +51,24 @@ pandas==2.2.3 pathspec==0.12.1 # via black pexpect==4.9.0 - # via -r /home/runner/work/hypothesis/hypothesis/requirements/test.in + # via -r requirements/test.in platformdirs==4.3.6 # via black pluggy==1.5.0 # via pytest ptyprocess==0.7.0 # via pexpect -pyarrow==18.0.0 +pyarrow==18.1.0 # via -r requirements/coverage.in pytest==8.3.3 # via - # -r /home/runner/work/hypothesis/hypothesis/requirements/test.in + # -r requirements/test.in # pytest-cov # pytest-xdist pytest-cov==6.0.0 # via -r requirements/coverage.in pytest-xdist==3.6.1 - # via -r /home/runner/work/hypothesis/hypothesis/requirements/test.in + # via -r requirements/test.in python-dateutil==2.9.0.post0 # via # -r requirements/coverage.in @@ -87,7 +87,7 @@ sortedcontainers==2.4.0 # via # fakeredis # hypothesis (hypothesis-python/setup.py) -tomli==2.1.0 +tomli==2.2.1 # via # black # coverage diff --git a/requirements/fuzzing.txt b/requirements/fuzzing.txt index ec6ac5c85d..df3c28a97d 100644 --- a/requirements/fuzzing.txt +++ b/requirements/fuzzing.txt @@ -5,17 +5,17 @@ # ./build.sh upgrade-requirements # annotated-types==0.7.0 - # via -r /home/runner/work/hypothesis/hypothesis/requirements/coverage.in + # via -r requirements/coverage.in async-timeout==5.0.1 # via redis attrs==24.1.0 # via - # -r /home/runner/work/hypothesis/hypothesis/requirements/test.in + # -r requirements/test.in # hypothesis # hypothesis (hypothesis-python/setup.py) black==24.10.0 # via - # -r /home/runner/work/hypothesis/hypothesis/requirements/coverage.in + # -r requirements/coverage.in # hypofuzz # hypothesis blinker==1.9.0 @@ -26,11 +26,11 @@ charset-normalizer==3.4.0 # via requests click==8.1.7 # via - # -r /home/runner/work/hypothesis/hypothesis/requirements/coverage.in + # -r requirements/coverage.in # black # flask # hypothesis -coverage[toml]==7.6.7 +coverage[toml]==7.6.8 # via # hypofuzz # pytest-cov @@ -43,7 +43,7 @@ dash-html-components==2.0.0 dash-table==5.0.0 # via dash dpcontracts==0.6.0 - # via -r /home/runner/work/hypothesis/hypothesis/requirements/coverage.in + # via -r requirements/coverage.in exceptiongroup==1.2.2 ; python_version < "3.11" # via # hypothesis @@ -52,12 +52,12 @@ exceptiongroup==1.2.2 ; python_version < "3.11" execnet==2.1.1 # via pytest-xdist fakeredis==2.26.1 - # via -r /home/runner/work/hypothesis/hypothesis/requirements/coverage.in + # via -r requirements/coverage.in flask==3.0.3 # via dash hypofuzz==24.9.1 # via -r requirements/fuzzing.in -hypothesis[cli]==6.119.4 +hypothesis[cli]==6.121.1 # via hypofuzz idna==3.10 # via requests @@ -70,10 +70,10 @@ itsdangerous==2.2.0 jinja2==3.1.4 # via flask lark==1.2.2 - # via -r /home/runner/work/hypothesis/hypothesis/requirements/coverage.in + # via -r requirements/coverage.in libcst==1.5.1 # via - # -r /home/runner/work/hypothesis/hypothesis/requirements/coverage.in + # -r requirements/coverage.in # hypofuzz markdown-it-py==3.0.0 # via rich @@ -89,7 +89,7 @@ nest-asyncio==1.6.0 # via dash numpy==2.1.3 # via - # -r /home/runner/work/hypothesis/hypothesis/requirements/coverage.in + # -r requirements/coverage.in # pandas packaging==24.2 # via @@ -98,12 +98,12 @@ packaging==24.2 # pytest pandas==2.2.3 # via - # -r /home/runner/work/hypothesis/hypothesis/requirements/coverage.in + # -r requirements/coverage.in # hypofuzz pathspec==0.12.1 # via black pexpect==4.9.0 - # via -r /home/runner/work/hypothesis/hypothesis/requirements/test.in + # via -r requirements/test.in platformdirs==4.3.6 # via black plotly==5.24.1 @@ -114,27 +114,27 @@ psutil==6.1.0 # via hypofuzz ptyprocess==0.7.0 # via pexpect -pyarrow==18.0.0 - # via -r /home/runner/work/hypothesis/hypothesis/requirements/coverage.in +pyarrow==18.1.0 + # via -r requirements/coverage.in pygments==2.18.0 # via rich pytest==8.3.3 # via - # -r /home/runner/work/hypothesis/hypothesis/requirements/test.in + # -r requirements/test.in # hypofuzz # pytest-cov # pytest-xdist pytest-cov==6.0.0 - # via -r /home/runner/work/hypothesis/hypothesis/requirements/coverage.in + # via -r requirements/coverage.in pytest-xdist==3.6.1 - # via -r /home/runner/work/hypothesis/hypothesis/requirements/test.in + # via -r requirements/test.in python-dateutil==2.9.0.post0 # via - # -r /home/runner/work/hypothesis/hypothesis/requirements/coverage.in + # -r requirements/coverage.in # pandas pytz==2024.2 # via - # -r /home/runner/work/hypothesis/hypothesis/requirements/coverage.in + # -r requirements/coverage.in # pandas pyyaml==6.0.2 # via libcst @@ -159,14 +159,14 @@ sortedcontainers==2.4.0 # hypothesis (hypothesis-python/setup.py) tenacity==9.0.0 # via plotly -tomli==2.1.0 +tomli==2.2.1 # via # black # coverage # pytest typing-extensions==4.12.2 # via - # -r /home/runner/work/hypothesis/hypothesis/requirements/coverage.in + # -r requirements/coverage.in # black # dash # fakeredis diff --git a/requirements/test.txt b/requirements/test.txt index f0a42bcc7f..51b5827650 100644 --- a/requirements/test.txt +++ b/requirements/test.txt @@ -32,5 +32,5 @@ pytest-xdist==3.6.1 # via -r requirements/test.in sortedcontainers==2.4.0 # via hypothesis (hypothesis-python/setup.py) -tomli==2.1.0 +tomli==2.2.1 # via pytest diff --git a/requirements/tools.txt b/requirements/tools.txt index 3503d0b012..c27db504cc 100644 --- a/requirements/tools.txt +++ b/requirements/tools.txt @@ -14,7 +14,7 @@ asttokens==2.4.1 # via stack-data attrs==24.1.0 # via - # -r /home/runner/work/hypothesis/hypothesis/requirements/test.in + # -r requirements/test.in # hypothesis (hypothesis-python/setup.py) autoflake==2.3.1 # via shed @@ -50,9 +50,9 @@ colorama==0.4.6 # via tox com2ann==0.3.0 # via shed -coverage==7.6.7 +coverage==7.6.8 # via -r requirements/tools.in -cryptography==43.0.3 +cryptography==44.0.0 # via # secretstorage # types-pyopenssl @@ -151,7 +151,7 @@ mypy-extensions==1.0.0 # via # black # mypy -nh3==0.2.18 +nh3==0.2.19 # via readme-renderer nodeenv==1.9.1 # via pyright @@ -171,11 +171,11 @@ parso==0.8.4 # via jedi pathspec==0.12.1 # via black -pelican[markdown]==4.10.1 +pelican[markdown]==4.10.2 # via -r requirements/tools.in pexpect==4.9.0 # via - # -r /home/runner/work/hypothesis/hypothesis/requirements/test.in + # -r requirements/test.in # ipython pip-tools==7.4.1 # via -r requirements/tools.in @@ -217,10 +217,10 @@ pyright==1.1.389 # via -r requirements/tools.in pytest==8.3.3 # via - # -r /home/runner/work/hypothesis/hypothesis/requirements/test.in + # -r requirements/test.in # pytest-xdist pytest-xdist==3.6.1 - # via -r /home/runner/work/hypothesis/hypothesis/requirements/test.in + # via -r requirements/test.in python-dateutil==2.9.0.post0 # via # -r requirements/tools.in @@ -252,7 +252,7 @@ rich==13.9.4 # via # pelican # twine -ruff==0.8.0 +ruff==0.8.1 # via -r requirements/tools.in secretstorage==3.3.3 # via keyring @@ -309,7 +309,7 @@ stack-data==0.6.3 # via ipython tokenize-rt==6.1.0 # via pyupgrade -tomli==2.1.0 +tomli==2.2.1 # via # autoflake # black @@ -338,7 +338,7 @@ types-pytz==2024.2.0.20241003 # via -r requirements/tools.in types-redis==4.6.0.20241004 # via -r requirements/tools.in -types-setuptools==75.5.0.20241122 +types-setuptools==75.6.0.20241126 # via types-cffi typing-extensions==4.12.2 # via @@ -357,9 +357,9 @@ urllib3==2.2.3 # via # requests # twine -virtualenv==20.27.1 +virtualenv==20.28.0 # via tox -watchfiles==0.24.0 +watchfiles==1.0.0 # via pelican wcwidth==0.2.13 # via prompt-toolkit diff --git a/tooling/src/hypothesistooling/__main__.py b/tooling/src/hypothesistooling/__main__.py index 9bc3059ae6..5bcd70d399 100644 --- a/tooling/src/hypothesistooling/__main__.py +++ b/tooling/src/hypothesistooling/__main__.py @@ -267,6 +267,7 @@ def compile_requirements(*, upgrade=False): p = p.lower().replace("_", "-") if re.fullmatch(r"[a-z-]+", p): assert p + "==" in out_pkgs, f"Package `{p}` deleted from {out_file}" + out_file.write_text(out_pkgs.replace(f"{tools.ROOT}/", "")) def update_python_versions():