diff --git a/stdlib/2and3/uuid.pyi b/stdlib/2and3/uuid.pyi index 354371a7c..4718f1a98 100644 --- a/stdlib/2and3/uuid.pyi +++ b/stdlib/2and3/uuid.pyi @@ -1,7 +1,7 @@ # Stubs for uuid import sys -from typing import Tuple, Optional, Any +from typing import Tuple, Optional, Any, Text # Because UUID has properties called int and bytes we need to rename these temporarily. _Int = int @@ -9,7 +9,8 @@ _Bytes = bytes _FieldsType = Tuple[int, int, int, int, int, int] class UUID: - def __init__(self, hex: Optional[str] = ..., bytes: Optional[_Bytes] = ..., + def __init__(self, hex: Optional[Text] = ..., + bytes: Optional[_Bytes] = ..., bytes_le: Optional[_Bytes] = ..., fields: Optional[_FieldsType] = ..., int: Optional[_Int] = ...,