Skip to content

Commit b5ad52f

Browse files
committed
Fix: Wring type for query_instance arg "category"
1 parent a1d996e commit b5ad52f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/osw/core.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1525,7 +1525,7 @@ def __init__(self, **data):
15251525
self._titles = [parts["title"] for parts in self._category_string_parts]
15261526

15271527
def query_instances(
1528-
self, category: Union[str, OswBaseModel, OSW.QueryInstancesParam]
1528+
self, category: Union[str, Type[OswBaseModel], OSW.QueryInstancesParam]
15291529
) -> List[str]:
15301530
if not isinstance(category, OSW.QueryInstancesParam):
15311531
category = OSW.QueryInstancesParam(categories=category)

0 commit comments

Comments
 (0)