We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa2e257 commit 64a0e1cCopy full SHA for 64a0e1c
1 file changed
android_notify/an_utils.py
@@ -0,0 +1,10 @@
1
+"""Collection of useful functions"""
2
+
3
+import inspect
4
+def can_accept_arguments(func, *args, **kwargs):
5
+ try:
6
+ sig = inspect.signature(func)
7
+ sig.bind(*args, **kwargs)
8
+ return True
9
+ except TypeError:
10
+ return False
0 commit comments