Re: PyQt3D: "None" enum members
Phil Thompson <[email protected]> Tue, 05 May 2020 15:28:25 +0100
| Newsgroups | gmane.comp.python.pyqt-pykde |
|---|---|
| Message-ID | <[email protected]> |
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