Skip to content

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

Merged
merged 3 commits into from
Apr 10, 2017
Merged

Merge uuid module into 2and3 #1148

merged 3 commits into from
Apr 10, 2017

Conversation

euresti
Copy link
Contributor

@euresti euresti commented Apr 7, 2017

The big difference is that the python2 version has methods called get_XXX.

fields: Optional[_FieldsType] = ...,
int: Optional[_Int] = ...,
version: Optional[_Int] = ...) -> None: ...

Copy link
Member

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

def variant(self) -> str: ...

@property
def version(self) -> str: ...
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Optional[int] actually.

def get_node(self) -> _Int: ...
def get_hex(self) -> str: ...
def get_urn(self) -> str: ...
def get_variant(self) -> _Int: ...
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

str

def get_version(self) -> _Int: ...

def getnode() -> int: ...
def uuid1(node: int = ..., clock_seq: int = ...) -> UUID: ...
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both arguments are Optional

@JelleZijlstra JelleZijlstra merged commit a7f87bb into python:master Apr 10, 2017
@JelleZijlstra
Copy link
Member

I messed up, should have waited for CI to finish. Fixing now.

JelleZijlstra added a commit to JelleZijlstra/typeshed that referenced this pull request Apr 10, 2017
@JelleZijlstra JelleZijlstra mentioned this pull request Apr 10, 2017
JelleZijlstra added a commit that referenced this pull request Apr 10, 2017
@euresti euresti deleted the uuid branch April 10, 2017 02:27
hswong3i pushed a commit to alvistack/python-typeshed that referenced this pull request May 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants