Skip to content

[FEATURE REQUEST] Python Stubs for Type Checking and Completion #4682

@KelSolaar

Description

@KelSolaar

With the newly released Pypi wheels, thanks you so much for this btw, it would be awesome to see Python stubs for type checking and completion. I need to pepper the code with # pyright: ignore pragma and thus, the code is not checked:

from OpenImageIO import DOUBLE  # pyright: ignore
from OpenImageIO import FLOAT  # pyright: ignore
from OpenImageIO import HALF  # pyright: ignore
from OpenImageIO import UINT8  # pyright: ignore
from OpenImageIO import UINT16  # pyright: ignore
from OpenImageIO import ImageInput  # pyright: ignore
from OpenImageIO import ImageOutput  # pyright: ignore
from OpenImageIO import ImageSpec  # pyright: ignore

Not an issue but this would be a great improvement.

@zachlewis for 👀

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions