Skip to content

Remove star import from _mkl_service#178

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

Remove star import from _mkl_service#178
ndgrigorian wants to merge 7 commits intomasterfrom
remove-star-import

Conversation

@ndgrigorian
Copy link
Copy Markdown
Collaborator

@ndgrigorian ndgrigorian commented Apr 10, 2026

This PR removes a star import in the __init__ from _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.

@ndgrigorian ndgrigorian changed the title Remove star import from _py_mkl_service Remove star import from _mkl_service Apr 12, 2026
@antonwolfy antonwolfy added this to the 2.7.0 release milestone Apr 12, 2026
Copy link
Copy Markdown
Collaborator

@antonwolfy antonwolfy left a comment

Choose a reason for hiding this comment

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

Thank you @ndgrigorian

@antonwolfy
Copy link
Copy Markdown
Collaborator

The only changelog is left

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.

3 participants