Skip to content

Conversation

@FrancescAlted
Copy link
Member

This PR enhances the dtype inference so that it mimics now more NumPy than the numexpr one. Although perfect adherence to NumPy casting conventions is not there yet, it is a big step forward towards better compatibility with NumPy. In particular, support for e.g. 'a + np.int8(1)' string expressions allows to serialize them, while keeping NumPy type inference when expression is re-opened from disk.

Most of the np.int, np.float, np.str and np.bytes casting funcs for constants are supported.

@FrancescAlted FrancescAlted changed the title Type inference closer to NumPy Type inference that is closer to NumPy Nov 11, 2024
@FrancescAlted FrancescAlted merged commit f17e3be into main Nov 11, 2024
@FrancescAlted FrancescAlted deleted the type-inference branch November 11, 2024 16:27
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