Skip to content

Commit 9ed1af4

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

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • src/asphalt/serialization/serializers

src/asphalt/serialization/serializers/pickle.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ class PickleSerializer(Serializer):
1919
__slots__ = "protocol"
2020

2121
def __init__(self, protocol: int = pickle.HIGHEST_PROTOCOL):
22-
assert (
23-
0 <= protocol <= pickle.HIGHEST_PROTOCOL
24-
), f'"protocol" must be between 0 and {pickle.HIGHEST_PROTOCOL}'
22+
assert 0 <= protocol <= pickle.HIGHEST_PROTOCOL, (
23+
f'"protocol" must be between 0 and {pickle.HIGHEST_PROTOCOL}'
24+
)
2525

2626
self.protocol: int = protocol
2727

0 commit comments

Comments
 (0)