Skip to content

Commit 88116cc

Browse files
committed
refactor: cleanup docstring and method call parameters in load_view
1 parent 8006de7 commit 88116cc

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

pyiceberg/catalog/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -648,9 +648,6 @@ def list_views(self, namespace: str | Identifier) -> list[Identifier]:
648648
def load_view(self, identifier: str | Identifier) -> View:
649649
"""Load the view's metadata and returns the view instance.
650650
651-
You can also use this method to check for view existence using 'try catalog.load_view() except NoSuchViewError'.
652-
Note: This method doesn't scan data stored in the view.
653-
654651
Args:
655652
identifier (str | Identifier): View identifier.
656653

pyiceberg/catalog/rest/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1113,8 +1113,7 @@ def list_views(self, namespace: str | Identifier) -> list[Identifier]:
11131113
def load_view(self, identifier: str | Identifier) -> View:
11141114
self._check_endpoint(Capability.V1_LOAD_VIEW)
11151115
response = self._session.get(
1116-
self.url(Endpoints.load_view, prefixed=True, **self._split_identifier_for_path(identifier, IdentifierKind.VIEW)),
1117-
params={},
1116+
self.url(Endpoints.load_view, prefixed=True, **self._split_identifier_for_path(identifier, IdentifierKind.VIEW))
11181117
)
11191118
try:
11201119
response.raise_for_status()

0 commit comments

Comments
 (0)