Skip to content

Commit b932c30

Browse files
committed
chore: remove type hints
1 parent 9e7996d commit b932c30

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/optimagic/parameters/tree_registry.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def _unflatten_df(aux_data, leaves, data_col):
140140
return out
141141

142142

143-
def _flatten_series(series: pd.Series):
143+
def _flatten_series(series):
144144
return (
145145
series.tolist(),
146146
{"index": series.index, "name": series.name},
@@ -152,7 +152,7 @@ def _unflatten_series(aux_data, leaves):
152152
return pd.Series(leaves, **aux_data)
153153

154154

155-
def _flatten_ndarray(arr: np.ndarray):
155+
def _flatten_ndarray(arr):
156156
return arr.flatten().tolist(), arr.shape, _array_element_names(arr)
157157

158158

@@ -162,7 +162,7 @@ def _unflatten_ndarray(aux_data, leaves):
162162

163163
if _has_jax:
164164

165-
def _flatten_jax_array(arr: jnp.ndarray):
165+
def _flatten_jax_array(arr):
166166
return arr.flatten().tolist(), arr.shape, _array_element_names(arr)
167167

168168
def _unflatten_jax_array(aux_data, leaves):

0 commit comments

Comments
 (0)