Details
-
Bug
-
Resolution: Won't Do
-
P4: Low
-
5.14.1
-
None
Description
If I have a QObject like this:
class Example(QObject):
connectChanged = Signal()
def connect(self, url) -> None:
pass
def disconnect(self) -> None:
pass
I can't do something like:
self._example = Example(self) # DOES NOT WORK: tries to call Example.connect()/disconnect() self._example.connectChanged.connect(self.on_example_connectChanged) self._example.connectChanged.disconnect(self.on_example_connectChanged)
It seems to call object connect/disconnect instead of the signal ones.
>>> self._example.connectChanged.connect(self.on_example_connectChanged) TypeError: connect() takes 2 positional arguments but 4 were given