Skip to content

Commit 9e59f63

Browse files
style: pre-commit fixes
1 parent 5a92e40 commit 9e59f63

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

include/pybind11/detail/type_caster_base.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ struct cast_sources {
568568
// this does not provide enough information to use a foreign type or
569569
// to render a useful error message
570570
cast_sources(const void *obj, const detail::type_info *tinfo)
571-
: original{obj, tinfo ? tinfo->cpptype : nullptr}, result{obj, tinfo} {}
571+
: original{obj, tinfo ? tinfo->cpptype : nullptr}, result{obj, tinfo} {}
572572

573573
// The object passed to cast(), with its static type.
574574
// original.type must not be null if resolve() will be called.
@@ -1009,7 +1009,7 @@ class type_caster_generic {
10091009
// No pybind11 type info. Raise an exception.
10101010
std::string tname = srcs.downcast.cpptype ? srcs.downcast.cpptype->name()
10111011
: srcs.original.cpptype ? srcs.original.cpptype->name()
1012-
: "<unspecified>";
1012+
: "<unspecified>";
10131013
detail::clean_type_id(tname);
10141014
std::string msg = "Unregistered type : " + tname;
10151015
set_error(PyExc_TypeError, msg.c_str());

0 commit comments

Comments
 (0)