wtclarke / nifti_mrs_tools

Software tools for the NIfTI-MRS data format
BSD 3-Clause "New" or "Revised" License
0 stars 4 forks source link

`{str(x)}` → `{x}` #12

Closed DimitriPapadopoulos closed 9 months ago

DimitriPapadopoulos commented 11 months ago

Casting to str is redundant, that is the default.

From Format Specification Mini-Language:

A general convention is that an empty format specification produces the same result as if you had called str() on the value. A non-empty format specification typically modifies the result.