Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update uuids.py #1573

Merged
merged 1 commit into from
May 17, 2024
Merged
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
10 changes: 5 additions & 5 deletions bleak/uuids.py
Original file line number Diff line number Diff line change
Expand Up @@ -1214,15 +1214,15 @@ def normalize_uuid_str(uuid: str) -> str:

# 16-bit
uuid1 = normalize_uuid_str("1234")
# uuid1 == "00001234-1000-8000-00805f9b34fb"
# uuid1 == "00001234-0000-1000-8000-00805f9b34fb"

# 32-bit
uuid2 = normalize_uuid_str("12345678")
# uuid2 == "12345678-1000-8000-00805f9b34fb"
# uuid2 == "12345678-0000-1000-8000-00805f9b34fb"

# 128-bit
uuid3 = normalize_uuid_str("12345678-1234-1234-1234567890ABC")
# uuid3 == "12345678-1234-1234-1234567890abc"
uuid3 = normalize_uuid_str("12345678-0000-1234-1234-1234567890ABC")
# uuid3 == "12345678-0000-1234-1234-1234567890abc"

.. versionadded:: 0.20
.. versionchanged:: 0.21
Expand Down Expand Up @@ -1250,7 +1250,7 @@ def normalize_uuid_16(uuid: int) -> str:
Example::

uuid = normalize_uuid_16(0x1234)
# uuid == "00001234-1000-8000-00805f9b34fb"
# uuid == "00001234-0000-1000-8000-00805f9b34fb"

.. versionadded:: 0.21
"""
Expand Down
Loading