Skip to content

Commit

Permalink
Added comment
Browse files Browse the repository at this point in the history
  • Loading branch information
InvincibleRMC committed Dec 20, 2024
1 parent 08d4774 commit 1582971
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion include/pybind11/pytypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,11 @@ class object_api : public pyobject_tag {
/// 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 <typename T>
obj_attr_accessor attr_with_type_hint(handle key) const;
template <typename T>
Expand Down

0 comments on commit 1582971

Please sign in to comment.