ByteSize.human_readable
with an optional separator (e.g. whitespace) between value and unit
#8668
Closed
3 of 13 tasks
Labels
Initial Checks
Description
Currently, the return value of
ByteSize.human_readable
does not have any separator between the value and unit.It looks a little bit weird to me, and I think it could be better if there's a space separating the value and unit. Though there are many ways to handle this need, it may be a better idea to provide an optional argument with this method? For example:
When I switch the
separator
on:It's probably easy to be implemented, so I can create a PR to implement this feature if it will be acceptable.
What do you think about it?
Affected Components
.model_dump()
and.model_dump_json()
model_construct()
, pickling, private attributes, ORM modeThe text was updated successfully, but these errors were encountered: