Skip to content

Commit

Permalink
Copy attr comment for const char * overload, for consistency.
Browse files Browse the repository at this point in the history
  • Loading branch information
rwgk committed Dec 21, 2024
1 parent 8f87e21 commit e6b1370
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/pybind11/pytypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ class object_api : public pyobject_tag {
\endrst */
template <typename T>
obj_attr_accessor attr_with_type_hint(handle key) const;
/// See above (the only difference is that the key is provided as a string literal)
template <typename T>
str_attr_accessor attr_with_type_hint(const char *key) const;

Expand Down

0 comments on commit e6b1370

Please sign in to comment.