Skip to content

Commit

Permalink
Re-add the comma splitting to _getannotations
Browse files Browse the repository at this point in the history
  • Loading branch information
Johnathan Schaff committed Feb 29, 2024
1 parent d0cf666 commit b1ed10c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions biothings_client/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,10 @@ def _getannotations(self, ids, fields=None, **kwargs):
.. Hint:: If you need to pass a very large list of input ids, you can pass a generator
instead of a full list, which is more memory efficient.
"""
if isinstance(ids, str_types):
ids = ids.split(",") if ids else []
if not (isinstance(ids, (list, tuple, Iterable))):
raise ValueError('input "ids" must be a list, tuple or iterable.')
if fields:
kwargs["fields"] = fields
kwargs = self._handle_common_kwargs(kwargs)
Expand Down

0 comments on commit b1ed10c

Please sign in to comment.