mirror of
https://github.com/pybind/pybind11.git
synced 2025-02-28 22:02:43 +00:00
style: pre-commit fixes
This commit is contained in:
parent
e5235f00f7
commit
639b192658
@ -2571,8 +2571,7 @@ template <typename D>
|
|||||||
object object_api<D>::annotations() const {
|
object object_api<D>::annotations() const {
|
||||||
if (isinstance<type>(derived())) {
|
if (isinstance<type>(derived())) {
|
||||||
return getattr(getattr(derived(), "__dict__"), "__annotations__", dict());
|
return getattr(getattr(derived(), "__dict__"), "__annotations__", dict());
|
||||||
}
|
} else {
|
||||||
else{
|
|
||||||
return getattr(derived(), "__annotations__", dict());
|
return getattr(derived(), "__annotations__", dict());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user