File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
15
15
* [ #51 ] ( https://github.com/stlehmann/PyQt5-stubs/pull/51 ) adds ` pyqtBoundSignal.signal ` hinted as ` str `
16
16
17
17
### Changed
18
+ * [ #103 ] ( https://github.com/stlehmann/PyQt5-stubs/pull/103 ) ` pyqtBoundSignal.disconnect() ` 's ` slot ` parameter is optional
18
19
* [ #100 ] ( https://github.com/stlehmann/PyQt5-stubs/pull/100 ) fill generic parameter as ` sip.array[int] ` for QtDataVisualization textures
19
20
* [ #92 ] ( https://github.com/stlehmann/PyQt5-stubs/pull/92 ) remove self from ` qDefaultSurfaceFormat() ` and ` qIdForNode() `
20
21
* [ #83 ] ( https://github.com/stlehmann/PyQt5-stubs/pull/83 ) fixes ` sip.array ` to be generic
Original file line number Diff line number Diff line change @@ -35,7 +35,10 @@ class pyqtBoundSignal:
35
35
36
36
def emit (self , * args : typing .Any ) -> None : ...
37
37
def connect (self , slot : "PYQT_SLOT" ) -> "QMetaObject.Connection" : ...
38
- def disconnect (self , slot : typing .Union ["PYQT_SLOT" , "QMetaObject.Connection" ]= None ) -> None : ...
38
+ @typing .overload
39
+ def disconnect (self ) -> None : ...
40
+ @typing .overload
41
+ def disconnect (self , slot : typing .Union ["PYQT_SLOT" , "QMetaObject.Connection" ]) -> None : ...
39
42
40
43
41
44
class pyqtSignal :
You can’t perform that action at this time.
0 commit comments