Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix pyright errors in examples #921

Merged
merged 3 commits into from
Jan 16, 2025
Merged

Fix pyright errors in examples #921

merged 3 commits into from
Jan 16, 2025

Conversation

rg936672
Copy link
Contributor

@rg936672 rg936672 commented Jan 10, 2025

PR Type

  • Bugfix

Description

Closes #913.

How Has This Been Tested?

Existing tests pass as expected.

pyright examples passes without errors.

Added a workflow that runs pyright coreax examples to ensure that both the main Coreax package and the example scripts continue to pass Pyright. (The main package was done in #906.)

Does this PR introduce a breaking change?

Checklist before requesting a review

  • I have made sure that my PR is not a duplicate.
  • My code follows the style guidelines of this project.
  • I have ensured my code is easy to understand, including docstrings and comments where necessary.
  • I have performed a self-review of my code.
  • I have made corresponding changes to the documentation.
  • My changes generate no new warnings.
  • New and existing unit tests pass locally with my changes.
  • Any dependent changes have been merged and published in downstream modules.
  • I have updated CHANGELOG.md, if appropriate.

This comment was marked as outdated.

This comment was marked as outdated.

This comment was marked as outdated.

@rg936672 rg936672 force-pushed the fix/pyright/examples branch from e4b253d to 28021ca Compare January 10, 2025 11:15
Copy link
Contributor

Performance review

Commit d701488 - Merge 28021ca into fde187f

No significant changes to performance.

@rg936672 rg936672 changed the title Fix pytest errors in examples Fix pyright errors in examples Jan 15, 2025
@qh681248 qh681248 self-requested a review January 15, 2025 15:41
Copy link
Contributor

@qh681248 qh681248 left a comment

Choose a reason for hiding this comment

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

All the changes look sensible and pyright does indeed pass, happy with it!

@qh681248 qh681248 self-requested a review January 16, 2025 09:21
@qh681248 qh681248 merged commit dd1332d into main Jan 16, 2025
20 checks passed
@qh681248 qh681248 deleted the fix/pyright/examples branch January 16, 2025 09:28
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.

Fix static type checker complaints for examples
2 participants