Skip to content

Conversation

@JelleZijlstra
Copy link
Member

No description provided.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

These protobuf objects generally have empty __slots__ but their fields can be assigned to. Haven't figured
out exactly how they do this but presumably they have some separate storage area.

Adding __slots__ causes false positives, so let's drop these slots.
@github-actions

This comment has been minimized.

@github-actions
Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@JelleZijlstra JelleZijlstra merged commit ca44e4c into python:main Aug 21, 2025
53 checks passed
Avasam added a commit that referenced this pull request Nov 2, 2025
- New https://docs.astral.sh/ruff/settings/#lint_future-annotations setting for our scripts
- `FURB`: I blindly added out of preview rules. We need to validate if there's any we don't want.
- `PYI`: Added rules that didn't have autofixes before and which we don't already noqa anywhere.
- `SIM117`'s autofix is out of preview, but as per #13309 we weren't sure whether we wanted to apply it all the time.
- `SIM905`: New rule, I think we'd always want it.
- `PLC0205`: I moved that one to stubs-only ignore (was added in #14619 by @JelleZijlstra ).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants