mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-01 23:08:43 +01:00
Fixed typo in _format_field function
This commit is contained in:
committed by
David de la Iglesia Castro
parent
c1cd13c34f
commit
ed6e11e856
+2
-2
@@ -329,8 +329,8 @@ def _format_field(
|
||||
def _format(_val):
|
||||
if isinstance(_val, float) and precision:
|
||||
if round_digits:
|
||||
return round(val, precision)
|
||||
return _normalize_float(val, precision)
|
||||
return round(_val, precision)
|
||||
return _normalize_float(_val, precision)
|
||||
if isinstance(_val, abc.Mapping):
|
||||
return {k: _format(v) for k, v in _val.items()}
|
||||
if isinstance(_val, list):
|
||||
|
||||
Reference in New Issue
Block a user