Skip to content

Commit

Permalink
improve save_state()
Browse files Browse the repository at this point in the history
  • Loading branch information
sbittrich committed Feb 1, 2024
1 parent 9c72f70 commit cf1bb61
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion molviewspec/molviewspec/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""MolViewSpec"""

__version__ = "0.1.7"
__version__ = "0.1.8"

from molviewspec.builder import create_builder
from molviewspec.nodes import ComponentExpression, validate_state_tree
6 changes: 3 additions & 3 deletions molviewspec/molviewspec/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def get_state(
title: str | None = None,
description: str | None = None,
description_format: DescriptionFormatT | None = None,
indent: int = 2,
indent: int | None = 2,
) -> str:
"""
Emits JSON representation of the current state. Can be enriched with metadata.
Expand All @@ -95,8 +95,8 @@ def get_state(
def save_state(
self,
*,
destination: str,
indent: int = 0,
destination: str | path,
indent: int | None = 2,
title: str | None = None,
description: str | None = None,
description_format: DescriptionFormatT | None = None,
Expand Down

0 comments on commit cf1bb61

Please sign in to comment.