summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--patternutils/utils.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/patternutils/utils.py b/patternutils/utils.py
index d1ccacf..14d7ddb 100644
--- a/patternutils/utils.py
+++ b/patternutils/utils.py
@@ -31,8 +31,10 @@ def edit(data: Dict[str, str]) -> Dict[str, str]:
def json_dumps(data: Any, human_readable: bool = False) -> str:
config = (
- {"indent": 4, sort_keys: True} if human_readable else {"separators": (",", ":")}
- )
+ {"indent": 4, "sort_keys": True}
+ if human_readable
+ else {"separators": (",", ":")}
+ ) # type: Dict[str, Any]
return json.dumps(data, **config)