Skip to content

Commit

Permalink
refactor for loop to make it shorter
Browse files Browse the repository at this point in the history
As title.
  • Loading branch information
esc committed Jan 15, 2020
1 parent 000d684 commit 3284d11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions numba/tests/test_typedlist.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@

# global typed-list for testing purposes
global_typed_list = List.empty_list(int32)
for i in (int32(1), int32(2), int32(3)):
global_typed_list.append(i)
for i in (1, 2, 3):
global_typed_list.append(int32(i))


def to_tl(l):
Expand Down

0 comments on commit 3284d11

Please sign in to comment.