From 794d97e54e22bebb4657f47a52affa5ed76da469 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Thu, 19 Oct 2023 15:45:57 -0700 Subject: [PATCH] Revert "Add `struct handle_type_name<...>` specializations for `object`, `list`, etc." This reverts commit 76b4a34aff6e7fd1ae2728588c5fd5914f7320d0. --- include/pybind11/cast.h | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/include/pybind11/cast.h b/include/pybind11/cast.h index 77eb61995..3c9b7c927 100644 --- a/include/pybind11/cast.h +++ b/include/pybind11/cast.h @@ -874,38 +874,6 @@ struct handle_type_name { static constexpr auto name = const_name(); }; template <> -struct handle_type_name { - static constexpr auto name = const_name("object"); -}; -template <> -struct handle_type_name { - static constexpr auto name = const_name("list"); -}; -template <> -struct handle_type_name { - static constexpr auto name = const_name("dict"); -}; -template <> -struct handle_type_name { - static constexpr auto name = const_name("set"); -}; -template <> -struct handle_type_name { - static constexpr auto name = const_name("frozenset"); -}; -template <> -struct handle_type_name { - static constexpr auto name = const_name("anyset"); -}; -template <> -struct handle_type_name { - static constexpr auto name = const_name("str"); -}; -template <> -struct handle_type_name { - static constexpr auto name = const_name("tuple"); -}; -template <> struct handle_type_name { static constexpr auto name = const_name("bool"); };