Skip to content

Commit 10b20a8

Browse files
committed
chore: narrow download_revision return type
1 parent 8c584ad commit 10b20a8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tableauserverclient/server/endpoint/workbooks_endpoint.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,10 +1022,12 @@ def _get_workbook_revisions(
10221022
revisions = RevisionItem.from_response(server_response.content, self.parent_srv.namespace, workbook_item)
10231023
return revisions
10241024

1025+
T = TypeVar("T", bound=FileObjectW)
1026+
10251027
@overload
10261028
def download_revision(
1027-
self, workbook_id: str, revision_number: Optional[str], filepath: FileObjectW, include_extract: bool
1028-
) -> FileObjectW: ...
1029+
self, workbook_id: str, revision_number: Optional[str], filepath: T, include_extract: bool
1030+
) -> T: ...
10291031

10301032
@overload
10311033
def download_revision(

0 commit comments

Comments
 (0)