Muream / maya-stubs

Stubs for Autodesk Maya
MIT License
35 stars 4 forks source link

Mypy: invalid syntax in OpenMaya.pyi #17

Closed johhnry closed 11 months ago

johhnry commented 1 year ago

Hi,

I have this error with Mypy:

import maya.api.OpenMaya as om2
.venv\lib\site-packages\maya-stubs\api\OpenMaya.pyi:57: error: invalid syntax  [syntax]
Found 1 error in 1 file (errors prevented further checking)

Which is this line in OpemMaya.pyi:

unit: getset_descriptor = <attribute 'unit' of 'OpenMaya.MAngle' objects>

This doesn't seem like a valid Python syntax isn't it?

Thanks!

Environment