Skip to content
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ jobs:
- name: Linux
runs-on: ubuntu-latest
tox: linux
- name: macOS
runs-on: macos-latest
tox: macos
- name: Windows
runs-on: windows-latest
tox: windows
Expand Down
121 changes: 121 additions & 0 deletions PyQt5-stubs/QtCore.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -12850,6 +12850,127 @@ class QSysInfo(sip.simplewrapper):
@staticmethod
def windowsVersion() -> 'QSysInfo.WinVersion': ...

if sys.platform == "darwin":
class MacVersion(int):
MV_10_0 = ... # type: int
MV_10_1 = ... # type: int
MV_10_10 = ... # type: int
MV_10_11 = ... # type: int
MV_10_12 = ... # type: int
MV_10_2 = ... # type: int
MV_10_3 = ... # type: int
MV_10_4 = ... # type: int
MV_10_5 = ... # type: int
MV_10_6 = ... # type: int
MV_10_7 = ... # type: int
MV_10_8 = ... # type: int
MV_10_9 = ... # type: int
MV_9 = ... # type: int
MV_CHEETAH = ... # type: int
MV_ELCAPITAN = ... # type: int
MV_IOS = ... # type: int
MV_IOS_10_0 = ... # type: int
MV_IOS_4_3 = ... # type: int
MV_IOS_5_0 = ... # type: int
MV_IOS_5_1 = ... # type: int
MV_IOS_6_0 = ... # type: int
MV_IOS_6_1 = ... # type: int
MV_IOS_7_0 = ... # type: int
MV_IOS_7_1 = ... # type: int
MV_IOS_8_0 = ... # type: int
MV_IOS_8_1 = ... # type: int
MV_IOS_8_2 = ... # type: int
MV_IOS_8_3 = ... # type: int
MV_IOS_8_4 = ... # type: int
MV_IOS_9_0 = ... # type: int
MV_IOS_9_1 = ... # type: int
MV_IOS_9_2 = ... # type: int
MV_IOS_9_3 = ... # type: int
MV_JAGUAR = ... # type: int
MV_LEOPARD = ... # type: int
MV_LION = ... # type: int
MV_MAVERICKS = ... # type: int
MV_MOUNTAINLION = ... # type: int
MV_PANTHER = ... # type: int
MV_PUMA = ... # type: int
MV_SIERRA = ... # type: int
MV_SNOWLEOPARD = ... # type: int
MV_TIGER = ... # type: int
MV_TVOS = ... # type: int
MV_TVOS_10_0 = ... # type: int
MV_TVOS_9_0 = ... # type: int
MV_TVOS_9_1 = ... # type: int
MV_TVOS_9_2 = ... # type: int
MV_Unknown = ... # type: int
MV_WATCHOS = ... # type: int
MV_WATCHOS_2_0 = ... # type: int
MV_WATCHOS_2_1 = ... # type: int
MV_WATCHOS_2_2 = ... # type: int
MV_WATCHOS_3_0 = ... # type: int
MV_YOSEMITE = ... # type: int

MV_10_0 = ... # type: int
MV_10_1 = ... # type: int
MV_10_10 = ... # type: int
MV_10_11 = ... # type: int
MV_10_12 = ... # type: int
MV_10_2 = ... # type: int
MV_10_3 = ... # type: int
MV_10_4 = ... # type: int
MV_10_5 = ... # type: int
MV_10_6 = ... # type: int
MV_10_7 = ... # type: int
MV_10_8 = ... # type: int
MV_10_9 = ... # type: int
MV_9 = ... # type: int
MV_CHEETAH = ... # type: int
MV_ELCAPITAN = ... # type: int
MV_IOS = ... # type: int
MV_IOS_10_0 = ... # type: int
MV_IOS_4_3 = ... # type: int
MV_IOS_5_0 = ... # type: int
MV_IOS_5_1 = ... # type: int
MV_IOS_6_0 = ... # type: int
MV_IOS_6_1 = ... # type: int
MV_IOS_7_0 = ... # type: int
MV_IOS_7_1 = ... # type: int
MV_IOS_8_0 = ... # type: int
MV_IOS_8_1 = ... # type: int
MV_IOS_8_2 = ... # type: int
MV_IOS_8_3 = ... # type: int
MV_IOS_8_4 = ... # type: int
MV_IOS_9_0 = ... # type: int
MV_IOS_9_1 = ... # type: int
MV_IOS_9_2 = ... # type: int
MV_IOS_9_3 = ... # type: int
MV_JAGUAR = ... # type: int
MV_LEOPARD = ... # type: int
MV_LION = ... # type: int
MV_MAVERICKS = ... # type: int
MV_MOUNTAINLION = ... # type: int
MV_PANTHER = ... # type: int
MV_PUMA = ... # type: int
MV_SIERRA = ... # type: int
MV_SNOWLEOPARD = ... # type: int
MV_TIGER = ... # type: int
MV_TVOS = ... # type: int
MV_TVOS_10_0 = ... # type: int
MV_TVOS_9_0 = ... # type: int
MV_TVOS_9_1 = ... # type: int
MV_TVOS_9_2 = ... # type: int
MV_Unknown = ... # type: int
MV_WATCHOS = ... # type: int
MV_WATCHOS_2_0 = ... # type: int
MV_WATCHOS_2_1 = ... # type: int
MV_WATCHOS_2_2 = ... # type: int
MV_WATCHOS_3_0 = ... # type: int
MV_YOSEMITE = ... # type: int

MacintoshVersion = ... # type: QSysInfo.MacVersion

@staticmethod
def macVersion() -> 'QSysInfo.MacVersion': ...

@typing.overload
def __init__(self) -> None: ...
@typing.overload
Expand Down
7 changes: 7 additions & 0 deletions stubtest.allowlist.macos
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Linux only
PyQt5.QtX11Extras

# To review
PyQt5.QtGui.QDrag.cancel
PyQt5.QtWidgets.QMacCocoaViewContainer
PyQt5.QtWidgets.QMenu.setAsDockMenu
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ envlist = py3{6,7,8,9,10}-{windows,linux}
deps =
pip>=20.0
setenv:
windows: OS_MARKER = windows
linux: OS_MARKER = linux
macos: OS_MARKER = macos
windows: OS_MARKER = windows
extras =
dev
commands =
Expand Down