Skip to content

Commit da13956

Browse files
committed
-
1 parent 3bba42a commit da13956

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

source_py3/python_toolbox/combi/perming/_variation_adding_mixin.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99

1010
class _VariationAddingMixin:
11-
11+
'''Mixin for `PermSpace` to add variations to a perm space.'''
1212
def get_rapplied(self, sequence):
1313
'''Get a version of this `PermSpace` that has a range of `sequence`.'''
1414
assert not self.is_rapplied
@@ -46,6 +46,7 @@ def get_partialled(self, n_elements):
4646

4747
@caching.CachedProperty
4848
def combinationed(self):
49+
'''Get a combination version of this perm space.'''
4950
from .comb import Comb
5051
if self.is_sliced:
5152
raise TypeError(
@@ -104,7 +105,7 @@ def get_fixed(self, fixed_map):
104105
)
105106

106107
def get_degreed(self, degrees):
107-
'''Get a degreed version of this `PermSpace`.'''
108+
'''Get a version of this `PermSpace` restricted to certain degrees.'''
108109
if self.is_sliced:
109110
raise TypeError("Can't be used on sliced perm spaces. Try "
110111
"`perm_space.unsliced.get_degreed(...)`.")
@@ -121,7 +122,6 @@ def get_degreed(self, degrees):
121122
is_combination=self.is_combination, perm_type=self.perm_type
122123
)
123124

124-
125125
# There's no `get_sliced` because slicing is done using Python's normal
126126
# slice notation, e.g. perm_space[4:-7].
127127

source_py3/python_toolbox/combi/perming/_variation_removing_mixin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111

1212
class _VariationRemovingMixin:
13-
13+
'''Mixin for `PermSpace` to add variations to a perm space.'''
1414
purified = caching.CachedProperty(
1515
lambda self: PermSpace(len(self.sequence)),
1616
doc='''An purified version of this `PermSpace`.'''

0 commit comments

Comments
 (0)