Important
Development takes place on GitLab: gitlab.com/tahv/types-maya.
Provide stubs for language servers such a Pyright or ty.
pip install types-mayamaya.api.*: maintained manually and will likely remain incomplete for some time. Stubs are written from the Maya 2025 Reference.maya.cmds: generated from Maya Commands documentation using cmdsgen.maya.OpenMaya*: not something I'm focusing on, but contributions are welcome.
| Import name | Status |
|---|---|
maya.api.OpenMaya |
🟠 Incomplete (~45%) |
maya.api.OpenMayaAnim |
🟠 Unannotated |
maya.api.OpenMayaRender |
🟠 Incomplete (~12%) |
maya.api.OpenMayaUI |
🟠 Unannotated |
maya.cmds |
🟢 Complete |
maya.mel |
🟢 Complete |
maya.standalone |
🟢 Complete |
maya.OpenMaya |
🔴 Not Covered |
maya.OpenMayaAnim |
🔴 Not Covered |
maya.OpenMayaFX |
🔴 Not Covered |
maya.OpenMayaMPx |
🔴 Not Covered |
maya.OpenMayaRender |
🔴 Not Covered |
maya.OpenMayaUI |
🔴 Not Covered |
Annotated
is used to add context to some annotations. Some examples:
A sequence of 16 floats.
Annotated[Sequence[float], "[16]"]A sequence of 4 sequences of 4 floats.
Annotated[Sequence[Sequence[float]], "[4[4]]"]A sequence of 1 to 6 floats.
Annotated[Sequence[MArgType], "[1..6]"],A list of 4 int, the x, y, x and w axis.
Annotated[list[int], "[x, y, z, w]"]Deprecated property.
Annotated[Literal[5], "deprecated"]Contributions of any kind are welcome. Please open an issue or open a merge request.