Skip to content

Commit

Permalink
Merge pull request #126 from stlehmann/altendky-patch-3
Browse files Browse the repository at this point in the history
QtCore.QCoreApplication.instance() may return None
  • Loading branch information
altendky committed Dec 31, 2020
2 parents e9a2f2d + fd2e1e6 commit 6630551
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -16,6 +16,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
* [#51](https://github.com/stlehmann/PyQt5-stubs/pull/51) adds `pyqtBoundSignal.signal` hinted as `str`

### Changed
* [#126](https://github.com/stlehmann/PyQt5-stubs/pull/126) fix `QCoreApplication.instance()` return type to be optional
* [#102](https://github.com/stlehmann/PyQt5-stubs/pull/102) fix `pyqtSlot` parameter typing and overloads
* [#104](https://github.com/stlehmann/PyQt5-stubs/pull/104) `sip.voidptr` handles integer values and sequences and takes `self`
* [#103](https://github.com/stlehmann/PyQt5-stubs/pull/103) `pyqtBoundSignal.disconnect()`'s `slot` parameter is optional
Expand Down
2 changes: 1 addition & 1 deletion PyQt5-stubs/QtCore.pyi
Expand Up @@ -3020,7 +3020,7 @@ class QCoreApplication(QObject):
@staticmethod
def exec_() -> int: ...
@staticmethod
def instance() -> 'QCoreApplication': ...
def instance() -> typing.Optional['QCoreApplication']: ...
@staticmethod
def arguments() -> typing.List[str]: ...
@staticmethod
Expand Down

0 comments on commit 6630551

Please sign in to comment.