Skip to content

Commit

Permalink
expand signatures in sjit
Browse files Browse the repository at this point in the history
  • Loading branch information
s-m-e committed Dec 29, 2023
1 parent 11ff8df commit 3baa744
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/hapsira/core/jit.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,9 @@ def sjit(*args, **kwargs) -> Callable:
else:
pass

if len(args) > 0 and isinstance(args[0], str):
args = _parse_signatures(args[0]), *args[1:]

def wrapper(inner_func: Callable) -> Callable:
"""
Applies JIT
Expand Down

0 comments on commit 3baa744

Please sign in to comment.