Skip to content

Commit

Permalink
Fix microsoft#1477: namedtuple are not rendered in the variable brows…
Browse files Browse the repository at this point in the history
…er as expected

Significantly increase safe repr limits for strings and collections.
  • Loading branch information
Pavel Minaev committed Jan 30, 2024
1 parent 9c827b8 commit a08d209
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class SafeRepr(object):
# most level, and truncated to maxstring_inner characters inside
# collections.
maxstring_outer = 2 ** 16
maxstring_inner = 30
maxstring_inner = 128
string_types = (str, bytes)
bytes = bytes
set_info = (set, '{', '}', False)
Expand All @@ -31,7 +31,7 @@ class SafeRepr(object):

# Collection types are recursively iterated for each limit in
# maxcollection.
maxcollection = (15, 10)
maxcollection = (60, 20)

# Specifies type, prefix string, suffix string, and whether to include a
# comma if there is only one element. (Using a sequence rather than a
Expand Down Expand Up @@ -60,7 +60,7 @@ class SafeRepr(object):
# All other types are treated identically to strings, but using
# different limits.
maxother_outer = 2 ** 16
maxother_inner = 30
maxother_inner = 128

convert_to_hex = False
raw_value = False
Expand Down

0 comments on commit a08d209

Please sign in to comment.