From 6e5df0f99b834007ac67ad0ca056ac8f6262c528 Mon Sep 17 00:00:00 2001 From: Michael Carlstrom Date: Sun, 30 Jun 2024 11:01:10 -0400 Subject: [PATCH] remove empty tuple[()] --- include/pybind11/cast.h | 7 ------- 1 file changed, 7 deletions(-) diff --git a/include/pybind11/cast.h b/include/pybind11/cast.h index e41ad2abf..624b8ebac 100644 --- a/include/pybind11/cast.h +++ b/include/pybind11/cast.h @@ -740,13 +740,6 @@ class type_caster> : public tuple_caster {} template class type_caster> : public tuple_caster {}; -template <> -class type_caster> : public tuple_caster { -public: - // PEP 484 specifies this syntax for an empty tuple - static constexpr auto name = const_name("tuple[()]"); -}; - /// Helper class which abstracts away certain actions. Users can provide specializations for /// custom holders, but it's only necessary if the type has a non-standard interface. template