mirror of
https://github.com/pybind/pybind11.git
synced 2025-03-03 21:13:20 +00:00
Added comment
This commit is contained in:
parent
08d477417b
commit
1582971925
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user