Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Delay transforming priority_order into ndarray (capitalone#1045)
In the changed code, we had a mypy error because numpy ndarrays are not compatible with random.Random.shuffle() (expected argument type is MutableSequence[Any]) We fix this by first instantiating priority_order as a list, then shuffling it, then creating an ndarray from it afterwards.
- Loading branch information