File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 7777
7878
7979def onlyIfHasHypothesis (has_hypothesis ):
80- """Conditionally enable a class based on the availability of the hypothesis library.
81-
80+ """
81+ Conditionally enable a class based on the availability of the hypothesis library.
8282 If the provided flag is False, returns a dummy class with a placeholder method that does nothing,
83- allowing tests dependent on hypothesis to be safely bypassed. If True, the original class is returned
84- unchanged.
85-
83+ allowing tests dependent on hypothesis to be safely bypassed. If True, the original
84+ class is returned unchanged.
8685 Args:
87- has_hypothesis (bool): Flag indicating whether the hypothesis library is available.
86+ has_hypothesis (bool): Flag indicating whether the hypothesis library is available.
8887 """
8988 def decorator (cls ):
9089 if not has_hypothesis :
You can’t perform that action at this time.
0 commit comments