79455962

Date: 2025-02-20 22:25:12
Score: 1
Natty:
Report link

As another option you can add a type hint to the event and trick it into being a pyqtBoundSignal that has the connect and emit defs

from typing import TYPE_CHECKING
if TYPE_CHECKING:
    from PyQt6.QtCore import pyqtBoundSignal

someEvent = pyqtSignal(args)  # type: pyqtBoundSignal
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Justin Davis