Skip to content

Bump pyright from 1.1.407 to 1.1.410 in /betterproto2 and fix new type-checking errors#214

Open
dependabot[bot] wants to merge 3 commits into
mainfrom
dependabot/uv/betterproto2/pyright-1.1.410
Open

Bump pyright from 1.1.407 to 1.1.410 in /betterproto2 and fix new type-checking errors#214
dependabot[bot] wants to merge 3 commits into
mainfrom
dependabot/uv/betterproto2/pyright-1.1.410

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jun 2, 2026

Copy link
Copy Markdown
Contributor

Bumps pyright from 1.1.407 to 1.1.410.

Also fixes new Pyright reportOptionalIterable errors introduced by the stricter checks in 1.1.410 by adding explicit None guards before iterating repeated fields in betterproto2/src/betterproto2/__init__.py (Message._from_dict_init), with clear TypeError messages for invalid None inputs.


@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python:uv Pull requests that update python:uv code labels Jun 2, 2026
Bumps [pyright](https://github.com/RobertCraigie/pyright-python) from 1.1.407 to 1.1.410.
- [Release notes](https://github.com/RobertCraigie/pyright-python/releases)
- [Commits](RobertCraigie/pyright-python@v1.1.407...v1.1.410)

---
updated-dependencies:
- dependency-name: pyright
  dependency-version: 1.1.410
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/uv/betterproto2/pyright-1.1.410 branch from 06d79a2 to 0954bae Compare June 2, 2026 17:24
@AdrienVannson

Copy link
Copy Markdown
Contributor

@copilot Fix the new type checking error:

/home/runner/work/python-betterproto2/python-betterproto2/betterproto2/src/betterproto2/__init__.py
  /home/runner/work/python-betterproto2/python-betterproto2/betterproto2/src/betterproto2/__init__.py:1155:105 - error: Object of type "None" cannot be used as iterable value (reportOptionalIterable)
  /home/runner/work/python-betterproto2/python-betterproto2/betterproto2/src/betterproto2/__init__.py:1173:101 - error: Object of type "None" cannot be used as iterable value (reportOptionalIterable)
2 errors, 0 warnings, 0 informations

Copilot AI commented Jun 2, 2026

Copy link
Copy Markdown

@copilot Fix the new type checking error:

...

Fixed in commit 785d4b5. I added explicit None guards before iterating repeated fields in Message._from_dict_init, which resolves the new pyright reportOptionalIterable errors at lines 1155 and 1173.

Copilot AI changed the title Bump pyright from 1.1.407 to 1.1.410 in /betterproto2 Bump pyright from 1.1.407 to 1.1.410 in /betterproto2 and fix new type-checking errors Jun 2, 2026
Copilot AI requested a review from AdrienVannson June 2, 2026 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python:uv Pull requests that update python:uv code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants