Skip to content

Commit 1195fd2

Browse files
style: pre-commit fixes
1 parent 6970e6d commit 1195fd2

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ extend-select = [
152152
"C4", # flake8-comprehensions
153153
"EM", # flake8-errmsg
154154
"ICN", # flake8-import-conventions
155-
"ISC", # flake8-implicit-str-concat
155+
"ISC", # flake8-implicit-str-concat
156156
"PERF", # Perflint
157157
"PGH", # pygrep-hooks
158158
"PIE", # flake8-pie

tests/test_class_sh_basic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ def test_pass_unique_ptr_disowns(pass_f, rtrn_f, expected):
112112
pass_f(obj)
113113
assert str(exc_info.value) == (
114114
"Missing value for wrapped C++ type"
115-
" `pybind11_tests::class_sh_basic::atyp`:"
116-
" Python instance was disowned."
115+
" `pybind11_tests::class_sh_basic::atyp`:"
116+
" Python instance was disowned."
117117
)
118118

119119

tests/test_iostream.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -288,10 +288,7 @@ def test_redirect_both(capfd):
288288
def test_threading():
289289
with m.ostream_redirect(stdout=True, stderr=False):
290290
# start some threads
291-
threads = [
292-
m.TestThread()
293-
for _j in range(20)
294-
]
291+
threads = [m.TestThread() for _j in range(20)]
295292

296293
# give the threads some time to fail
297294
threads[0].sleep()

0 commit comments

Comments
 (0)