Skip to content

Commit 64a0e1c

Browse files
committed
useful functions box
1 parent fa2e257 commit 64a0e1c

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

android_notify/an_utils.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)