Skip to content

Commit 8cfe6f0

Browse files
committed
Add overload fallback for regular bool
1 parent 830c2d5 commit 8cfe6f0

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

bioblend/galaxy/histories/__init__.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,19 @@ def show_history(
211211
) -> List[Dict[str, Any]]:
212212
...
213213

214+
# Fallback in case the caller provides a regular bool as contents
215+
@overload
216+
def show_history(
217+
self,
218+
history_id: str,
219+
contents: bool = False,
220+
deleted: Optional[bool] = None,
221+
visible: Optional[bool] = None,
222+
details: Optional[str] = None,
223+
types: Optional[List[str]] = None,
224+
) -> Union[Dict[str, Any], List[Dict[str, Any]]]:
225+
pass
226+
214227
def show_history(
215228
self,
216229
history_id: str,

0 commit comments

Comments
 (0)