Skip to content

Commit f5aa26c

Browse files
authored
Mark two to_json arguments as optional (#5950)
1 parent f888f8d commit f5aa26c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cirq-core/cirq/protocols/json_serialization.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -584,8 +584,8 @@ def to_json(
584584
obj: Any,
585585
file_or_fn: Union[None, IO, pathlib.Path, str] = None,
586586
*,
587-
indent: int = 2,
588-
separators: Tuple[str, str] = None,
587+
indent: Optional[int] = 2,
588+
separators: Optional[Tuple[str, str]] = None,
589589
cls: Type[json.JSONEncoder] = CirqEncoder,
590590
) -> Optional[str]:
591591
"""Write a JSON file containing a representation of obj.

0 commit comments

Comments
 (0)