Skip to content

Commit

Permalink
MAINT: fix mypy in qmc. (#14811)
Browse files Browse the repository at this point in the history
[skip azp]
  • Loading branch information
tupui committed Oct 5, 2021
1 parent 5938242 commit 0785d6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scipy/stats/_qmc.py
Expand Up @@ -526,7 +526,7 @@ def n_primes(n: IntNumber) -> List[int]:
if len(primes) < n:
big_number = 2000
while 'Not enough primes':
primes = primes_from_2_to(big_number)[:n] # type: ignore[misc]
primes = primes_from_2_to(big_number)[:n] # type: ignore
if len(primes) == n:
break
big_number += 1000
Expand Down Expand Up @@ -1151,7 +1151,7 @@ def _random_oa_lhs(self, n: IntNumber = 4) -> np.ndarray:

oa_lhs_sample /= p

return oa_lhs_sample[:, :self.d] # type: ignore[misc]
return oa_lhs_sample[:, :self.d] # type: ignore

def _random_cd(self, best_sample: np.ndarray) -> np.ndarray:
"""Optimal LHS on CD.
Expand Down

0 comments on commit 0785d6f

Please sign in to comment.