diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 0c403104ba9..fac12e52659 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -292,8 +292,9 @@ jobs: - name: Install self run: python -m pip install -e . - name: Run benchmarks - uses: CodSpeedHQ/action@v3 + uses: CodSpeedHQ/action@v4 with: + mode: instrumentation token: ${{ secrets.CODSPEED_TOKEN }} run: python -Im pytest --no-cov --numprocesses=0 -vvvvv --codspeed diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c0a59104b35..0a2dee04b65 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -64,7 +64,7 @@ repos: hooks: - id: isort - repo: https://github.com/psf/black - rev: '25.1.0' + rev: '25.9.0' hooks: - id: black language_version: python3 # Should be a command that runs python diff --git a/aiohttp/client_reqrep.py b/aiohttp/client_reqrep.py index e4d20f136cc..56131263a68 100644 --- a/aiohttp/client_reqrep.py +++ b/aiohttp/client_reqrep.py @@ -59,6 +59,7 @@ netrc_from_env, parse_mimetype, reify, + sentinel, set_exception, set_result, ) @@ -137,14 +138,14 @@ def __new__( url: URL, method: str, headers: "CIMultiDictProxy[str]", - real_url: URL = _SENTINEL, # type: ignore[assignment] + real_url: Union[URL, _SENTINEL] = sentinel, ) -> "RequestInfo": """Create a new RequestInfo instance. For backwards compatibility, the real_url parameter is optional. """ return tuple.__new__( - cls, (url, method, headers, url if real_url is _SENTINEL else real_url) + cls, (url, method, headers, url if real_url is sentinel else real_url) ) diff --git a/requirements/constraints.txt b/requirements/constraints.txt index 5c1f65a60d5..66a9451e632 100644 --- a/requirements/constraints.txt +++ b/requirements/constraints.txt @@ -56,7 +56,7 @@ coverage==7.10.7 # via # -r requirements/test-common.in # pytest-cov -cryptography==46.0.1 +cryptography==46.0.2 # via # pyjwt # trustme @@ -116,7 +116,7 @@ multidict==6.6.4 # -r requirements/multidict.in # -r requirements/runtime-deps.in # yarl -mypy==1.17.1 ; implementation_name == "cpython" +mypy==1.18.2 ; implementation_name == "cpython" # via # -r requirements/lint.in # -r requirements/test-common.in @@ -275,7 +275,7 @@ typing-extensions==4.15.0 # python-on-whales # typing-inspection # virtualenv -typing-inspection==0.4.1 +typing-inspection==0.4.2 # via pydantic uritemplate==4.2.0 # via gidgethub diff --git a/requirements/dev.txt b/requirements/dev.txt index 0afb6f4f5d1..67ee1808222 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -56,7 +56,7 @@ coverage==7.10.7 # via # -r requirements/test-common.in # pytest-cov -cryptography==46.0.1 +cryptography==46.0.2 # via # pyjwt # trustme @@ -113,7 +113,7 @@ multidict==6.6.4 # via # -r requirements/runtime-deps.in # yarl -mypy==1.17.1 ; implementation_name == "cpython" +mypy==1.18.2 ; implementation_name == "cpython" # via # -r requirements/lint.in # -r requirements/test-common.in @@ -266,7 +266,7 @@ typing-extensions==4.15.0 # python-on-whales # typing-inspection # virtualenv -typing-inspection==0.4.1 +typing-inspection==0.4.2 # via pydantic uritemplate==4.2.0 # via gidgethub diff --git a/requirements/lint.txt b/requirements/lint.txt index 001b7034016..4e880e37c80 100644 --- a/requirements/lint.txt +++ b/requirements/lint.txt @@ -21,7 +21,7 @@ cfgv==3.4.0 # via pre-commit click==8.1.8 # via slotscheck -cryptography==46.0.1 +cryptography==46.0.2 # via trustme distlib==0.4.0 # via virtualenv @@ -45,7 +45,7 @@ markdown-it-py==3.0.0 # via rich mdurl==0.1.2 # via markdown-it-py -mypy==1.17.1 ; implementation_name == "cpython" +mypy==1.18.2 ; implementation_name == "cpython" # via -r requirements/lint.in mypy-extensions==1.1.0 # via mypy @@ -113,7 +113,7 @@ typing-extensions==4.15.0 # python-on-whales # typing-inspection # virtualenv -typing-inspection==0.4.1 +typing-inspection==0.4.2 # via pydantic uvloop==0.21.0 ; platform_system != "Windows" # via -r requirements/lint.in diff --git a/requirements/test-common.txt b/requirements/test-common.txt index ab5712196ec..5167e2be230 100644 --- a/requirements/test-common.txt +++ b/requirements/test-common.txt @@ -18,7 +18,7 @@ coverage==7.10.7 # via # -r requirements/test-common.in # pytest-cov -cryptography==46.0.1 +cryptography==46.0.2 # via trustme exceptiongroup==1.3.0 # via pytest @@ -38,7 +38,7 @@ markdown-it-py==4.0.0 # via rich mdurl==0.1.2 # via markdown-it-py -mypy==1.18.1 ; implementation_name == "cpython" +mypy==1.18.2 ; implementation_name == "cpython" # via -r requirements/test-common.in mypy-extensions==1.1.0 # via mypy @@ -105,7 +105,7 @@ typing-extensions==4.15.0 # pydantic-core # python-on-whales # typing-inspection -typing-inspection==0.4.1 +typing-inspection==0.4.2 # via pydantic wait-for-it==2.3.0 # via -r requirements/test-common.in diff --git a/requirements/test-ft.txt b/requirements/test-ft.txt index bbc92407280..314c2ac446d 100644 --- a/requirements/test-ft.txt +++ b/requirements/test-ft.txt @@ -29,7 +29,7 @@ coverage==7.10.7 # via # -r requirements/test-common.in # pytest-cov -cryptography==46.0.1 +cryptography==46.0.2 # via trustme exceptiongroup==1.3.0 # via pytest @@ -61,7 +61,7 @@ multidict==6.6.4 # via # -r requirements/runtime-deps.in # yarl -mypy==1.18.1 ; implementation_name == "cpython" +mypy==1.18.2 ; implementation_name == "cpython" # via -r requirements/test-common.in mypy-extensions==1.1.0 # via mypy @@ -138,7 +138,7 @@ typing-extensions==4.15.0 # pydantic-core # python-on-whales # typing-inspection -typing-inspection==0.4.1 +typing-inspection==0.4.2 # via pydantic wait-for-it==2.3.0 # via -r requirements/test-common.in diff --git a/requirements/test.txt b/requirements/test.txt index 1b077a2e8ab..b65bd794809 100644 --- a/requirements/test.txt +++ b/requirements/test.txt @@ -29,7 +29,7 @@ coverage==7.10.7 # via # -r requirements/test-common.in # pytest-cov -cryptography==46.0.1 +cryptography==46.0.2 # via trustme exceptiongroup==1.3.0 # via pytest @@ -61,7 +61,7 @@ multidict==6.6.4 # via # -r requirements/runtime-deps.in # yarl -mypy==1.17.1 ; implementation_name == "cpython" +mypy==1.18.2 ; implementation_name == "cpython" # via -r requirements/test-common.in mypy-extensions==1.1.0 # via mypy @@ -138,7 +138,7 @@ typing-extensions==4.15.0 # pydantic-core # python-on-whales # typing-inspection -typing-inspection==0.4.1 +typing-inspection==0.4.2 # via pydantic uvloop==0.21.0 ; platform_system != "Windows" and implementation_name == "cpython" # via -r requirements/base.in diff --git a/setup.cfg b/setup.cfg index 7f783324897..07a6a2d0c93 100644 --- a/setup.cfg +++ b/setup.cfg @@ -38,6 +38,7 @@ classifiers = Programming Language :: Python :: 3.11 Programming Language :: Python :: 3.12 Programming Language :: Python :: 3.13 + Programming Language :: Python :: 3.14 Topic :: Internet :: WWW/HTTP