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

[Python] Stubs - update Guid -> UUID #669

Open
wants to merge 6 commits into
base: dev
Choose a base branch
from

Conversation

StudioWEngineers
Copy link

@StudioWEngineers StudioWEngineers commented Jan 16, 2025

Currently the type hint in many methods is Any, since Guid is no longer defined and static checkers like mypy cannot find its definition. As example:

class File3dmObjectTable:
    def AddPoint(self, x: float, y: float, z: float) -> Guid: ...

image

The correct type is uuid.UUID, as discussed here.

Based on #668.

@StudioWEngineers StudioWEngineers changed the title [Python ] Stubs - update Guid -> UUID [Python] Stubs - update Guid -> UUID Jan 16, 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.

1 participant