We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49cf266 commit 271fadbCopy full SHA for 271fadb
util/pformat.py
@@ -81,7 +81,7 @@ def _fmt_inner(self, dest: Dest, indent: int, ctx: ContextStack, o: object,
81
trailing_comma_if_unitary=True,
82
indent_start=indent_start)
83
if isinstance(o, set):
84
- if len(o):
+ if len(o) == 0:
85
return self._indented_write(dest, indent if indent_start else 0, 'set()')
86
keys = sorted(o, key=_SafeSortKey)
87
return self._fmt_seq(dest, indent, ctx, keys, '{', '}',
0 commit comments