We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8849958 commit b4f3334Copy full SHA for b4f3334
orbit/actions/new_best_metric.py
@@ -174,7 +174,7 @@ class JSONPersistedValue:
174
175
def __init__(self,
176
initial_value: Any,
177
- filename: str,
+ filename: Optional[str],
178
write_value: bool = True):
179
"""Initializes the instance.
180
@@ -206,11 +206,11 @@ def __init__(self,
206
if self._value is None:
207
self.write(initial_value)
208
209
- def read(self):
+ def read(self) -> Any:
210
"""Returns the value."""
211
return self._value
212
213
- def write(self, value):
+ def write(self, value: Any) -> None:
214
"""Writes the value, updating the backing store if one was provided."""
215
self._value = value
216
if self._filename is not None and self._write_value:
0 commit comments