Skip to content

Currently only works on python>=3.9 #4

@CoderJoshDK

Description

@CoderJoshDK

Currently, the API does not work for versions before python 3.9.

If you try to use an earlier version, you will get a TypeError: 'type' object is not subscriptable.

The issue comes from wiopy/arguments.py:

def get_items_ids(items: Union[str, list[str]]) -> list[str]:
    if not isinstance(items, str) and not isinstance(items, list):
        raise InvalidParameterException('Invalid items argument, it should be a string or List of strings')
    ...

list type casting only works for python>=3.9
To fix, import List


This issue will be fixed. I (the developer) am a little busy. But I will fix this issue and update pypi

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomers

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions