Skip to content

dhlab.text.utils.urnlist doesn’t support general interable input. #240

@MarieRoald

Description

@MarieRoald

There is a "hard" isinstance(urnlist, list) check, which means that it doesn’t work with other iterables like tuples. It should probably be something like

from collections.abc import Iterable

if isinstance(urnlist, Iterable):
    _urnlist = list(urnlist)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions