Skip to content

Commit 1f698aa

Browse files
committed
Minor inspection
1 parent 1b60884 commit 1f698aa

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/jsonata/jsonata.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def __init__(self, parent):
5050
self.parent = parent
5151
self.is_parallel_call = False
5252

53-
def bind(self, name: str, val: Optional[str]) -> None:
53+
def bind(self, name: str, val: Optional[Any]) -> None:
5454
self.bindings[name] = val
5555
if getattr(val, "signature", None) is not None:
5656
val.signature.set_function_name(name)
@@ -112,7 +112,7 @@ def validate(self, args: Optional[Any], context: Optional[Any]) -> Optional[Any]
112112
#
113113
class JFunction(JFunctionCallable, JFunctionSignatureValidation):
114114
function: 'Jsonata.JFunctionCallable'
115-
signature: Optional[str]
115+
signature: Optional[sig.Signature]
116116
function_name: Optional[str]
117117

118118
def __init__(self, function, signature):

tests/generate.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ def main(args):
3030
for suite in list_suites:
3131

3232
b = io.StringIO()
33-
b.write("import pytest, sys\n")
33+
b.write("import pytest\n")
34+
b.write("import sys\n")
3435
b.write("from tests import jsonata_test\n\n\n")
3536
# Pascal case
3637
cname = ''.join(word.title() for word in suite.name.split('-'))

0 commit comments

Comments
 (0)