Skip to content
This repository was archived by the owner on Feb 2, 2024. It is now read-only.

Commit daf9e88

Browse files
committed
another small fixes
1 parent cd7e8b2 commit daf9e88

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

numba_typing/type_annotations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def get_func_annotations(func):
1010

1111
for name, param in sig.parameters.items():
1212
if param.annotation == sig.empty:
13-
raise SyntaxError('Not found annotation')
13+
raise SyntaxError(f'Not found annotation for parameter {name}')
1414

1515
annotations[name] = param.annotation
1616
if param.default != sig.empty:
@@ -25,7 +25,7 @@ def get_cls_annotations(cls):
2525

2626

2727
if __name__ == '__main__':
28-
def foo(a: int, b: int = 3, **kwargs: str):
28+
def foo(a: int, b: int = 3):
2929
pass
3030

3131
print(get_func_annotations(foo))

0 commit comments

Comments
 (0)