mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-24 22:25:10 +00:00
Update include/pybind11/pytypes.h
Co-authored-by: Aaron Gokaslan <skylion.aaron@gmail.com>
This commit is contained in:
parent
a3a7b39f5c
commit
58d4aaeedc
@ -491,7 +491,7 @@ bool isinstance(handle obj) {
|
||||
template <typename T, detail::enable_if_t<!std::is_base_of<object, T>::value, int> = 0>
|
||||
bool isinstance(handle obj) {
|
||||
static_assert(detail::is_generic_type<T>::value,
|
||||
"isisntance<T>() requires specialization for this type");
|
||||
"isinstance<T>() requires specialization for this type");
|
||||
return detail::isinstance_generic(obj, typeid(T));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user