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

Commit aba8d0b

Browse files
committed
fix comment
1 parent 33ca0f8 commit aba8d0b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

numba_typing/tests/test_type_annotations.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ def func_three(a: Dict[int, str], b: str = "string", c: int = 1):
4646
with self.subTest(func=f.__name__):
4747
self.assertEqual(type_annotations.get_func_annotations(f), expected)
4848

49-
def test_expend_annotations(self):
49+
def test_product_annotations(self):
5050

5151
S = TypeVar('S', float, str)
52-
info = ({'a': [int], 'b': [int, float], 'c': [S]}, {})
53-
result = type_annotations.expend_annotations(info)
52+
annotations = ({'a': [int], 'b': [int, float], 'c': [S]}, {})
53+
result = type_annotations.product_annotations(annotations)
5454
expected = [[{'a': int, 'b': int, 'c': float}, {}],
5555
[{'a': int, 'b': int, 'c': str}, {}],
5656
[{'a': int, 'b': float, 'c': float}, {}],

numba_typing/type_annotations.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ def get_annotation_types(annotation):
4040
return [annotation, ]
4141

4242

43-
def expend_annotations(info):
43+
def product_annotations(annotations):
4444
"""Get all variants of annotations."""
45-
annot = info[0]
46-
vals = info[1]
45+
annot = annotations[0]
46+
vals = annotations[1]
4747
list_of_annot = list(product(*annot.values()))
4848
tvs = {}
4949
tvs_unique = {}

0 commit comments

Comments
 (0)