Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
tybug committed May 9, 2024
1 parent c54b158 commit 4e435a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -254,15 +254,14 @@ def _cache_key_ir(self, *, nodes=None, data=None):

# intentionally drop was_forced from equality here, because the was_forced
# of node prefixes on ConjectureData has no impact on that data's result
key = tuple(
return tuple(
(
node.ir_type,
ir_value_key(node.ir_type, node.value),
ir_kwargs_key(node.ir_type, node.kwargs),
)
for node in nodes + extension
)
return key

def _cache(self, data):
result = data.as_result()
Expand Down
4 changes: 2 additions & 2 deletions hypothesis-python/tests/conjecture/test_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
from hypothesis.errors import FailedHealthCheck, Flaky
from hypothesis.internal.compat import int_from_bytes
from hypothesis.internal.conjecture import engine as engine_module
from hypothesis.internal.conjecture.data import ConjectureData, Overrun, Status, IRNode
from hypothesis.internal.conjecture.data import ConjectureData, IRNode, Overrun, Status
from hypothesis.internal.conjecture.datatree import compute_max_children
from hypothesis.internal.conjecture.engine import (
MIN_TEST_CALLS,
ConjectureRunner,
Expand All @@ -39,7 +40,6 @@
from hypothesis.internal.conjecture.pareto import DominanceRelation, dominance
from hypothesis.internal.conjecture.shrinker import Shrinker, block_program
from hypothesis.internal.entropy import deterministic_PRNG
from hypothesis.internal.conjecture.datatree import compute_max_children

from tests.common.debug import minimal
from tests.common.strategies import SLOW, HardToShrink
Expand Down

0 comments on commit 4e435a8

Please sign in to comment.