Specify default type bound for returned values of a bound generic type #1064
Unanswered
bethebunny
asked this question in
Q&A
Replies: 1 comment
-
This is not supported by nanobind. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a bound generic type, eg.
I'd like for cases that return a
Value
instance that don't statically know their type to annotate the return asValue[Type]
. This is then no longer considered a "raw generic" by typecheckers.With a type caster I could configure this via the
Name
, but since type casters are generated for bound classes, how can I configure this?Beta Was this translation helpful? Give feedback.
All reactions