[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: PyQt3D: "None" enum members
From: Phil Thompson <phil () riverbankcomputing ! com>
Date: 2020-05-05 14:28:25
Message-ID: 68d76b14cad4065affa33b6dc97ca766 () riverbankcomputing ! com
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic