Add note to saferepr_unlimited

This commit is contained in:
Bruno Oliveira 2022-03-19 08:37:29 -03:00
parent e4c1b55125
commit a9c54a1f80
1 changed files with 3 additions and 0 deletions

View File

@ -114,6 +114,9 @@ def saferepr_unlimited(obj: object) -> str:
will be represented with a short exception info. will be represented with a short exception info.
This function is a wrapper around simple repr. This function is a wrapper around simple repr.
Note: a cleaner solution would be to alter ``saferepr``this way
when maxsize=None, but that might affect some other code.
""" """
try: try:
return repr(obj) return repr(obj)