Fix print_json indent type to Union[None, int, str]

This commit is contained in:
Paul Sanders 2022-03-06 19:23:39 -05:00
parent aa4546ac46
commit 96760b9e36
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
"""Rich text and beautiful formatting in the terminal."""
import os
from typing import Callable, IO, TYPE_CHECKING, Any, Optional
from typing import Callable, IO, TYPE_CHECKING, Any, Optional, Union
from ._extension import load_ipython_extension
@ -73,7 +73,7 @@ def print_json(
json: Optional[str] = None,
*,
data: Any = None,
indent: int = 2,
indent: Union[None, int, str] = 2,
highlight: bool = True,
skip_keys: bool = False,
ensure_ascii: bool = True,