Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
InvincibleRMC committed Dec 6, 2024
1 parent a53bf0e commit adfed51
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions include/pybind11/cast.h
Original file line number Diff line number Diff line change
Expand Up @@ -1335,8 +1335,7 @@ object object_or_cast(T &&o) {
template <typename D>
template <typename T>
str_attr_accessor object_api<D>::attr_with_type(const char *key) const {
static constexpr auto name = make_caster<T>::name;
annotations()[key] = name.text;
annotations()[key] = make_caster<T>::name.text;
return {derived(), key};
}
#endif
Expand Down

0 comments on commit adfed51

Please sign in to comment.