mirror of
https://github.com/pybind/pybind11.git
synced 2025-03-03 13:03:20 +00:00
style: pre-commit fixes
This commit is contained in:
parent
19e033c481
commit
375ea304e8
@ -1379,7 +1379,8 @@ obj_attr_accessor object_api<D>::attr_with_type_hint(handle key) const {
|
||||
object ann = annotations();
|
||||
object reinterpreted_key = reinterpret_borrow<object>(key);
|
||||
if (ann.contains(reinterpreted_key)) {
|
||||
throw std::runtime_error("__annotations__[\"" + std::string(py::str(reinterpreted_key)) + "\"] was set already.");
|
||||
throw std::runtime_error("__annotations__[\"" + std::string(py::str(reinterpreted_key))
|
||||
+ "\"] was set already.");
|
||||
}
|
||||
ann[key] = make_caster<T>::name.text;
|
||||
return {derived(), reinterpreted_key};
|
||||
|
Loading…
Reference in New Issue
Block a user