Uh oh!
There was an error while loading. Please reload this page.
feat(types): add Union and Optional to typing.h - #5165
Conversation
rwgk
commented
Jun 13, 2024
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. |
InvincibleRMC
commented
Jun 13, 2024
Will do. It seems to be falling into the default |
rwgk
commented
Jun 13, 2024
Maybe you just something like this? |
The solution was to inherit from one of the types found in |
InvincibleRMC
commented
Jun 13, 2024
@rwgk the CI is now passing. |
InvincibleRMC
commented
Jun 13, 2024
With further testing on actual code this does not seem to currently work. |
InvincibleRMC
commented
Jun 13, 2024
@rwgk With some updated testing and switching to inheriting from |
Union and Optional to typing.h
rwgk
left a comment
There was a problem hiding this comment.
Looks good to me. I'll run this by other maintainers for a 2nd set of eyes.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Union and Optional to typing.hUnion and Optional to typing.hUnion and Optional to typing.hUnion and Optional to typing.hUnion and Optional to typing.hUnion and Optional to typing.h
Description
Add
UnionandOptionalfor better static typing on the python side.Suggested changelog entry: