diff --git a/duniterpy/documents/ws2p/heads.py b/duniterpy/documents/ws2p/heads.py index dabd7618a00bf30387d42ce3c067abcb321873f8..89607515d922bc6fe36bf97ff9631ef155fbb285 100644 --- a/duniterpy/documents/ws2p/heads.py +++ b/duniterpy/documents/ws2p/heads.py @@ -16,6 +16,7 @@ import re import attr +import attrs from ...constants import ( BLOCK_ID_REGEX, @@ -108,13 +109,13 @@ class HeadV0(Head): def inline(self) -> str: values = ( str(v) - for v in attr.astuple( + for v in attrs.astuple( self, recurse=False, - filter=attr.filters.exclude( - attr.fields(HeadV0).version, - attr.fields(HeadV0).signature, - attr.fields(HeadV0).api, + filter=attrs.filters.exclude( + attrs.fields(HeadV0).version, + attrs.fields(HeadV0).signature, + attrs.fields(HeadV0).api, ), ) ) diff --git a/pyproject.toml b/pyproject.toml index f0206067d0d44c506cb002307d539bc131fa7c09..f019694d84f8ea7f9063fdd3c84e5264d74eae6b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,7 +31,7 @@ graphql-core = "^3.1.2" websocket-client = "^1.1.0" jsonschema = "^4.5.0" pypeg2 = "^2.15.2" -attrs = "^21.2.0" +attrs = "^22.1.0" base58 = "^2.1.0" libnacl = "^1.7.2" pyaes = "^1.6.1"