Skip to content

Commit 39512a5

Browse files
committed
fixup! Store argument names in EvalFunction for documentation
1 parent 5d6b8d8 commit 39512a5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

beanquery/query_compile.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,7 @@ class EvalFunction(EvalNode):
413413
__outtype__: Output type of the function. None means no type
414414
annotation. To annotate that the function returns None, use
415415
types.NoneType.
416+
__param_names__: List of argument names.
416417
"""
417418
__slots__ = ('operands',)
418419

@@ -422,6 +423,9 @@ class EvalFunction(EvalNode):
422423
# Output type annotation
423424
__outtype__ = None
424425

426+
# Input argument names for documentation.
427+
__param_names__ = []
428+
425429
def __init__(self, context, operands, dtype):
426430
super().__init__(dtype)
427431
self.context = context

0 commit comments

Comments
 (0)