Skip to content

Commit 4ebc537

Browse files
add tensorzero.util reexport UUID (tensorzero#3017)
* add tensorzero.util reexport UUID * expose UUID only via tensorzero.util * Update __init__.py * Cleanup --------- Co-authored-by: Gabriel Bianconi <1275491+GabrielBianconi@users.noreply.github.com> Co-authored-by: Gabriel Bianconi <GabrielBianconi@users.noreply.github.com>
1 parent 9e3b117 commit 4ebc537

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

clients/python/tensorzero/util.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
1-
import uuid
1+
from uuid import UUID
22

33
from uuid_utils import compat
44

55

6-
def uuid7() -> uuid.UUID:
6+
def uuid7() -> UUID:
77
"""
8-
Generate a UUID v7 using uuid_utils compatibility layer.
8+
Generate a UUIDv7 using the uuid_utils compatibility layer.
99
This ensures type compatibility with the rest of the TensorZero client.
1010
"""
1111
return compat.uuid7()
1212

1313

14-
__all__ = ["uuid7"]
14+
__all__ = [
15+
"UUID",
16+
"uuid7",
17+
]

0 commit comments

Comments
 (0)