Skip to content
Snippets Groups Projects
Commit 75d6fd64 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

refactor

parent 50eb9f8b
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@ import typing as tp
__all__ = ['shuffle_together']
def shuffle_together(*args: tp.Sequence) -> tp.List:
def shuffle_together(*args: tp.Sequence) -> tp.List[tp.List]:
"""
args, being sequences of equal length, will be permuted in such a way
that their indices will still correspond to each other.
......@@ -17,7 +17,7 @@ def shuffle_together(*args: tp.Sequence) -> tp.List:
Might equal
>>> c == ([3, 1, 2], ['c', 'a', 'b'])
>>> c == [[3, 1, 2], ['c', 'a', 'b']]
"""
indices = list(range(len(args[0])))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment