Does nanobind have annotations to mark methods as deprecated? #949
-
Does nanobind have annotations to mark methods as deprecated? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
No such capability exists at the moment. |
Beta Was this translation helpful? Give feedback.
-
One possible workaround could be to manually raise a Maybe something like this: PyErr_WarnEx(PyExc_DeprecationWarning, "your deprecation message", 1); |
Beta Was this translation helpful? Give feedback.
-
I think, a kind of deprecation annotation would be indeed an intuitive solution. But on the other hand, imagine that a particular function argument is to be deprecated. Things start to get complicated in such a case. |
Beta Was this translation helpful? Give feedback.
No such capability exists at the moment.