[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: PyQt5 : strange QUrl.FormattingOptions
From: Phil Thompson <phil () riverbankcomputing ! com>
Date: 2021-11-23 17:54:29
Message-ID: f2403452d154d487cb058a74c87e5cb4 () riverbankcomputing ! com
[Download RAW message or body]
On 13/11/2021 15:30, Philippe Fremy wrote:
> Hi,
>
> While working on PyQt5-stubs, I noticed that
> QtCore.QUrl.FormattingOptions is kind of strangely generated.
>
> Usually, all QFlag based classes come with a few constructors and
> methods. For example, QUrlComponentFormattingOptions comes like this:
>
> class ComponentFormattingOptions(sip.simplewrapper):
>
> @typing.overload
> def __init__(self) -> None: ...
> @typing.overload
> def __init__(self, f:
> typing.Union['QUrl.ComponentFormattingOptions',
> 'QUrl.ComponentFormattingOption']) -> None: ...
> @typing.overload
> def __init__(self, a0: 'QUrl.ComponentFormattingOptions') ->
> None: ...
>
> def __hash__(self) -> int: ...
> def __bool__(self) -> int: ...
> def __invert__(self) -> 'QUrl.ComponentFormattingOptions': ...
> def __index__(self) -> int: ...
> def __int__(self) -> int: ...
>
>
> However, for QUrl.FormattingOptions, the QFlag based class is extremely
> simple:
>
> class FormattingOptions(sip.simplewrapper):
>
> def __init__(self, a0: 'QUrl.FormattingOptions') -> None: ...
>
>
> It's kind of odd, so I imagine this is a bug.
Should be fixed in the next snapshot.
Thanks,
Phil
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic