@@ -3,7 +3,7 @@ import sys
33from typing import Final
44from uuid import SafeUUID
55
6- from typing_extensions import TypeAlias
6+ from typing_extensions import LiteralString , TypeAlias
77
88# Because UUID has properties called int and bytes we need to rename these temporarily.
99_FieldsType : TypeAlias = tuple [int , int , int , int , int , int ]
@@ -65,6 +65,9 @@ class UUID:
6565 otherwise raises ValueError.
6666 """
6767
68+ is_safe : Final [SafeUUID ]
69+ int : Final [builtins .int ]
70+
6871 def __init__ (
6972 self ,
7073 hex : str | None = None ,
@@ -77,8 +80,6 @@ class UUID:
7780 is_safe : SafeUUID = ...,
7881 ) -> None : ...
7982 @property
80- def is_safe (self ) -> SafeUUID : ...
81- @property
8283 def bytes (self ) -> builtins .bytes : ...
8384 @property
8485 def bytes_le (self ) -> builtins .bytes : ...
@@ -93,8 +94,6 @@ class UUID:
9394 @property
9495 def hex (self ) -> str : ...
9596 @property
96- def int (self ) -> builtins .int : ...
97- @property
9897 def node (self ) -> builtins .int : ...
9998 @property
10099 def time (self ) -> builtins .int : ...
@@ -182,14 +181,14 @@ def uuid8(bytes: bytes) -> UUID:
182181 """Generate a custom UUID comprised almost entirely of user-supplied bytes."""
183182 ...
184183
185- NAMESPACE_DNS : UUID
186- NAMESPACE_URL : UUID
187- NAMESPACE_OID : UUID
188- NAMESPACE_X500 : UUID
189- RESERVED_NCS : str
190- RFC_4122 : str
191- RESERVED_MICROSOFT : str
192- RESERVED_FUTURE : str
184+ NAMESPACE_DNS : Final [ UUID ]
185+ NAMESPACE_URL : Final [ UUID ]
186+ NAMESPACE_OID : Final [ UUID ]
187+ NAMESPACE_X500 : Final [ UUID ]
188+ RESERVED_NCS : Final [ LiteralString ]
189+ RFC_4122 : Final [ LiteralString ]
190+ RESERVED_MICROSOFT : Final [ LiteralString ]
191+ RESERVED_FUTURE : Final [ LiteralString ]
193192NIL : Final [UUID ]
194193MAX : Final [UUID ]
195194
0 commit comments