Skip to content

Fix: make pylance happy by re-exporting submodules#102

Merged
merajhashemi merged 1 commit into
cooper-org:mainfrom
yichangwang:fix/import-public-access
Jun 9, 2025
Merged

Fix: make pylance happy by re-exporting submodules#102
merajhashemi merged 1 commit into
cooper-org:mainfrom
yichangwang:fix/import-public-access

Conversation

@yichangwang

Copy link
Copy Markdown
Contributor

Closes #101

Changes

Re-export submodules in __init__.py files.
Disabled useless-import-alias check from ruff.

Testing

All tests in pre-commit and pytest passed.

References

microsoft/pylance-release#2953 (comment)

@github-actions

github-actions Bot commented Jun 2, 2025

Copy link
Copy Markdown

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  src/cooper
  __init__.py
  cmp.py
  src/cooper/constraints
  __init__.py
  src/cooper/formulations
  __init__.py
  src/cooper/multipliers
  __init__.py
  src/cooper/optim
  __init__.py
  src/cooper/optim/torch_optimizers
  __init__.py
  src/cooper/penalty_coefficients
  __init__.py
  src/cooper/utils
  __init__.py
Project Total  

This report was generated by python-coverage-comment-action

@merajhashemi
merajhashemi force-pushed the fix/import-public-access branch from 1bc01e9 to 5890d3f Compare June 9, 2025 14:17
@juan43ramirez
juan43ramirez self-requested a review June 9, 2025 15:26
@merajhashemi
merajhashemi merged commit 30b158e into cooper-org:main Jun 9, 2025
29 checks passed
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.

Pylance is not happy with imported modules

3 participants