Skip to content

Python dependency 3.9 is wrong. #265

Description

@codekandis

I'm currently installing circup 2.3.0 with my system Python 3.9.x.

circup throws an exception on showing its version

$ circup --version
Traceback (most recent call last):
  File "/home/user/.local/bin/circup", line 3, in <module>
    from circup import main
  File "/home/user/.local/pipx/venvs/circup/lib/python3.9/site-packages/circup/__init__.py", line 9, in <module>
    from circup.shared import DATA_DIR, BAD_FILE_FORMAT, extract_metadata, _get_modules_file
  File "/home/user/.local/pipx/venvs/circup/lib/python3.9/site-packages/circup/shared.py", line 16, in <module>
    from circup.lazy_metadata import LazyMetadata
  File "/home/user/.local/pipx/venvs/circup/lib/python3.9/site-packages/circup/lazy_metadata.py", line 11, in <module>
    class LazyMetadata:
  File "/home/user/.local/pipx/venvs/circup/lib/python3.9/site-packages/circup/lazy_metadata.py", line 20, in LazyMetadata
    initial_data: dict[str, Any] | None = None,
TypeError: unsupported operand type(s) for |: 'types.GenericAlias' and 'NoneType'

The union type orperator | is a Python >= 3.10 feature.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions