Skip to content

Commit

Permalink
Make hypothesis dependency optional (#1215) (#1216)
Browse files Browse the repository at this point in the history
Signed-off-by: Leif Warland <leif.warland@statnett.no>
  • Loading branch information
leifwar committed Jun 7, 2023
1 parent 5792fb2 commit 19cc15d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pandera/strategies/pandas_strategies.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
Any,
Callable,
Dict,
Generic,
List,
Optional,
Sequence,
Expand Down Expand Up @@ -51,8 +52,10 @@
from hypothesis.strategies import SearchStrategy, composite
except ImportError: # pragma: no cover

T = TypeVar("T")

# pylint: disable=too-few-public-methods
class SearchStrategy: # type: ignore
class SearchStrategy(Generic[T]): # type: ignore
"""placeholder type."""

def composite(fn): # type: ignore
Expand Down

0 comments on commit 19cc15d

Please sign in to comment.