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

Commit cd7e8b2

Browse files
committed
another small fixes
1 parent 1f3641d commit cd7e8b2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

numba_typing/type_annotation.py renamed to numba_typing/type_annotations.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ def get_func_annotations(func):
99
defaults = {}
1010

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

1515
annotations[name] = param.annotation
16-
if (param.default != sig.empty):
16+
if param.default != sig.empty:
1717
defaults[name] = param.default
1818

1919
return annotations, defaults
@@ -25,7 +25,7 @@ def get_cls_annotations(cls):
2525

2626

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

3131
print(get_func_annotations(foo))

0 commit comments

Comments
 (0)