Skip to content

Commit

Permalink
Merge pull request python-qt-tools#103 from altendky/pyqtBoundSignal_…
Browse files Browse the repository at this point in the history
…disconnect_optional

`pyqtBoundSignal.disconnect()`'s `slot` parameter is optional
  • Loading branch information
altendky committed Oct 4, 2020
2 parents 9b5e9e4 + 4f1f73f commit 4dc81d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -15,6 +15,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
* [#103](https://github.com/stlehmann/PyQt5-stubs/pull/103) `pyqtBoundSignal.disconnect()`'s `slot` parameter is optional
* [#100](https://github.com/stlehmann/PyQt5-stubs/pull/100) fill generic parameter as `sip.array[int]` for QtDataVisualization textures
* [#92](https://github.com/stlehmann/PyQt5-stubs/pull/92) remove self from `qDefaultSurfaceFormat()` and `qIdForNode()`
* [#83](https://github.com/stlehmann/PyQt5-stubs/pull/83) fixes `sip.array` to be generic
Expand Down
5 changes: 4 additions & 1 deletion PyQt5-stubs/QtCore.pyi
Expand Up @@ -35,7 +35,10 @@ class pyqtBoundSignal:

def emit(self, *args: typing.Any) -> None: ...
def connect(self, slot: "PYQT_SLOT") -> "QMetaObject.Connection": ...
def disconnect(self, slot: typing.Union["PYQT_SLOT", "QMetaObject.Connection"]=None) -> None: ...
@typing.overload
def disconnect(self) -> None: ...
@typing.overload
def disconnect(self, slot: typing.Union["PYQT_SLOT", "QMetaObject.Connection"]) -> None: ...


class pyqtSignal:
Expand Down

0 comments on commit 4dc81d3

Please sign in to comment.