Skip to content

six dependency is listed but unused #45

Description

@sumanjeet0012

pyproject.toml lists six>=1.10.0,<2.0 as a runtime dependency, but six is not imported anywhere in the codebase. Since the project requires Python ≥3.10, six (a Python 2/3 compatibility library) is unnecessary.

Problem

In pyproject.toml:

dependencies = [
    "python-baseconv>=1.2.0,<2.0",
    "six>=1.10.0,<2.0",        # ← Not used anywhere
    "morphys>=1.0,<2.0",
]

Searching the codebase for six imports:

$ grep -r "import six\|from six" multibase/
# No results

The six library was needed for Python 2/3 compatibility (e.g., six.ensure_str(), six.integer_types). Since pyproject.toml requires python >= 3.10, all six functionality is available natively.

Proposed Solution

Remove six from dependencies in pyproject.toml:

dependencies = [
    "python-baseconv>=1.2.0,<2.0",
    "morphys>=1.0,<2.0",
]

Verify no test or doc references remain:

grep -r "six" multibase/ tests/ docs/

Related

  • File: pyproject.toml
  • Python version requirement: >=3.10

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