From 6950777f10d62a0b09cd9cf447ab7f1ccfca4bcf Mon Sep 17 00:00:00 2001 From: Moul <moul@moul.re> Date: Wed, 12 Oct 2022 19:17:46 +0200 Subject: [PATCH] (dep) Bump attr MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://www.attrs.org/en/stable/changelog.html#id17 now ’attrs’ can be imported, but is not yet available for attr.{s,ib} --- duniterpy/documents/ws2p/heads.py | 11 ++++++----- pyproject.toml | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/duniterpy/documents/ws2p/heads.py b/duniterpy/documents/ws2p/heads.py index dabd761..8960751 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 f020606..f019694 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" -- GitLab