Skip to content

Commit c5fa0d4

Browse files
committed
formatting, lint
1 parent b5dc8ff commit c5fa0d4

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

hypothesis-python/src/hypothesis/internal/conjecture/data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
if TYPE_CHECKING:
7878
from typing import TypeAlias
7979

80-
from hypothesis.strategies import SearchStrategy
80+
from hypothesis.strategies import SearchStrategy, SharedStrategy
8181
from hypothesis.strategies._internal.core import DataObject
8282
from hypothesis.strategies._internal.random import RandomState
8383
from hypothesis.strategies._internal.strategies import Ex

hypothesis-python/src/hypothesis/internal/conjecture/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def calc_label_from_callable(f: Callable) -> int:
4545
# probably an instance defining __call__
4646
try:
4747
return calc_label_from_hash(f)
48-
except Exception:
48+
except Exception: # pragma: no cover
4949
# not hashable
5050
return calc_label_from_cls(type(f))
5151

hypothesis-python/src/hypothesis/strategies/_internal/flatmapped.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
from typing import Callable, Generic, TypeVar
1212

1313
from hypothesis.internal.conjecture.data import ConjectureData
14-
from hypothesis.internal.conjecture.utils import calc_label_from_callable, combine_labels
14+
from hypothesis.internal.conjecture.utils import (
15+
calc_label_from_callable,
16+
combine_labels,
17+
)
1518
from hypothesis.internal.reflection import get_pretty_function_description
1619
from hypothesis.strategies._internal.strategies import (
1720
RecurT,

0 commit comments

Comments
 (0)