Skip to content

Remove star import from _py_mkl_service#178

Open
ndgrigorian wants to merge 5 commits intomasterfrom
remove-star-import
Open

Remove star import from _py_mkl_service#178
ndgrigorian wants to merge 5 commits intomasterfrom
remove-star-import

Conversation

@ndgrigorian
Copy link
Copy Markdown
Collaborator

This PR removes a star import in the __init__ from _py_mkl_service. This star import polluted __dir__ with numbers and warnings modules which are imported in _py_mkl_service.pyx. Replacing with individual imports resolved this issue.

Copilot AI review requested due to automatic review settings April 10, 2026 19:25
@ndgrigorian ndgrigorian reopened this Apr 10, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refines the mkl public API surface by replacing from ._py_mkl_service import * with explicit imports, preventing internal helper modules imported by the Cython extension (e.g., numbers, warnings) from leaking into mkl’s namespace and dir(mkl) output.

Changes:

  • Replace star import from ._py_mkl_service with an explicit symbol import list.
  • Add an explicit __all__ to define the intended public export set.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants