Skip to content

[mypyc] Support the i8 native integer type - #22447

Merged
JukkaL merged 1 commit into
masterfrom
mypyc-i8
Nov 12, 2026
Merged

JukkaL merged 1 commit into
masterfrom
mypyc-i8

Conversation

@JukkaL

@JukkaL JukkaL commented Nov 12, 2026

Copy link
Copy Markdown
Collaborator

i8 is a signed 8-bit integer. The implementation mostly follows i16, and there are no major differences other than the width (int8_t in C). Existing explicit conversion tests for other native int types now also cover i8.

Follow-up to #22368, which added u16.

Work on mypyc/mypyc#1226.

i8 is a signed 8-bit integer. The implementation mostly follows i16,
and there are no major differences other than the width (int8_t in C).
Existing explicit conversion tests for other native int types now also
cover i8.

Follow-up to #22368, which added u16.

Work on mypyc/mypyc#1226.
@github-actions

Copy link
Copy Markdown
Contributor

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

@JukkaL
JukkaL merged commit c3c7a23 into master Nov 12, 2026
26 checks passed
@JukkaL
JukkaL deleted the mypyc-i8 branch November 12, 2026 16:35
hnwg added a commit to hnwg/mypy that referenced this pull request Nov 13, 2026
The u16, u32, u64 and i8 stub classes (added in python#22368, python#22373, python#22384
and python#22447) also lack __abs__.
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