From 4afb8449fd895825fb3039c36f85fd27e2099d0e Mon Sep 17 00:00:00 2001 From: Matthew Powers Date: Sat, 23 Sep 2023 11:42:09 -0400 Subject: [PATCH] docs: add docstring to protocol method --- python/deltalake/table.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python/deltalake/table.py b/python/deltalake/table.py index 367debbf18..af1cf090da 100644 --- a/python/deltalake/table.py +++ b/python/deltalake/table.py @@ -411,6 +411,11 @@ def metadata(self) -> Metadata: return self._metadata def protocol(self) -> ProtocolVersions: + """ + Get the reader and writer protocol versions of the DeltaTable. + + :return: the current ProtocolVersions registered in the transaction log + """ return ProtocolVersions(*self._table.protocol_versions()) def history(self, limit: Optional[int] = None) -> List[Dict[str, Any]]: