Skip to content

Commit

Permalink
Merge pull request #4 from Diogo-Rossi/add-missing-tests
Browse files Browse the repository at this point in the history
Add missing tests
  • Loading branch information
bluebird75 authored Jul 26, 2023
2 parents 94f424c + 64cf838 commit 07b4311
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/signal_slot.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import typing

from PySide2.QtCore import Signal, QObject
from PySide2.QtCore import Signal, QObject, SIGNAL


class SomeClassWithSignal(QObject):
Expand All @@ -10,6 +10,7 @@ class SomeClassWithSignal(QObject):

def __init__(self) -> None:
super().__init__() # note: this is mandatory for mypy to pickup the class attribute access
self.connect(self,SIGNAL('clicked()'),self.my_slot_no_arg)

def my_slot_no_arg(self) -> None:
pass
Expand Down
7 changes: 7 additions & 0 deletions tests/slotInsideClass.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from PySide2.QtCore import Slot, QObject

class SomeClass(QObject):

@Slot(str)
def someMethod(self, stra):
...

0 comments on commit 07b4311

Please sign in to comment.