Added comment

This commit is contained in:
Michael Carlstrom 2024-12-20 14:22:42 -08:00
parent 08d477417b
commit 1582971925

View File

@ -113,7 +113,11 @@ public:
/// See above (the only difference is that the key is provided as a string literal) /// See above (the only difference is that the key is provided as a string literal)
str_attr_accessor attr(const char *key) const; 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 <typename T> template <typename T>
obj_attr_accessor attr_with_type_hint(handle key) const; obj_attr_accessor attr_with_type_hint(handle key) const;
template <typename T> template <typename T>