_pformat_dispatch: pass through args (#6715)

This commit is contained in:
Daniel Hahler
2020-02-12 16:07:57 +01:00
committed by GitHub
parent d79179a239
commit b7ad4c2bed
2 changed files with 8 additions and 1 deletions

View File

@@ -99,5 +99,5 @@ class AlwaysDispatchingPrettyPrinter(pprint.PrettyPrinter):
def _pformat_dispatch(object, indent=1, width=80, depth=None, *, compact=False):
return AlwaysDispatchingPrettyPrinter(
indent=1, width=80, depth=None, compact=False
indent=indent, width=width, depth=depth, compact=compact
).pformat(object)