Add docstring

This commit is contained in:
Nuno Campos
2024-06-14 11:14:28 -07:00
parent 033c29f55a
commit faebaac554
+2
View File
@@ -204,4 +204,6 @@ class BaseCheckpointSaver(ABC):
raise NotImplementedError
def get_next_version(self, current: Optional[V], channel: BaseChannel) -> V:
"""Get the next version of a channel. Default is to use int versions, incrementing by 1. If you override, you can use str/int/float versions,
as long as they are monotonically increasing."""
return current + 1 if current is not None else 1