Classes in #Python can define their own formatting mini-languages for f-strings ...
Ned Batchelder @nedbat@hachyderm.io
Classes in #Python can define their own formatting mini-languages for f-strings by defining __format__. Full details: https://nedbatchelder.com/blog/202204/python_custom_formatting.html