@@ -1937,6 +1937,11 @@ class tuple : public object {
19371937 detail::tuple_iterator end () const { return {*this , PyTuple_GET_SIZE (m_ptr)}; }
19381938};
19391939
1940+ template <typename ... Types>
1941+ class Tuple : public tuple {
1942+ using tuple::tuple;
1943+ };
1944+
19401945// We need to put this into a separate function because the Intel compiler
19411946// fails to compile enable_if_t<all_of<is_keyword_or_ds<Args>...>::value> part below
19421947// (tested with ICC 2021.1 Beta 20200827).
@@ -1984,6 +1989,11 @@ class dict : public object {
19841989 }
19851990};
19861991
1992+ template <typename K, typename V>
1993+ class Dict : public dict {
1994+ using dict::dict;
1995+ };
1996+
19871997class sequence : public object {
19881998public:
19891999 PYBIND11_OBJECT_DEFAULT (sequence, object, PySequence_Check)
@@ -2043,6 +2053,11 @@ class list : public object {
20432053 }
20442054};
20452055
2056+ template <typename T>
2057+ class List : public list {
2058+ using list::list;
2059+ };
2060+
20462061class args : public tuple {
20472062 PYBIND11_OBJECT_DEFAULT (args, tuple, PyTuple_Check)
20482063};
@@ -2080,6 +2095,11 @@ class set : public anyset {
20802095 void clear () /* py-non-const */ { PySet_Clear (m_ptr); }
20812096};
20822097
2098+ template <typename T>
2099+ class Set : public set {
2100+ using set::set;
2101+ };
2102+
20832103class frozenset : public anyset {
20842104public:
20852105 PYBIND11_OBJECT_CVT (frozenset, anyset, PyFrozenSet_Check, PyFrozenSet_New)
@@ -2098,6 +2118,14 @@ class function : public object {
20982118 bool is_cpp_function () const { return (bool ) cpp_function (); }
20992119};
21002120
2121+ template <typename Signature>
2122+ class Callable ;
2123+
2124+ template <typename Return, typename ... Args>
2125+ class Callable <Return(Args...)> : public function {
2126+ using function::function;
2127+ };
2128+
21012129class staticmethod : public object {
21022130public:
21032131 PYBIND11_OBJECT_CVT (staticmethod, object, detail::PyStaticMethod_Check, PyStaticMethod_New)
0 commit comments