Skip to content

from sparse_ir import * fails because __all__ lists undefined names #73

@terasakisatoshi

Description

@terasakisatoshi

Summary

The top-level package export list is internally inconsistent.

src/sparse_ir/__init__.py:28-41 includes TauPoles and MatsubaraPoles in __all__, but those names are not imported or defined by the module.

Reproduction

On commit 75b9f8fbb7991f09867e64d19424868a1c598f63:

uv sync
uv run python - <<'PY'
from sparse_ir import *
PY

Actual

AttributeError: module 'sparse_ir' has no attribute 'TauPoles'

Expected

Either:

  • from sparse_ir import * succeeds, because every name in __all__ exists, or
  • the missing names are removed from __all__.

Notes

This surfaced during a feature-test pass of the public API. The rest of the tested top-level imports worked; the failure is specifically the undefined names in __all__.

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