PyQt3D: "None" enum members

Phil Thompson phil at riverbankcomputing.com
Tue May 5 15:28:25 BST 2020


On 04/05/2020 17:18, Florian Bruhin wrote:
> Hey,
> 
> From 
> PyQt3D-5.14.1.dev2002081011/sip/Qt3DAnimation/qkeyframeanimation.sip:
> 
>     enum RepeatMode
>     {
>         None,
>         Constant,
>         Repeat,
>     };
> 
> Which results in this with the generated PyQt stubs:
> 
>     class RepeatMode(int): ...
>     None = ... # type: 'QKeyframeAnimation.RepeatMode'
>     Constant = ... # type: 'QKeyframeAnimation.RepeatMode'
>     Repeat = ... # type: 'QKeyframeAnimation.RepeatMode'
> 
> Which then results in this with mypy:
> 
>     PyQt5-stubs/Qt3DAnimation.pyi:334: error: can't assign to keyword
> 
> Could that member be missing a /PyName=None_/ annotation?
> 
> Same for:
> 
>   - QAbstractTexture.Status
>   - QClearBuffers.BufferType
>   - QMemoryBarrier.Operation
>   - QMesh.Status
>   - QSceneLoader.Status
>   - QTextureImage.Status
>   - QSGTexture.Filtering

Should be fixed in tonight's snapshots.

Thanks,
Phil


More information about the PyQt mailing list