mirror of
https://github.com/pybind/pybind11.git
synced 2025-02-28 22:02:43 +00:00
cleanup
This commit is contained in:
parent
a53bf0efc8
commit
adfed511e2
@ -1335,8 +1335,7 @@ object object_or_cast(T &&o) {
|
|||||||
template <typename D>
|
template <typename D>
|
||||||
template <typename T>
|
template <typename T>
|
||||||
str_attr_accessor object_api<D>::attr_with_type(const char *key) const {
|
str_attr_accessor object_api<D>::attr_with_type(const char *key) const {
|
||||||
static constexpr auto name = make_caster<T>::name;
|
annotations()[key] = make_caster<T>::name.text;
|
||||||
annotations()[key] = name.text;
|
|
||||||
return {derived(), key};
|
return {derived(), key};
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user