Skip to content

Commit

Permalink
Mark two to_json arguments as optional (quantumlib#5950)
Browse files Browse the repository at this point in the history
  • Loading branch information
andbe91 authored and rht committed May 1, 2023
1 parent 878d439 commit 4b9b9da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cirq-core/cirq/protocols/json_serialization.py
Original file line number Diff line number Diff line change
Expand Up @@ -584,8 +584,8 @@ def to_json(
obj: Any,
file_or_fn: Union[None, IO, pathlib.Path, str] = None,
*,
indent: int = 2,
separators: Tuple[str, str] = None,
indent: Optional[int] = 2,
separators: Optional[Tuple[str, str]] = None,
cls: Type[json.JSONEncoder] = CirqEncoder,
) -> Optional[str]:
"""Write a JSON file containing a representation of obj.
Expand Down

0 comments on commit 4b9b9da

Please sign in to comment.