Fix poetry.lock sync and update dependencies for chrome-devtools-protocol 0.4.0 #22
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The
poetry.lockwas locked tochrome-devtools-protocol==0.3.0whilepyproject.tomlspecified^0.4.0, causingKeyErrorexceptions (e.g.,KeyError: 'Page.documentOpened') when using the published PyPI package.Changes
Dependency Updates
poetry.lockwithchrome-devtools-protocol==0.4.0trio: 0.13.0 → 0.22.0mypy: 0.770 → 1.4.1pytest: 5.4.1 → 7.4.4pytest-trio: 0.5.2 → 0.8.0dev-dependenciestogroup.dev.dependenciesGenerator Fixes
Enhanced
generator/generate.pyto handle new type annotations fromchrome-devtools-protocol==0.4.0:Optional,Dict,Generatorannotation typeshasattr()checks for_nameattribute accessGenerated Code
Regenerated all
trio_cdp/generated/*modules with updated CDP 0.4.0 definitions, addingapplication_cache.pyand removing obsolete modules (event_breakpoints.py,media.py,performance_timeline.py).Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.
Note
Aligns the project with
chrome-devtools-protocol0.4.0 and resolves lockfile mismatch causing runtime KeyErrors.poetry.lock; bumpedtrio,pytest,pytest-trio,mypy; migrated to[tool.poetry.group.dev.dependencies]typing.Optional,Dict,Generator; addedhasattrguards for_name; improved union/optional formattingtrio_cdp/generated/*for CDP 0.4.0 — addedapplication_cache, removed deprecated domains, and updated numerous function parameters/return typesWritten by Cursor Bugbot for commit 9719229. Configure here.