Skip to content

Commit

Permalink
only import numpy locally
Browse files Browse the repository at this point in the history
  • Loading branch information
maxbachmann authored Sep 7, 2023
1 parent 762624b commit cc3cc7e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_hypothesis.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from string import ascii_letters, digits, punctuation

import hypothesis.strategies as st
import numpy as np
import pytest
from hypothesis import assume, given, settings

Expand Down Expand Up @@ -164,6 +163,7 @@ def partial_ratio_short_needle(s1, s2):


def cdist_scorer(queries, choices, scorer):
import numpy as np
matrix = np.zeros((len(queries), len(choices)), dtype=np.uint8)

for i, query in enumerate(queries):
Expand All @@ -174,6 +174,7 @@ def cdist_scorer(queries, choices, scorer):


def cdist_distance(queries, choices, scorer):
import numpy as np
matrix = np.zeros((len(queries), len(choices)), dtype=np.int32)

for i, query in enumerate(queries):
Expand Down

0 comments on commit cc3cc7e

Please sign in to comment.