-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Merge uuid module into 2and3 #1148
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
Conversation
stdlib/2and3/uuid.pyi
Outdated
fields: Optional[_FieldsType] = ..., | ||
int: Optional[_Int] = ..., | ||
version: Optional[_Int] = ...) -> None: ... | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove the blank lines between the properties
stdlib/2and3/uuid.pyi
Outdated
def variant(self) -> str: ... | ||
|
||
@property | ||
def version(self) -> str: ... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Optional[int]
actually.
stdlib/2and3/uuid.pyi
Outdated
def get_node(self) -> _Int: ... | ||
def get_hex(self) -> str: ... | ||
def get_urn(self) -> str: ... | ||
def get_variant(self) -> _Int: ... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
str
stdlib/2and3/uuid.pyi
Outdated
def get_version(self) -> _Int: ... | ||
|
||
def getnode() -> int: ... | ||
def uuid1(node: int = ..., clock_seq: int = ...) -> UUID: ... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both arguments are Optional
I messed up, should have waited for CI to finish. Fixing now. |
The big difference is that the python2 version has methods called
get_XXX
.