Skip to content

[mypyc] Add __contains__ method to vec#21138

Merged
JukkaL merged 4 commits intomasterfrom
mypyc-vec-contains
Apr 1, 2026
Merged

[mypyc] Add __contains__ method to vec#21138
JukkaL merged 4 commits intomasterfrom
mypyc-vec-contains

Conversation

@JukkaL
Copy link
Copy Markdown
Collaborator

@JukkaL JukkaL commented Apr 1, 2026

This is used in interpreted/non-native code only, where it will speed up
'in' operations significantly. This is also added for consistency
with built-in sequence types.

I used coding agents assist but did changes in small increments and
reviewed each change manually.

JukkaL added 4 commits April 1, 2026 14:30
This is used in interpreted code only, where it will speed up
'in' operations significantly. This is also added for consistency
with built-in sequence types.
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 1, 2026

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@JukkaL JukkaL merged commit c5af8af into master Apr 1, 2026
24 checks passed
@JukkaL JukkaL deleted the mypyc-vec-contains branch April 1, 2026 15:03
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