From 15829719259b2a90dad85bfccca3084a10c3caa3 Mon Sep 17 00:00:00 2001 From: Michael Carlstrom Date: Fri, 20 Dec 2024 14:22:42 -0800 Subject: [PATCH] Added comment --- include/pybind11/pytypes.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/pybind11/pytypes.h b/include/pybind11/pytypes.h index def7a122f..edcee299b 100644 --- a/include/pybind11/pytypes.h +++ b/include/pybind11/pytypes.h @@ -113,7 +113,11 @@ public: /// See above (the only difference is that the key is provided as a string literal) str_attr_accessor attr(const char *key) const; - // attr_with_type_hint is implemented in cast.h: + /** \rst + Similar to the above attr functions with the difference that the templated Type + is used to set the `__annotations__` dict value to the corresponding key. Worth nothing that + attr_with_type_hint is implemented in cast.h + \endrst */ template obj_attr_accessor attr_with_type_hint(handle key) const; template