Skip to content

Commit 19cc15d

Browse files
authored
Make hypothesis dependency optional (#1215) (#1216)
Signed-off-by: Leif Warland <[email protected]>
1 parent 5792fb2 commit 19cc15d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pandera/strategies/pandas_strategies.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
Any,
2121
Callable,
2222
Dict,
23+
Generic,
2324
List,
2425
Optional,
2526
Sequence,
@@ -51,8 +52,10 @@
5152
from hypothesis.strategies import SearchStrategy, composite
5253
except ImportError: # pragma: no cover
5354

55+
T = TypeVar("T")
56+
5457
# pylint: disable=too-few-public-methods
55-
class SearchStrategy: # type: ignore
58+
class SearchStrategy(Generic[T]): # type: ignore
5659
"""placeholder type."""
5760

5861
def composite(fn): # type: ignore

0 commit comments

Comments
 (0)