pysal/libpysal

migrate away from star import for explicit ones

Opened this issue · 2 comments

xref: #597 (comment)

Migrate away from star import for explicit ones. Once complete we can remove "F403", # star import; unable to detect undefined names in pyproject.toml.

Ideally, instead of from .alpha_shapes import * we should do import alpha_shapes and then use alpha_shapes.function in the code. That way we minimise ambiguity of what comes from where.

In __init__.py, we could potentially leave stars but I bet there are other, better solutions than that.

Agreed.