Skip to content

Commit dcbcd42

Browse files
committed
Add IsPySide6 and IsPyQt6 to type stubs
Add QtCompat to __all__
1 parent f09c5c2 commit dcbcd42

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Qt-stubs/__init__.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
__binding__: str
22
__qt_version__: str
3+
IsPyQt6: bool
34
IsPyQt5: bool
45
IsPyQt4: bool
56
IsPySide: bool
67
IsPySide2: bool
8+
IsPySide6: bool
79

810
QT_VERBOSE: bool
911
QT_PREFERRED_BINDING: str

Qt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
__version__ = "1.4.7"
5252

5353
# Enable support for `from Qt import *`
54-
__all__ = []
54+
__all__ = ["QtCompat"]
5555

5656
# Flags from environment variables
5757
QT_VERBOSE = bool(os.getenv("QT_VERBOSE"))

0 commit comments

Comments
 (0)