multiformats / multiformats/py-multibase

`six` dependency is listed but unused

Open Beginner friendly
#45 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
25
Forks
9
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Inspect the dependencies list in pyproject.toml, then run the provided grep checks across multibase/, tests/, and docs/. Remove the unused six entry and confirm that no imports or references remain; the Python >=3.10 requirement and the remaining dependencies should be unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system
Issue type
Refactor
Difficulty
1/5
Estimated time
Under an hour
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
85/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.