support user def function

pull/105/head
wakamezake 2023-07-12 21:27:10 +09:00
parent 625126b7f3
commit 013bf211b7
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@
# SOFTWARE.
# -----------------------------------------------------------------------------
from inspect import isroutine
from types import FunctionType, LambdaType
from typing import Callable, List, Tuple, Union
@ -86,7 +86,7 @@ def aggregation(
pass
elif isinstance(agg_method, FunctionType):
pass
elif isinstance(agg_method, Callable):
elif isroutine(agg_method):
pass
else:
raise ValueError('Supported types are: {} or {}.'