Skip to content

Commit a87937d

Browse files
committed
Bump to 1.0.7
- Fixed check for callable type
1 parent 7a42cf3 commit a87937d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

QNotifications/QNotification.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def fadeOut(self, finishedCallback, duration):
155155
if the wrong datatype is specified for any of the parameters.
156156
"""
157157

158-
if not isinstance(finishedCallback, callable):
158+
if not callable(finishedCallback):
159159
raise TypeError("finishedCallback should be a callable")
160160
if type(duration) != int:
161161
raise TypeError("duration should be an integer")

QNotifications/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
You should have received a copy of the GPLv3 License
1818
along with this module.>.
1919
"""
20-
__version__ = "1.0.6"
20+
__version__ = "1.0.7"
2121
__author__ = "Daniel Schreij (dschreij@gmail.com)"
2222

2323
# Do some base imports

0 commit comments

Comments
 (0)