Skip to content

Commit c8b685e

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent fb2d7d0 commit c8b685e

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

changelog.d/1424.change.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
`attrs.make_class()` now works when its `attrs` argument is a dict of existing `attrs.Attribute` instances (e.g. from `attrs.fields(cls)`), not just fresh `attr.ib()` / `attrs.field()` call
1+
`attrs.make_class()` now works when its `attrs` argument is a dict of existing `attrs.Attribute` instances (e.g. from `attrs.fields(cls)`), not just fresh `attr.ib()` / `attrs.field()` call

tests/test_converters.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,9 @@ def test_falsy(self):
365365
assert not to_bool("no")
366366
assert not to_bool("off")
367367

368-
@pytest.mark.parametrize("value", [b"true", b"t", b"yes", b"y", b"on", b"1"])
368+
@pytest.mark.parametrize(
369+
"value", [b"true", b"t", b"yes", b"y", b"on", b"1"]
370+
)
369371
def test_truthy_bytes(self, value):
370372
"""
371373
Bytes values that decode to a truthy keyword match the str truthy path.
@@ -386,8 +388,10 @@ def test_bytes_are_lowercased(self, value):
386388
"""
387389
Bytes inputs follow the same case-insensitive lookup as str inputs.
388390
"""
389-
assert to_bool(value) is bool(value.decode("ascii").lower() in
390-
{"true", "t", "yes", "y", "on", "1"})
391+
assert to_bool(value) is bool(
392+
value.decode("ascii").lower()
393+
in {"true", "t", "yes", "y", "on", "1"}
394+
)
391395

392396
def test_bytearray_truthy(self):
393397
"""

0 commit comments

Comments
 (0)