Closed InvincibleRMC closed 2 weeks ago
Looks useful.
I just converted this to a Draft PR.
Could you please work on the GitHub Actions failures? Then click Ready for review and maybe tag me.
Will do. It seems to be falling into the default handle_type_name
rather than the special case describe in typing.h
but, will keep investigating.
Maybe you just something like this?
The solution was to inherit from one of the types found in cast.h
900-1035. I wasn't super sure on the best type to inherit from but, from what I could tell type::type
made some sense. If there is some better type to inherit from let me know.
@rwgk the CI is now passing.
With further testing on actual code this does not seem to currently work.
@rwgk With some updated testing and switching to inheriting from py::object
it seems to be all working.
Description
Add
Union
andOptional
for better static typing on the python side.Suggested changelog entry: