From c7da1d14b11da0ecf9db0c694fc7fa854e282f2a Mon Sep 17 00:00:00 2001
From: Moul <moul@moul.re>
Date: Mon, 14 Aug 2023 16:43:30 +0200
Subject: [PATCH] Fix deprecation warning about typing.re.Pattern (#194)

https://docs.python.org/3/library/typing.html#typing.Pattern
---
 duniterpy/documents/document.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/duniterpy/documents/document.py b/duniterpy/documents/document.py
index 816561a..758f0a8 100644
--- a/duniterpy/documents/document.py
+++ b/duniterpy/documents/document.py
@@ -17,8 +17,7 @@ import base64
 import hashlib
 import logging
 import re
-from typing import Any, Dict, Optional, Type, TypeVar
-from typing.re import Pattern
+from typing import Any, Dict, Optional, Pattern, Type, TypeVar
 
 from ..constants import SIGNATURE_REGEX
 from ..key import SigningKey, VerifyingKey
-- 
GitLab