From 063eec8dd8e96a751eebb75d65d0073970c9159d Mon Sep 17 00:00:00 2001 From: Amin Alaee Date: Sat, 15 Jun 2024 11:20:23 +0200 Subject: [PATCH] Improve compat typings (#55) --- python/uuid_utils/compat/__init__.pyi | 28 ++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/python/uuid_utils/compat/__init__.pyi b/python/uuid_utils/compat/__init__.pyi index de42132..e1e2954 100644 --- a/python/uuid_utils/compat/__init__.pyi +++ b/python/uuid_utils/compat/__init__.pyi @@ -1,7 +1,33 @@ -from uuid import UUID +from uuid import ( + NAMESPACE_DNS, + NAMESPACE_OID, + NAMESPACE_URL, + NAMESPACE_X500, + RESERVED_FUTURE, + RESERVED_MICROSOFT, + RESERVED_NCS, + RFC_4122, + UUID, + SafeUUID, + getnode, +) from typing_extensions import TypeAlias +__all__ = [ + "NAMESPACE_DNS", + "NAMESPACE_OID", + "NAMESPACE_URL", + "NAMESPACE_X500", + "RESERVED_FUTURE", + "RESERVED_MICROSOFT", + "RESERVED_NCS", + "RFC_4122", + "UUID", + "SafeUUID", + "getnode", +] + # Because UUID has properties called int and bytes we need to rename these temporarily. _Int: TypeAlias = int _Bytes: TypeAlias = bytes