Skip to content

Add all qflags bases classes #153

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 230 commits into from
Dec 15, 2021
Merged
Show file tree
Hide file tree
Changes from 221 commits
Commits
Show all changes
230 commits
Select commit Hold shift + click to select a range
79a24e4
Fix WindowType and WindowFlags integer operations
bluebird75 Mar 26, 2021
542d527
Full testing on WindowType, WindowFlags and int combinations + correc…
bluebird75 Mar 26, 2021
ba5b984
Update changelog
bluebird75 Mar 27, 2021
b328383
Make WindowType inherit int again (revert a previous change)
bluebird75 Mar 27, 2021
e1c67d4
Ignore the errors reported from breaking Liskov principle
bluebird75 Mar 29, 2021
1ad195a
add one more test for windowFlags usage
bluebird75 Mar 29, 2021
aee419b
Merge remote-tracking branch 'origin/master' into fix-windowflags-win…
bluebird75 Mar 29, 2021
53c1105
WindowType as working cross verfication with mypy and py.test
bluebird75 Mar 29, 2021
eebb2cb
WindowFlags operations are verified by both mypy and pytest
bluebird75 Mar 29, 2021
af26357
Also test assignment operator
bluebird75 Mar 29, 2021
8f1d77f
Fix CI: overload not needed, breaking Liskov is OK here
bluebird75 Apr 19, 2021
64d3934
Fix CI
bluebird75 Apr 19, 2021
77af902
Make stubtest happy: there is no need for a __init__ method on int su…
bluebird75 Apr 19, 2021
e277af3
Fix CI: functions are not needed
bluebird75 Apr 19, 2021
8a93e15
Make mypy happy
bluebird75 Apr 19, 2021
5d76dde
work in progress on making windowFlags test generic
bluebird75 Apr 20, 2021
38d86c3
Make test completely generic
bluebird75 Apr 20, 2021
891f062
Add tests and fixes for Alignment flags
bluebird75 Apr 20, 2021
dcc0368
Generator for testing QFlag based classes
bluebird75 Apr 20, 2021
3b1fb57
concept of automating qflags validation
bluebird75 Apr 24, 2021
464f1d6
Sanitize input
pfremy Apr 25, 2021
4c62110
Can associate a module with most QFlags
pfremy Apr 25, 2021
73ce858
Look for qflags in all modules of qtbase
pfremy Apr 27, 2021
4ea15c5
Merge branch 'master' into all-qflags
altendky Aug 12, 2021
0585948
Update PyQt5-stubs/QtCore.pyi
bluebird75 Aug 13, 2021
52254c9
Remove unneeded #type: ignore and QtWidgets import to make CI happy
bluebird75 Aug 13, 2021
0484eaa
Merge branch 'master' into all-qflags
altendky Aug 13, 2021
f1f54c5
improvements
bluebird75 Aug 24, 2021
17e4270
Can locate QFlag into pyqt module
bluebird75 Aug 24, 2021
8949a28
Work in progress for testing qflags
bluebird75 Aug 24, 2021
cba2436
work in progress
bluebird75 Aug 24, 2021
40589d4
Can parse pyi and check for enum class and its methods
bluebird75 Aug 27, 2021
74a8066
work in progress: check for all method presence done
bluebird75 Aug 29, 2021
90554e8
wip: module is modified for the enum class
bluebird75 Aug 29, 2021
a90e5c4
wip: full code modification is working
bluebird75 Aug 29, 2021
7077b60
wip: move code modification back to generate_qflags_stubs_and_tests
bluebird75 Sep 2, 2021
1ee9864
work in progress
bluebird75 Sep 3, 2021
6adfdc6
Fix typo
bluebird75 Sep 3, 2021
4d48d55
Renaming and documentation update
bluebird75 Sep 3, 2021
376e8ae
work in progress
bluebird75 Sep 4, 2021
40cfc4a
work in progress
bluebird75 Sep 6, 2021
2b3818e
Now working: running this script creates one more supported QFlag
bluebird75 Sep 6, 2021
797d167
Add all QFlag operations to QDBusConnection.ConnectionCabability in m…
bluebird75 Sep 6, 2021
e518b6a
Adding all QFlag operations to QGLFormat.OpenGLVersionFlags, QGLForma…
bluebird75 Sep 6, 2021
d24856a
Description of how to use the generation script
bluebird75 Sep 6, 2021
e806c20
QFlag operations for QTextCodec.ConversionFlags, QTextCodec.Conversio…
bluebird75 Sep 6, 2021
b7fd9bf
More documentation and script cleaning
bluebird75 Sep 6, 2021
a8b4e95
Restore the module when test fail
bluebird75 Sep 6, 2021
5ee9320
QFlag operations for QDir.Filters, QDir.Filter in module QtCore
bluebird75 Sep 6, 2021
a41b9fa
QFlag operations for QDir.SortFlags, QDir.SortFlag in module QtCore
bluebird75 Sep 6, 2021
2c2cc63
Merge branch 'all-qflags-phil' into all-qflags
bluebird75 Sep 6, 2021
cb7788f
QFlag operations for QFileDevice.Permissions, QFileDevice.Permission …
bluebird75 Sep 6, 2021
d5717fb
QFlag operations for QItemSelectionModel.SelectionFlags, QItemSelecti…
bluebird75 Sep 6, 2021
e0e776d
QFlag operations for Qt.KeyboardModifiers, Qt.KeyboardModifier in mod…
bluebird75 Sep 6, 2021
97f0402
QFlag operations for Qt.MouseButtons, Qt.MouseButton in module QtCore
bluebird75 Sep 6, 2021
5ceb0ac
QFlag operations for Qt.Orientations, Qt.Orientation in module QtCore
bluebird75 Sep 6, 2021
9fc46ee
QFlag operations for Qt.WindowStates, Qt.WindowState in module QtCore
bluebird75 Sep 6, 2021
3ddf8fd
QFlag operations for Qt.ScreenOrientations, Qt.ScreenOrientation in m…
bluebird75 Sep 6, 2021
c7a9d64
QFlag operations for Qt.ImageConversionFlags, Qt.ImageConversionFlag …
bluebird75 Sep 6, 2021
f7f3a06
QFlag operations for Qt.DockWidgetAreas, Qt.DockWidgetArea in module …
bluebird75 Sep 6, 2021
a8ae4f7
QFlag operations for Qt.ToolBarAreas, Qt.ToolBarArea in module QtCore
bluebird75 Sep 6, 2021
25fbaec
QFlag operations for Qt.Edges, Qt.Edge in module QtCore
bluebird75 Sep 6, 2021
3d93d29
Individual qflags test files no longer needed.
bluebird75 Sep 7, 2021
1bbc115
Less global variables
bluebird75 Sep 7, 2021
fc5f576
Re-run the failing commands to capture the actual error
bluebird75 Sep 7, 2021
fb12a40
QFlag operations for QGLContext.BindOptions, QGLContext.BindOption in…
bluebird75 Sep 7, 2021
3399dbc
Add missing test file for WindowFlags / WindowType
bluebird75 Sep 7, 2021
fe8f92b
QFlag test files for InputMethodQuery / InputMethodQueries
bluebird75 Sep 7, 2021
8415cc0
QFlag operations for Qt.InputMethodHints, Qt.InputMethodHint in modul…
bluebird75 Sep 7, 2021
a3cf031
QFlag operations for Qt.DropActions, Qt.DropAction in module QtCore
bluebird75 Sep 7, 2021
8455cdc
QFlag operations for Qt.ItemFlags, Qt.ItemFlag in module QtCore
bluebird75 Sep 7, 2021
674a0b6
QFlag operations for Qt.MatchFlags, Qt.MatchFlag in module QtCore
bluebird75 Sep 7, 2021
1ff8290
More explanation about --auto-commit
bluebird75 Sep 7, 2021
d339eb7
Merge branch 'all-qflags-phil' into all-qflags
bluebird75 Sep 7, 2021
46584cd
QFlag operations for Qt.TextInteractionFlags, Qt.TextInteractionFlag …
bluebird75 Sep 7, 2021
5f6581c
QFlag operations for Qt.TouchPointStates, Qt.TouchPointState in modul…
bluebird75 Sep 7, 2021
a27a1ee
QFlag operations for Qt.GestureFlags, Qt.GestureFlag in module QtCore
bluebird75 Sep 7, 2021
e815ef2
QFlag operations for Qt.MouseEventFlags, Qt.MouseEventFlag in module …
bluebird75 Sep 7, 2021
c279682
QFlag operations for QSurfaceFormat.FormatOptions, QSurfaceFormat.For…
bluebird75 Sep 8, 2021
31baf20
QFlag operations for QGL.FormatOptions, QGL.FormatOption in module Qt…
bluebird75 Sep 8, 2021
ab68eba
Proper handling of flags in multiple modules or multiple times in the…
bluebird75 Sep 8, 2021
7feab15
QFlag operations for QOpenGLShader.ShaderType, QOpenGLShader.ShaderTy…
bluebird75 Sep 8, 2021
6464c8e
Merge branch 'all-qflags-phil' into all-qflags
bluebird75 Sep 8, 2021
2d5bcc3
QFlag operations for QMessageBox.StandardButtons, QMessageBox.Standar…
bluebird75 Sep 8, 2021
a91b59e
QFlag operations for QDirIterator.IteratorFlags, QDirIterator.Iterato…
bluebird75 Sep 8, 2021
4e0f0bd
QFlag operations for QTreeWidgetItemIterator.IteratorFlags, QTreeWidg…
bluebird75 Sep 8, 2021
5daa496
QFlag operations for Qt.Alignment, Qt.AlignmentFlag in module QtCore
bluebird75 Sep 8, 2021
c0aa306
QFlag operations for Qt.InputMethodQueries, Qt.InputMethodQuery in mo…
bluebird75 Sep 8, 2021
69355e3
QFlag operations for QEventLoop.ProcessEventsFlags, QEventLoop.Proces…
bluebird75 Sep 8, 2021
7832128
QFlag operations for QLibrary.LoadHints, QLibrary.LoadHint in module …
bluebird75 Sep 8, 2021
0634c26
QFlag operations for QOpenGLBuffer.RangeAccessFlags, QOpenGLBuffer.Ra…
bluebird75 Sep 8, 2021
d254fd8
QFlag operations for QOpenGLDebugMessage.Sources, QOpenGLDebugMessage…
bluebird75 Sep 8, 2021
d329d0b
QFlag operations for QOpenGLDebugMessage.Severities, QOpenGLDebugMess…
bluebird75 Sep 8, 2021
37f9a2d
QFlag operations for QMetaType.TypeFlags, QMetaType.TypeFlag in modul…
bluebird75 Sep 8, 2021
37c93a0
QFlag operations for QStandardPaths.LocateOptions, QStandardPaths.Loc…
bluebird75 Sep 8, 2021
29cb729
QFlag operations for QTextOption.Flags, QTextOption.Flag in module QtGui
bluebird75 Sep 8, 2021
ecd2f81
Store error on multiple lines for more readability
bluebird75 Sep 8, 2021
21f2ea1
QFlag operations for QCommandLineOption.Flags, QCommandLineOption.Fla…
bluebird75 Sep 8, 2021
b5a66c9
Fix QIODevice.OpenMode / OpenModeFlags
bluebird75 Sep 8, 2021
c46f7bc
QFlag operations for QHstsPolicy.PolicyFlags, QHstsPolicy.PolicyFlag …
bluebird75 Sep 8, 2021
eaec5a3
Prepare for variations of OR support between QFlags
bluebird75 Sep 8, 2021
46a090d
QFlag operations for QColorDialog.ColorDialogOptions, QColorDialog.Co…
bluebird75 Sep 8, 2021
a735231
QFlag operations for QFontDialog.FontDialogOptions, QFontDialog.FontD…
bluebird75 Sep 8, 2021
7b71654
QFlag operations for QUrl.ComponentFormattingOptions, QUrl.ComponentF…
bluebird75 Sep 8, 2021
8e093a7
QFlag operations for QWidget.RenderFlags, QWidget.RenderFlag in modul…
bluebird75 Sep 10, 2021
0638e70
QFlag operations for QTextItem.RenderFlags, QTextItem.RenderFlag in m…
bluebird75 Sep 10, 2021
d095a6b
QFlag operations for QPaintEngine.PaintEngineFeatures, QPaintEngine.P…
bluebird75 Sep 10, 2021
98e9a21
QFlag operations for QTouchDevice.Capabilities, QTouchDevice.Capabili…
bluebird75 Sep 10, 2021
78e89b8
QFlag operations for QOpenGLTexture.Features, QOpenGLTexture.Feature …
bluebird75 Sep 10, 2021
a1cb6bc
QFlag operations for QPainter.RenderHints, QPainter.RenderHint in mod…
bluebird75 Sep 10, 2021
75f7410
QFlag operations for QSizePolicy.ControlTypes, QSizePolicy.ControlTyp…
bluebird75 Sep 10, 2021
868bf4b
QFlag operations for QRawFont.LayoutFlags, QRawFont.LayoutFlag in mod…
bluebird75 Sep 10, 2021
b281dbf
QFlag operations for QTextDocument.FindFlags, QTextDocument.FindFlag …
bluebird75 Sep 10, 2021
d0ecac4
QFlag operations for QHostAddress.ConversionMode, QHostAddress.Conver…
bluebird75 Sep 10, 2021
a2b7825
QFlag operations for QAbstractSocket.BindMode, QAbstractSocket.BindFl…
bluebird75 Sep 10, 2021
a786b05
QFlag operations for QAbstractSocket.PauseModes, QAbstractSocket.Paus…
bluebird75 Sep 10, 2021
150e08a
QFlag operations for QTextFormat.PageBreakFlags, QTextFormat.PageBrea…
bluebird75 Sep 10, 2021
6bc6354
QFlag operations for QNetworkInterface.InterfaceFlags, QNetworkInterf…
bluebird75 Sep 10, 2021
e194110
QFlag operations for QSsl.SslOptions, QSsl.SslOption in module QtNetwork
bluebird75 Sep 10, 2021
01a7a1b
QFlag operations for QByteArray.Base64Options, QByteArray.Base64Optio…
bluebird75 Sep 10, 2021
b0013f7
QFlag operations for QLocale.NumberOptions, QLocale.NumberOption in m…
bluebird75 Sep 10, 2021
d3c16b7
QFlag operations for QDateTimeEdit.Sections, QDateTimeEdit.Section in…
bluebird75 Sep 10, 2021
757b039
QFlag operations for QRegularExpression.PatternOptions, QRegularExpre…
bluebird75 Sep 10, 2021
a4c8b34
QFlag operations for QRegularExpression.MatchOptions, QRegularExpress…
bluebird75 Sep 10, 2021
a077857
QFlag operations for QTextStream.NumberFlags, QTextStream.NumberFlag …
bluebird75 Sep 10, 2021
5b0194f
QFlag operations for QTextBoundaryFinder.BoundaryReasons, QTextBounda…
bluebird75 Sep 10, 2021
1d7381f
QFlag operations for QSql.ParamType, QSql.ParamTypeFlag in module QtSql
bluebird75 Sep 10, 2021
09408e3
QFlag operations for QFileDialog.Options, QFileDialog.Option in modul…
bluebird75 Sep 10, 2021
47576e1
QFlag operations for QFileIconProvider.Options, QFileIconProvider.Opt…
bluebird75 Sep 10, 2021
0e7e035
QFlag operations for QFileSystemModel.Options, QFileSystemModel.Optio…
bluebird75 Sep 10, 2021
b2ec7b6
QFlag operations for QGraphicsEffect.ChangeFlags, QGraphicsEffect.Cha…
bluebird75 Sep 10, 2021
0ca37f7
QFlag operations for QGraphicsBlurEffect.BlurHints, QGraphicsBlurEffe…
bluebird75 Sep 10, 2021
92a0834
QFlag operations for QInputDialog.InputDialogOptions, QInputDialog.In…
bluebird75 Sep 10, 2021
3fab7aa
QFlag operations for QWizard.WizardOptions, QWizard.WizardOption in m…
bluebird75 Sep 10, 2021
768e473
QFlag operations for QAbstractItemView.EditTriggers, QAbstractItemVie…
bluebird75 Sep 10, 2021
f32379d
QFlag operations for QGraphicsItem.GraphicsItemFlags, QGraphicsItem.G…
bluebird75 Sep 10, 2021
49e3224
QFlag operations for QGestureRecognizer.Result, QGestureRecognizer.Re…
bluebird75 Sep 10, 2021
3d35da7
QFlag operations for QGraphicsScene.SceneLayers, QGraphicsScene.Scene…
bluebird75 Sep 10, 2021
d749891
Propagate the full class names to the final output
bluebird75 Sep 10, 2021
f3abc3b
Merge branch 'all-qflags-phil' into all-qflags
bluebird75 Sep 10, 2021
637dab7
QFlag operations for QGraphicsView.OptimizationFlags, QGraphicsView.O…
bluebird75 Sep 10, 2021
2d113a9
QFlag operations for QStyle.SubControls, QStyle.SubControl in module …
bluebird75 Sep 10, 2021
55ab3a5
QFlag operations for QAbstractSpinBox.StepEnabled, QAbstractSpinBox.S…
bluebird75 Sep 10, 2021
12fbeee
QFlag operations for QStyleOptionFrame.FrameFeatures, QStyleOptionFra…
bluebird75 Sep 10, 2021
c178321
QFlag operations for QStyleOptionButton.ButtonFeatures, QStyleOptionB…
bluebird75 Sep 10, 2021
449ae03
QFlag operations for QStyleOptionTab.CornerWidgets, QStyleOptionTab.C…
bluebird75 Sep 10, 2021
27f1968
QFlag operations for QStyleOptionToolBar.ToolBarFeatures, QStyleOptio…
bluebird75 Sep 10, 2021
102ac89
QFlag operations for QStyleOptionViewItem.ViewItemFeatures, QStyleOpt…
bluebird75 Sep 10, 2021
ce9e300
QFlag operations for QStyleOptionToolButton.ToolButtonFeatures, QStyl…
bluebird75 Sep 10, 2021
e237a24
QFlag operations for QDockWidget.DockWidgetFeatures, QDockWidget.Dock…
bluebird75 Sep 10, 2021
e91147a
QFlag operations for QFontComboBox.FontFilters, QFontComboBox.FontFil…
bluebird75 Sep 10, 2021
4612864
QFlag operations for QMdiArea.AreaOptions, QMdiArea.AreaOption in mod…
bluebird75 Sep 10, 2021
6ec6572
QFlag operations for QMdiSubWindow.SubWindowOptions, QMdiSubWindow.Su…
bluebird75 Sep 10, 2021
28631ec
QFlag operations for QMainWindow.DockOptions, QMainWindow.DockOption …
bluebird75 Sep 10, 2021
3ce0e9a
QFlag operations for QTextEdit.AutoFormatting, QTextEdit.AutoFormatti…
bluebird75 Sep 10, 2021
2c2a42c
Display number of remaining flags to process
bluebird75 Sep 11, 2021
1657713
Also catch errors during transformation of the CST
bluebird75 Sep 11, 2021
733a933
Remove unneeded init method
bluebird75 Sep 11, 2021
29bb062
Merge branch 'master' into all-qflags
bluebird75 Sep 11, 2021
04193ae
Add mypy verifications of all qflags tests (and switch to Path API)
bluebird75 Sep 11, 2021
78c599c
Accelerate mypy execution by grouping all qflags test files
bluebird75 Sep 11, 2021
8cfe737
Merge branch 'all-qflags' of https://github.com/bluebird75/PyQt5-stub…
bluebird75 Sep 11, 2021
b5fd4d2
Do not run mypy on test_stubs.py but on other files.
bluebird75 Sep 11, 2021
50d2170
Check that qflag class inherits from sip.simplewrapper
bluebird75 Sep 11, 2021
c3222a5
Ensure filename part does not start with test_
bluebird75 Sep 11, 2021
a88673c
QFlag operations for QStyle.State, QStyle.StateFlag in module QtWidgets
bluebird75 Sep 11, 2021
7b0ba49
Add ability to help finding the right class
bluebird75 Sep 13, 2021
207b460
Add changelog entry for qflags stubs
bluebird75 Sep 13, 2021
ba6eb2c
Adjust template to support more QFlag implementations
bluebird75 Sep 14, 2021
a8ef769
Support more QFlag behaviors
bluebird75 Sep 14, 2021
022c977
QFlag operations for QImageIOHandler.Transformations, QImageIOHandler…
bluebird75 Sep 15, 2021
bb7359c
QFlag operations for QTouchEvent.TouchPoint.InfoFlags, QTouchEvent.To…
bluebird75 Sep 15, 2021
6d88158
Generates test file and method according to QFlag behavior
bluebird75 Sep 15, 2021
4f31854
QFlag operations for QNetworkProxy.Capabilities, QNetworkProxy.Capabi…
bluebird75 Sep 17, 2021
50247b1
QFlag operations for QDBusConnection.RegisterOptions, QDBusConnection…
bluebird75 Sep 17, 2021
d88f8c7
QFlag operations for QDBusServiceWatcher.WatchMode, QDBusServiceWatch…
bluebird75 Sep 17, 2021
c54b8a1
QFlag operations for QFileDevice.FileHandleFlags, QFileDevice.FileHan…
bluebird75 Sep 17, 2021
169c3ff
QFlag operations for Qt.ApplicationStates, Qt.ApplicationState in mod…
bluebird75 Sep 17, 2021
7d5b471
QFlag operations for Qt.FindChildOptions, Qt.FindChildOption in modul…
bluebird75 Sep 17, 2021
9867de5
QFlag operations for QUrl.UserInputResolutionOptions, QUrl.UserInputR…
bluebird75 Sep 17, 2021
f18082c
QFlag operations for QNetworkConfiguration.StateFlags, QNetworkConfig…
bluebird75 Sep 17, 2021
fae94de
QFlag operations for QNetworkSession.UsagePolicies, QNetworkSession.U…
bluebird75 Sep 17, 2021
037ed19
QFlag operations for QPaintEngine.DirtyFlags, QPaintEngine.DirtyFlag …
bluebird75 Sep 17, 2021
0eab567
QFlag operations for QPainter.PixmapFragmentHints, QPainter.PixmapFra…
bluebird75 Sep 17, 2021
df0d117
QFlag operations for QGlyphRun.GlyphRunFlags, QGlyphRun.GlyphRunFlag …
bluebird75 Sep 17, 2021
fb6ac6f
QFlag operations for QTextDocument.MarkdownFeatures, QTextDocument.Ma…
bluebird75 Sep 17, 2021
2baa9c7
QFlag operations for QLocale.DataSizeFormats, QLocale.DataSizeFormat …
bluebird75 Sep 17, 2021
5a34c9b
QFlag operations for QAbstractPrintDialog.PrintDialogOptions, QAbstra…
bluebird75 Sep 17, 2021
b0ca33b
QFlag operations for QPinchGesture.ChangeFlags, QPinchGesture.ChangeF…
bluebird75 Sep 17, 2021
953fe00
QFlag operations for QStyleOptionTab.TabFeatures, QStyleOptionTab.Tab…
bluebird75 Sep 17, 2021
59bca99
Fix dataclass incorrectly declared
bluebird75 Sep 18, 2021
dd2e406
wip: test file regeneration
bluebird75 Sep 18, 2021
0c805f3
QFlag operations for QDialogButtonBox.StandardButtons, QDialogButtonB…
bluebird75 Sep 18, 2021
b2512c7
Use a low value 1 for testing QFlag conversion from value
bluebird75 Nov 11, 2021
6e78b72
Result of processing the grep results. Basis for processing flags.
bluebird75 Nov 11, 2021
e482758
Regenerate grep results
bluebird75 Nov 11, 2021
1cabba9
Fix and improve grep results analysis
bluebird75 Nov 11, 2021
b69eba6
Better handling of missing expected attributes in classes
bluebird75 Nov 11, 2021
bc1ce9a
Improved grep results
bluebird75 Nov 11, 2021
9484b71
Fix typo
bluebird75 Nov 11, 2021
d8116ea
QFlag operations for QOpenGLDebugMessage.Types, QOpenGLDebugMessage.T…
bluebird75 Nov 11, 2021
93b8ff7
QFlag operations for QLocalServer.SocketOptions, QLocalServer.SocketO…
bluebird75 Nov 12, 2021
6c64e76
QFlag operations for QGraphicsView.CacheMode, QGraphicsView.CacheMode…
bluebird75 Nov 12, 2021
e0f4ac1
QFlag operations for QUrl.FormattingOptions, QUrl.UrlFormattingOption…
bluebird75 Nov 12, 2021
b622b9f
Add qflag support for CheckIndexOption in QtCore
bluebird75 Nov 12, 2021
f60e5d1
README clarifications
bluebird75 Nov 12, 2021
8518722
Add result of our processing for history archiving
bluebird75 Nov 12, 2021
93b2fe0
Message when we are finished
bluebird75 Nov 12, 2021
d2b14c9
QFlag operations for QAbstractItemModel.CheckIndexOptions, QAbstractI…
bluebird75 Nov 12, 2021
1df6e54
Notify when everything is finished.
bluebird75 Nov 12, 2021
9169b50
Merge remote-tracking branch 'bluebird75/patch-2' into all-qflags-phil
bluebird75 Nov 12, 2021
cab1654
Merge branch 'all-qflags-phil' into all-qflags
bluebird75 Nov 12, 2021
50f769f
Add proper type: ignore[override] where needed
bluebird75 Nov 12, 2021
6223e88
Remove __or__ and __ror__ for enum class
bluebird75 Nov 13, 2021
b3cebd5
Remove __or__ and __ror__ where int base class already does the job.
bluebird75 Nov 13, 2021
5d2e242
Tell mypy to ignore unreachable code.
bluebird75 Nov 13, 2021
82b4a78
Int compatible enum do not need any changes.
bluebird75 Nov 13, 2021
79b9c36
Prevent mypy from reporting unreachable code (by design)
bluebird75 Nov 13, 2021
49c24d6
Regnerate test files to support Python 3.6 - 3.10
bluebird75 Nov 13, 2021
3bf959c
Regnerate test files to support Python 3.6 - 3.10
bluebird75 Nov 13, 2021
4e38eeb
Merge branch 'master' into all-qflags
bluebird75 Dec 7, 2021
5146d68
Update tests/test_stubs.py
bluebird75 Dec 15, 2021
e048028
Use triple quotes for docstrings
bluebird75 Dec 15, 2021
c086de2
Update tests/test_stubs.py
bluebird75 Dec 15, 2021
f93442b
Update tests/test_stubs.py
bluebird75 Dec 15, 2021
3d24115
Update tests/test_stubs.py
bluebird75 Dec 15, 2021
f53eb62
Use os.fspath instead of str()
bluebird75 Dec 15, 2021
7a41588
Typo
bluebird75 Dec 15, 2021
8234819
Improve style: use """ instead of ''', better use of Path, ...
bluebird75 Dec 15, 2021
52f70a9
Merge remote-tracking branch 'bluebird75/all-qflags' into all-qflags
bluebird75 Dec 15, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
* [#175](https://github.com/python-qt-tools/PyQt5-stubs/pull/175) catch up PyQtNetworkAuth with the 5.15.4 release
* [#149](https://github.com/python-qt-tools/PyQt5-stubs/pull/149) update to PyQt5 5.15.4
* [#138](https://github.com/python-qt-tools/PyQt5-stubs/pull/138) update to PyQt5 5.15.3
* [#145](https://github.com/python-qt-tools/PyQt5-stubs/pull/145) Support all implemented arithmetic operations between Qt.WindowType and Qt.WindowFlags and int
* [#144](https://github.com/python-qt-tools/PyQt5-stubs/pull/144) add `QTreeWidgetItem.__lt__()` to allow sorting of items in a QTreeWidget
* [#143](https://github.com/python-qt-tools/PyQt5-stubs/pull/143) make `bytes(QByteArray())` valid by incorrectly adding `.__bytes__()` until a proper solution is developed upstream
* [#152](https://github.com/python-qt-tools/PyQt5-stubs/pull/152) add `.__or__()` for `QDialogButtonBox.StandardButton` and `QDialogButtonBox.StandardButtons`
* [#156](https://github.com/python-qt-tools/PyQt5-stubs/pull/156) add operators to `QSize` and `QSizeF`
* [#153](https://github.com/python-qt-tools/PyQt5-stubs/pull/153) Support all implemented arithmetic operations for QFlags
based classes in modules QtCore, QtWidgets, QtGui, QtNetwork, QtDBus, QtOpenGL, QtPrintsupport, QtSql, QtTest, QtXml

## 5.15.2.0

Expand Down
493 changes: 482 additions & 11 deletions PyQt5-stubs/QtCore.pyi

Large diffs are not rendered by default.

33 changes: 33 additions & 0 deletions PyQt5-stubs/QtDBus.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ class QDBus(sip.simplewrapper):
class QDBusConnection(sip.simplewrapper):

class ConnectionCapability(int):
def __or__ (self, other: 'QDBusConnection.ConnectionCapability') -> 'QDBusConnection.ConnectionCapabilities': ... # type: ignore[override]
def __ror__ (self, other: int) -> 'QDBusConnection.ConnectionCapabilities': ... # type: ignore[override, misc]

UnixFileDescriptorPassing = ... # type: QDBusConnection.ConnectionCapability

UnixFileDescriptorPassing = ... # type: QDBusConnection.ConnectionCapability
Expand All @@ -118,6 +121,9 @@ class QDBusConnection(sip.simplewrapper):
UnregisterTree = ... # type: QDBusConnection.UnregisterMode

class RegisterOption(int):
def __or__ (self, other: typing.Union[int, 'QDBusConnection.RegisterOption']) -> 'QDBusConnection.RegisterOptions': ... # type: ignore[override]
def __ror__ (self, other: int) -> 'QDBusConnection.RegisterOptions': ... # type: ignore[override, misc]

ExportAdaptors = ... # type: QDBusConnection.RegisterOption
ExportScriptableSlots = ... # type: QDBusConnection.RegisterOption
ExportScriptableSignals = ... # type: QDBusConnection.RegisterOption
Expand Down Expand Up @@ -173,12 +179,20 @@ class QDBusConnection(sip.simplewrapper):
def __init__(self, f: typing.Union['QDBusConnection.RegisterOptions', 'QDBusConnection.RegisterOption']) -> None: ...
@typing.overload
def __init__(self, a0: 'QDBusConnection.RegisterOptions') -> None: ...
@typing.overload
def __init__(self, f: int) -> None: ...

def __hash__(self) -> int: ...
def __bool__(self) -> int: ...
def __invert__(self) -> 'QDBusConnection.RegisterOptions': ...
def __index__(self) -> int: ...
def __int__(self) -> int: ...
def __or__ (self, other: typing.Union['QDBusConnection.RegisterOptions', 'QDBusConnection.RegisterOption', int]) -> 'QDBusConnection.RegisterOptions': ...
def __and__(self, other: typing.Union['QDBusConnection.RegisterOptions', 'QDBusConnection.RegisterOption', int]) -> 'QDBusConnection.RegisterOptions': ...
def __xor__(self, other: typing.Union['QDBusConnection.RegisterOptions', 'QDBusConnection.RegisterOption', int]) -> 'QDBusConnection.RegisterOptions': ...
def __ror__ (self, other: 'QDBusConnection.RegisterOption') -> 'QDBusConnection.RegisterOptions': ...
def __rand__(self, other: 'QDBusConnection.RegisterOption') -> 'QDBusConnection.RegisterOptions': ...
def __rxor__(self, other: 'QDBusConnection.RegisterOption') -> 'QDBusConnection.RegisterOptions': ...

class ConnectionCapabilities(sip.simplewrapper):

Expand All @@ -188,12 +202,20 @@ class QDBusConnection(sip.simplewrapper):
def __init__(self, f: typing.Union['QDBusConnection.ConnectionCapabilities', 'QDBusConnection.ConnectionCapability']) -> None: ...
@typing.overload
def __init__(self, a0: 'QDBusConnection.ConnectionCapabilities') -> None: ...
@typing.overload
def __init__(self, f: int) -> None: ...

def __hash__(self) -> int: ...
def __bool__(self) -> int: ...
def __invert__(self) -> 'QDBusConnection.ConnectionCapabilities': ...
def __index__(self) -> int: ...
def __int__(self) -> int: ...
def __or__ (self, other: typing.Union['QDBusConnection.ConnectionCapabilities', 'QDBusConnection.ConnectionCapability', int]) -> 'QDBusConnection.ConnectionCapabilities': ...
def __and__(self, other: typing.Union['QDBusConnection.ConnectionCapabilities', 'QDBusConnection.ConnectionCapability', int]) -> 'QDBusConnection.ConnectionCapabilities': ...
def __xor__(self, other: typing.Union['QDBusConnection.ConnectionCapabilities', 'QDBusConnection.ConnectionCapability', int]) -> 'QDBusConnection.ConnectionCapabilities': ...
def __ror__ (self, other: 'QDBusConnection.ConnectionCapability') -> 'QDBusConnection.ConnectionCapabilities': ...
def __rand__(self, other: 'QDBusConnection.ConnectionCapability') -> 'QDBusConnection.ConnectionCapabilities': ...
def __rxor__(self, other: 'QDBusConnection.ConnectionCapability') -> 'QDBusConnection.ConnectionCapabilities': ...

@typing.overload
def __init__(self, name: str) -> None: ...
Expand Down Expand Up @@ -506,6 +528,9 @@ class QDBusPendingCallWatcher(QtCore.QObject, QDBusPendingCall):
class QDBusServiceWatcher(QtCore.QObject):

class WatchModeFlag(int):
def __or__ (self, other: typing.Union[int, 'QDBusServiceWatcher.WatchModeFlag']) -> 'QDBusServiceWatcher.WatchMode': ... # type: ignore[override]
def __ror__ (self, other: int) -> 'QDBusServiceWatcher.WatchMode': ... # type: ignore[override, misc]

WatchForRegistration = ... # type: QDBusServiceWatcher.WatchModeFlag
WatchForUnregistration = ... # type: QDBusServiceWatcher.WatchModeFlag
WatchForOwnerChange = ... # type: QDBusServiceWatcher.WatchModeFlag
Expand All @@ -522,12 +547,20 @@ class QDBusServiceWatcher(QtCore.QObject):
def __init__(self, f: typing.Union['QDBusServiceWatcher.WatchMode', 'QDBusServiceWatcher.WatchModeFlag']) -> None: ...
@typing.overload
def __init__(self, a0: 'QDBusServiceWatcher.WatchMode') -> None: ...
@typing.overload
def __init__(self, f: int) -> None: ...

def __hash__(self) -> int: ...
def __bool__(self) -> int: ...
def __invert__(self) -> 'QDBusServiceWatcher.WatchMode': ...
def __index__(self) -> int: ...
def __int__(self) -> int: ...
def __or__ (self, other: typing.Union['QDBusServiceWatcher.WatchMode', 'QDBusServiceWatcher.WatchModeFlag', int]) -> 'QDBusServiceWatcher.WatchMode': ...
def __and__(self, other: typing.Union['QDBusServiceWatcher.WatchMode', 'QDBusServiceWatcher.WatchModeFlag', int]) -> 'QDBusServiceWatcher.WatchMode': ...
def __xor__(self, other: typing.Union['QDBusServiceWatcher.WatchMode', 'QDBusServiceWatcher.WatchModeFlag', int]) -> 'QDBusServiceWatcher.WatchMode': ...
def __ror__ (self, other: 'QDBusServiceWatcher.WatchModeFlag') -> 'QDBusServiceWatcher.WatchMode': ...
def __rand__(self, other: 'QDBusServiceWatcher.WatchModeFlag') -> 'QDBusServiceWatcher.WatchMode': ...
def __rxor__(self, other: 'QDBusServiceWatcher.WatchModeFlag') -> 'QDBusServiceWatcher.WatchMode': ...

@typing.overload
def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
Expand Down
Loading