[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    PyQt5 : strange QUrl.FormattingOptions
From:       Philippe Fremy <phil () freehackers ! org>
Date:       2021-11-13 15:30:21
Message-ID: c7529731919a2b2f5b13c34bb9004dde () freehackers ! org
[Download RAW message or body]


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.

Have a nice day.

Philippe
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic