Skip to content

Conversation

ilevkivskyi
Copy link
Member

While trying this I found that this is a bit fragile, in the sense that write_tag(data, 1) (with a literal 1) will not get specialized and will go through slow path (btw @JukkaL is this a bug, should type of a literal in fixed int type context be inferred as fixed int?) OTOH this is probably not a big deal since no-one will use write_tag() with literals, it will always be something like write_tag(data, FUNC_DEF).

Copy link
Contributor

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

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.

1 participant