Update include/pybind11/pytypes.h

Co-authored-by: Aaron Gokaslan <skylion.aaron@gmail.com>
This commit is contained in:
Eric Cousineau 2022-04-11 14:15:11 -04:00 committed by GitHub
parent a3a7b39f5c
commit 58d4aaeedc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -491,7 +491,7 @@ bool isinstance(handle obj) {
template <typename T, detail::enable_if_t<!std::is_base_of<object, T>::value, int> = 0> template <typename T, detail::enable_if_t<!std::is_base_of<object, T>::value, int> = 0>
bool isinstance(handle obj) { bool isinstance(handle obj) {
static_assert(detail::is_generic_type<T>::value, 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)); return detail::isinstance_generic(obj, typeid(T));
} }