File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed
libsemigroups_pybind11/detail Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -155,26 +155,6 @@ def __eq__(self: Self, that) -> bool:
155
155
)
156
156
raise NameError ("_cxx_obj has not been defined" )
157
157
158
- # TODO rm
159
- def _cxx_obj_type_from (self : Self , samples = (), types = ()) -> Any :
160
- py_types = tuple ([type (x ) for x in samples ] + list (types ))
161
- lookup = self ._py_template_params_to_cxx_type
162
- if py_types not in lookup :
163
- raise ValueError (
164
- f"unexpected keyword argument combination { py_types } , "
165
- f"expected one of { tuple (lookup .keys ())} "
166
- )
167
- if not isinstance (lookup [py_types ], dict ):
168
- return lookup [py_types ]
169
- lookup = lookup [py_types ]
170
- cxx_types = tuple ([type (to_cxx (x )) for x in samples ] + list (types ))
171
- if cxx_types not in lookup :
172
- raise ValueError (
173
- f"unexpected keyword argument combination { cxx_types } , "
174
- f"expected one of { lookup .keys ()} "
175
- )
176
- return lookup [cxx_types ]
177
-
178
158
def py_template_params_from_cxx_obj (self : Self ) -> tuple :
179
159
"""
180
160
Get the py_template_params from _cxx_obj. Requires
You can’t perform that action at this time.
0 commit comments