Allow passing None
instead of np.array
#305
Replies: 1 comment
-
Nevermind, I figured it out. As mentioned in https://nanobind.readthedocs.io/en/latest/porting.html#none-null-arguments
I am using type casters, so it did not work. |
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
-
I want to be able to pass
None
totrns_color
.I have read: https://nanobind.readthedocs.io/en/latest/porting.html and I have changed to
"trns_color"_a.none()
. I have also tried"trns_color"_a = nb::none()
However:
I have also tried to change the lambda function into a separate function, but still does not work.
Full code: https://github.com/laggykiller/apngasm-python/tree/3d-array
Beta Was this translation helpful? Give feedback.
All reactions