python-devtools
python-devtools copied to clipboard
(🐞) when using `devtools.pformat` within a `__repr__`, the output becomes duplicated
from devtools import pformat
from devtools.prettier import pprint
class A:
def __repr__(self):
return pformat(1)
pprint(A()) # 11
here i would expect the output to be 1, but it is 11