Skip to content

Commit 95d47c4

Browse files
committed
-
1 parent 29707f7 commit 95d47c4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source_py3/python_toolbox/combi/perming/perm_space.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -332,10 +332,10 @@ def __init__(self, iterable_or_length, n_elements=None, *, domain=None,
332332

333333
### Figuring out perm processor: ######################################
334334
# #
335-
assert issubclass(perm_type, Perm)
336335
self.is_typed = perm_type not in (None, self.default_perm_type)
337336

338337
self.perm_type = perm_type if self.is_typed else self.default_perm_type
338+
assert issubclass(self.perm_type, Perm)
339339
# #
340340
### Finished figuring out perm processor. #############################
341341

@@ -628,7 +628,7 @@ def __getitem__(self, i):
628628
n_elements=self.n_elements,
629629
fixed_map=wip_perm_sequence_dict,
630630
is_combination=self.is_combination,
631-
shit_set=shit_set
631+
shit_set=shit_set, perm_type=self.perm_type
632632
)
633633

634634
if wip_i < candidate_sub_perm_space.length:
@@ -813,7 +813,7 @@ def index(self, perm):
813813
n_elements=self.n_elements,
814814
fixed_map=temp_fixed_map,
815815
is_combination=self.is_combination,
816-
shit_set=shit_set
816+
shit_set=shit_set, perm_type=self.perm_type
817817
)
818818

819819
wip_perm_number += candidate_sub_perm_space.length
@@ -973,7 +973,7 @@ def _create_with_cut_prefix(cls, sequence, domain=None, *,
973973
perm_space = cls(
974974
sequence, n_elements=n_elements, fixed_map=fixed_map,
975975
is_combination=is_combination, slice_=slice_,
976-
perm_type=perm_type
976+
perm_type=perm_type
977977
)
978978
perm_space.prefix = tuple(prefix)
979979
return perm_space

0 commit comments

Comments
 (0)