Open luk-f-a opened 4 years ago
Thanks for proposing this @luk-f-a, ping @sklam @pearu this might be of interest to you?
Oh, row polymorphism for structured dtype
You can get the effect via the existing type conversion system. You can define that two types are compatible by overriding type-conversion methods on the type class.
Conversion kinds are listed in:
thanks @sklam, I didn't know about this mechanism. I will look into it.
@luk-f-a can this be closed since #5560 was merged?
Hi,
In many cases it would be useful to treat some type as a subtype of another one. In the gist below, I describe a proposal to get this working in Numba
https://gist.github.com/luk-f-a/9063ee1eea50166141a21ee852fb4812
I'm opening this issue for discussion. I am able to take care of the PR once an initial agreement is reached.
cc: @stuartarchibald