Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions python/uuid_utils/compat/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ def uuid6(node=None, timestamp=None):
return UUID(int=uuid_utils.uuid6(node, timestamp).int)


def uuid7(timestamp=None):
def uuid7(timestamp=None, nanos=None):
"""Generate a version 7 UUID using a time value and random bytes."""
return UUID(int=uuid_utils.uuid7(timestamp).int)
return UUID(int=uuid_utils.uuid7(timestamp, nanos).int)


def uuid8(bytes):
Expand Down
2 changes: 1 addition & 1 deletion python/uuid_utils/compat/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def uuid6(node: _Int | None = None, timestamp: _Int | None = None) -> UUID:
"""
...

def uuid7(timestamp: _Int | None = None) -> UUID:
def uuid7(timestamp: _Int | None = None, nanos: _Int | None = None) -> UUID:
"""Generate a version 7 UUID using a time value and random bytes."""
...

Expand Down
Loading