Python: Update websockets requirement from <16,>=13 to >=13,<17 in /python - #14392
Python: Update websockets requirement from <16,>=13 to >=13,<17 in /python#14392dependabot[bot] wants to merge 1 commit into
Conversation
Updates the requirements on [websockets](https://github.com/python-websockets/websockets) to permit the latest version. - [Release notes](https://github.com/python-websockets/websockets/releases) - [Commits](python-websockets/websockets@13.0...16.1.1) --- updated-dependencies: - dependency-name: websockets dependency-version: 16.1.1 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
There was a problem hiding this comment.
🟡 Changes recommended
The committed python/uv.lock is now out of sync with the updated websockets specifier in pyproject.toml, which can break uv sync --frozen workflows.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
This PR updates the Python package dependency constraints to allow newer websockets releases (up to, but not including, v17), aligning the Python SDK’s declared compatibility with the latest upstream versions.
Changes:
- Bumped
websocketsupper bound from<16to<17in the main dependency list. - Bumped
websocketsupper bound from<16to<17in therealtimeoptional dependency group.
File summaries
| File | Description |
|---|---|
python/pyproject.toml |
Expands the allowed websockets version range to include v16.x for base and realtime dependencies. |
Review details
Suppressed comments (1)
python/pyproject.toml:55
- The base
dependencieslist contains duplicate entries forwebsockets/aiortc(also listed earlier at lines 43–44). This is redundant and makes dependency maintenance harder; keeping a single occurrence is sufficient.
"scipy>=1.15.1",
"websockets >= 13, < 17",
"aiortc>=1.9.0",
- Files reviewed: 1/1 changed files
- Comments generated: 1
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| # openapi and swagger | ||
| "openapi_core >= 0.18,<0.20", | ||
| "websockets >= 13, < 16", | ||
| "websockets >= 13, < 17", |
There was a problem hiding this comment.
MAF Automated Review — Iteration 1
Result: No findings
Scope: full PR (1 commit(s)): f2b6df5b90ba
Model: gpt-5.6-sol-fast
Overview
The PR consistently widens all three direct websockets constraints to admit 16.x while retaining a <17 major-version boundary. Version 16.1.1 preserves the imported websockets.asyncio.client.connect API, including additional_headers, and its Python 3.10 minimum matches the package contract; upgrade CI also resolves dependencies before exercising the Python 3.10-3.13 test matrix. No Critical, High, or Medium regression was established.
Reviewed the supplied pull-request change set across correctness, security/reliability, architecture, and failure behavior.
No publishable findings remained after source verification for this scope.
Updates the requirements on websockets to permit the latest version.
Release notes
Sourced from websockets's releases.
Commits
01df1e4Revert "Decode non-ASCII header values with iso-8859-1."2d61f74Clarify restriction on headers in 16.1.4df6f90Release version 16.1.7c69ecaIncrease timeout for building wheels.493864eComplete and review changelog.73ff538Temporarily remove the trio implementation (again).77f7d71Shorten changelog and docstring for previous commit.84859e1Add text argument to broadcast() to force the frame type1a38f5aDocument research on removing a workaround.99431eeApply code style to docs/conf.py.Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)