Skip to content

ENH: export cached aliases#164

Merged
redeboer merged 2 commits intomainfrom
ENH/export-aliases
Mar 7, 2025
Merged

ENH: export cached aliases#164
redeboer merged 2 commits intomainfrom
ENH/export-aliases

Conversation

@redeboer
Copy link
Copy Markdown
Member

@redeboer redeboer commented Mar 7, 2025

The ampform_dpd.io.cached aliases to ampform.sympy.cached are now exported through __all__ to avoid reportPrivateImportUsage linting errors.

@redeboer redeboer added the 🖱️ DX Improvements to the Developer Experience label Mar 7, 2025
@redeboer redeboer added this to the 0.2.3 milestone Mar 7, 2025
@redeboer redeboer self-assigned this Mar 7, 2025
@redeboer redeboer force-pushed the ENH/export-aliases branch from 58f1564 to 64ae148 Compare March 7, 2025 11:16
@redeboer redeboer force-pushed the ENH/export-aliases branch from 64ae148 to a7883cc Compare March 7, 2025 11:22
@redeboer redeboer marked this pull request as ready for review March 7, 2025 11:28
@redeboer redeboer requested a review from Copilot March 7, 2025 11:29
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.

PR Overview

This PR exports additional cached aliases to avoid private import usage linting errors.

  • Updates docs/conf.py to include the "Model" alias and add it to the nitpick ignore list.
  • Expands src/ampform_dpd/io/cached.py with new imports and all exports for caching functions, including simplify, subs, trigsimp, and lambdify.

Reviewed Changes

File Description
docs/conf.py Added the "Model" alias and corresponding nitpick ignore entry to suppress linting errors.
src/ampform_dpd/io/cached.py Updated the import statement to include additional cached functions and revised the all export list accordingly.

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (1)

src/ampform_dpd/io/cached.py:24

  • [nitpick] Consider reordering the all list to align with the import order or sort it alphabetically to improve consistency.
__all__ = [

@redeboer redeboer merged commit 328eb35 into main Mar 7, 2025
19 checks passed
@redeboer redeboer deleted the ENH/export-aliases branch March 7, 2025 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🖱️ DX Improvements to the Developer Experience

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants