Skip to content

Commit 047e22e

Browse files
pre-commit-ci[bot]adamchainz
authored andcommitted
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 962dfe8 commit 047e22e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pytest_randomly/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def _reseed(config: Config, offset: int = 0) -> int:
199199
if have_tensorflow: # pragma: no branch
200200
tf.random.set_seed(seed)
201201
# TensorFlow 1.x compatibility
202-
if hasattr(tf, 'compat'):
202+
if hasattr(tf, "compat"):
203203
tf.compat.v1.set_random_seed(seed)
204204

205205
if have_pytorch: # pragma: no branch

0 commit comments

Comments
 (0)