Skip to content

Commit 271fadb

Browse files
fix: Fix pformat.py
1 parent 49cf266 commit 271fadb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

util/pformat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def _fmt_inner(self, dest: Dest, indent: int, ctx: ContextStack, o: object,
8181
trailing_comma_if_unitary=True,
8282
indent_start=indent_start)
8383
if isinstance(o, set):
84-
if len(o):
84+
if len(o) == 0:
8585
return self._indented_write(dest, indent if indent_start else 0, 'set()')
8686
keys = sorted(o, key=_SafeSortKey)
8787
return self._fmt_seq(dest, indent, ctx, keys, '{', '}',

0 commit comments

Comments
 (0)