[Code scan] Fix invalid dftio.data __all__ exports
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 90/100
Research direction
Open dftio/data/init.py at the all definition linked in the issue. Run from dftio.data import * to reproduce the TypeError, then verify that all entries are string names, the duplicate feature_to_block is removed, and the wildcard import succeeds.
Written by the indexing model from the issue text.
Description
This issue comes from a Codex global repository scan.
Problem
dftio.data.__all__ contains imported objects instead of string names:
Python expects every __all__ entry to be a string. As written, wildcard imports fail instead of exporting the public API.
Reproduction
Run:
from dftio.data import *
This raises TypeError: Item in dftio.data.__all__ must be str.
Suggested fix
Change entries to string names and remove the duplicate feature_to_block entry.
- Dominant language
- Jupyter Notebook
- Stars
- 16
- Forks
- 14
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from deepmodeling/dftio
-
Difficulty 2/5 1-2 days Newbie friendliness 78/100
deepmodeling/dftio#44 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
deepmodeling/dftio#43 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
deepmodeling/dftio#42 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
deepmodeling/dftio#41 ·
-
Difficulty 2/5 Half a day Newbie friendliness 75/100
deepmodeling/dftio#40 ·
All issues in deepmodeling/dftio
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
open-compass/VLMEvalKit#1698 ·
-
triage:deciding
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
open-telemetry/otel-arrow#4123 · 1 reaction ·