robotpy / robotpy-build

(mostly) automated C++ wrapping for Python
BSD 3-Clause "New" or "Revised" License
35 stars 16 forks source link

Provide mechanism to disable conversion to None #200

Closed virtuald closed 1 year ago

virtuald commented 1 year ago

Reference: https://github.com/robotpy/robotpy-commands-v2/issues/23

I do wonder if we should disable conversions to None by default for certain types -- in particular std::function. It wouldn't work in every case, but most of the time a passed in std::function is expected to be valid.

auscompgeek commented 1 year ago

I presume you mean conversion from None?

virtuald commented 1 year ago

words are hard