@@ -280,13 +280,13 @@ def set_printoptions(precision=None, threshold=None, edgeitems=None,
280
280
281
281
"""
282
282
new_opt = _make_options_dict (precision , threshold , edgeitems , linewidth ,
283
- suppress , nanstr , infstr , sign , formatter ,
284
- floatmode , legacy )
285
- # formatter is always reset
283
+ suppress , nanstr , infstr , sign , formatter ,
284
+ floatmode , legacy )
285
+ # formatter and override_repr are always reset
286
286
new_opt ['formatter' ] = formatter
287
287
new_opt ['override_repr' ] = override_repr
288
288
289
- updated_opt = format_options .get (). copy ()
289
+ updated_opt = format_options .get () | new_opt
290
290
updated_opt .update (new_opt )
291
291
292
292
if updated_opt ['legacy' ] == 113 :
@@ -1450,8 +1450,7 @@ def _void_scalar_to_string(x, is_repr=True):
1450
1450
options = format_options .get ().copy ()
1451
1451
1452
1452
if options ["legacy" ] <= 125 :
1453
- return StructuredVoidFormat .from_data (
1454
- array (x ), ** options )(x )
1453
+ return StructuredVoidFormat .from_data (array (x ), ** options )(x )
1455
1454
1456
1455
if options .get ('formatter' ) is None :
1457
1456
options ['formatter' ] = {}
0 commit comments