Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
dobraczka committed Jul 21, 2022
1 parent 221ca8a commit 54c9832
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion strawman/dummy_pandas.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
import pandas as pd

from .utils import (
_init_rng,
_coherence_check_non_negative,
_init_rng,
random_string_generator,
sequence_choice,
shuffle,
Expand Down
7 changes: 5 additions & 2 deletions strawman/utils.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import logging
import string
from typing import List, Optional, Sequence, Union
import logging

import numpy as np

logger = logging.getLogger(__name__)


def _init_rng(seed: int = None):
if seed is None:
seed = np.random.default_rng().integers(0, 10000)
Expand Down Expand Up @@ -54,7 +55,9 @@ def shuffle(
return [mylist[i] for i in rng.permutation(len(mylist))]


def shuffled_overlong(mylist: List, length: int, rng: np.random.Generator = None) -> List:
def shuffled_overlong(
mylist: List, length: int, rng: np.random.Generator = None
) -> List:
"""Return a shuffled list which can be longer or shorter (containing the same elements).
:param mylist: The list from which to choose elements
Expand Down

0 comments on commit 54c9832

Please sign in to comment.