Skip to content

Commit ca240b5

Browse files
committed
chore: remove duplicate imports
1 parent d3edeed commit ca240b5

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/optimagic/parameters/tree_registry.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Wrapper around optree to tailor it to optimagic."""
22

3-
import itertools
43
from functools import partial
54
from itertools import product
65

@@ -165,7 +164,7 @@ def _index_element_to_string(element):
165164

166165
def _array_element_names(arr):
167166
dim_names = [map(str, range(n)) for n in arr.shape]
168-
names = list(map("_".join, itertools.product(*dim_names)))
167+
names = list(map("_".join, product(*dim_names)))
169168
return names
170169

171170

0 commit comments

Comments
 (0)