Skip to content

Commit 5b7ca64

Browse files
authored
Merge pull request #371 from chadrik/pyi-stubs
Add pyi stubs that redirect to PySide2
2 parents 9dbae3d + edb68ce commit 5b7ca64

36 files changed

+77
-0
lines changed

Qt-stubs/Qt.pyi

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
from .QtCore import *
2+
from .QtDBus import *
3+
from .QtGui import * # type: ignore[misc] # Incompatible import of "Qt" (imported name has type "Type[Qt.QtGui.Qt]", local name has type "Type[Qt.QtCore.Qt]")
4+
from .QtNetwork import *
5+
from .QtQml import *
6+
from .QtWidgets import *
7+
from .QtXml import *
8+
from .QtOpenGL import *
9+
from .QtPrintSupport import *
10+
from .QtQuick import *
11+
from .QtSql import *
12+
from .QtSvg import *
13+
from .QtTest import *
14+
from .QtX11Extras import *
15+
from .QtQuickWidgets import *
16+
17+
__binding__: str

Qt-stubs/QtBluetooth.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from PySide2.QtBluetooth import *

Qt-stubs/QtCompat.pyi

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import typing
2+
3+
from . import QtWidgets
4+
5+
6+
class QHeaderView:
7+
@typing.overload
8+
@staticmethod
9+
def setSectionResizeMode(header: QtWidgets.QHeaderView, logicalIndex: int, mode: QtWidgets.QHeaderView.ResizeMode) -> None: ...
10+
@typing.overload
11+
@staticmethod
12+
def setSectionResizeMode(header: QtWidgets.QHeaderView, mode: QtWidgets.QHeaderView.ResizeMode) -> None: ...
13+
14+
def translate(context: str, sourceText: str, *args: typing.Any) -> str: ...

Qt-stubs/QtCore.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from PySide2.QtCore import *

Qt-stubs/QtDBus.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from PySide2.QtDBus import *

Qt-stubs/QtDesigner.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from PySide2.QtDesigner import *

Qt-stubs/QtGui.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from PySide2.QtGui import *

Qt-stubs/QtHelp.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from PySide2.QtHelp import *

Qt-stubs/QtLocation.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from PySide2.QtLocation import *

Qt-stubs/QtMultimedia.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from PySide2.QtMultimedia import *

0 commit comments

Comments
 (0)