Skip to content

Commit 1bff29b

Browse files
action: fix doc issue
1 parent 25e9cc7 commit 1bff29b

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

libsemigroups_pybind11/action.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,9 @@ def __init__(
212212
if _to_cxx(self) is not None:
213213
return
214214
if len(args) != 0:
215-
raise ValueError(f"expected 0 positional arguments, but found {len(args)}")
215+
raise ValueError(
216+
f"expected 0 positional arguments, but found {len(args)}"
217+
)
216218
if not isinstance(generators, list):
217219
raise TypeError(
218220
"expected the keyword argument 'generators' to be "
@@ -275,7 +277,11 @@ def generators(self: _Self) -> Iterator[Element]:
275277

276278
_copy_cxx_mem_fns(_RightActionPPerm1PPerm1, Action)
277279

278-
for _type in Action._py_template_params_to_cxx_type.values(): # pylint: disable=protected-access
280+
for (
281+
_type
282+
) in (
283+
Action._py_template_params_to_cxx_type.values()
284+
): # pylint: disable=protected-access
279285
_register_cxx_wrapped_type(_type, Action)
280286

281287
########################################################################
@@ -309,7 +315,7 @@ def __init__(self: _Self, *args, generators=None, seeds=None) -> None:
309315
:raises ValueError:
310316
if *generators* or *seeds* has length ``0``.
311317
:raises KeyError:
312-
if the action defined by the arguments is not defined.
318+
if the action given by the arguments is not yet implemented.
313319
"""
314320
super().__init__(
315321
*args,
@@ -351,7 +357,7 @@ def __init__(self: _Self, *args, generators=None, seeds=None) -> None:
351357
:raises ValueError:
352358
if *generators* or *seeds* has length ``0``.
353359
:raises KeyError:
354-
if the action defined by the arguments is not defined.
360+
if the action given by the arguments is not yet implemented.
355361
"""
356362
super().__init__(
357363
generators=generators,

0 commit comments

Comments
 (0)