Skip to content

Type not imported #357

@vladionescu

Description

@vladionescu

Sorry for the oneliner issue, didn't feel like forking and sending PR for this.

problem:

❯ uv run python -c "import tidalapi"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "tidalapi/__init__.py", line 8, in <module>
    from .page import Page  # noqa: F401
  File "tidalapi/page.py", line 241, in <module>
    class PageCategoryV2:
  File "tidalapi/page.py", line 249, in PageCategoryV2
    _type_map: Dict[str, Type["PageCategoryV2"]] = {}
NameError: name 'Type' is not defined. Did you mean: 'type'?

fix:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions