Skip to content

Commit

Permalink
Improve compat typings (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
aminalaee authored Jun 15, 2024
1 parent 88739a3 commit 063eec8
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion python/uuid_utils/compat/__init__.pyi
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 063eec8

Please sign in to comment.