Skip to content

Run type checking on multiply_add.py #6833

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

danielhollas
Copy link
Collaborator

@danielhollas danielhollas commented Apr 23, 2025

Depends on #682

Trivial update to add type-checking on one file.

@danielhollas danielhollas self-assigned this Apr 23, 2025
from aiida.engine import ToContext, WorkChain, calcfunction
from aiida.orm import AbstractCode, Int
from aiida.plugins.factories import CalculationFactory

ArithmeticAddCalculation = CalculationFactory('core.arithmetic.add')
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

mypy has troubles understanding that the CalculationFactory returns a Calcjob subclass in this case. So let's import it directly.

Copy link

codecov bot commented Apr 23, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.44%. Comparing base (6eb17a7) to head (d09a436).
Report is 11 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6833      +/-   ##
==========================================
- Coverage   78.44%   78.44%   -0.00%     
==========================================
  Files         568      568              
  Lines       43093    43092       -1     
==========================================
- Hits        33802    33801       -1     
  Misses       9291     9291              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@danielhollas danielhollas marked this pull request as ready for review May 1, 2025 08:44
@danielhollas danielhollas requested a review from agoscinski May 1, 2025 08:45
@agoscinski agoscinski moved this to In review in aiida-core v2.7.1 May 6, 2025
@danielhollas danielhollas requested review from unkcpz and removed request for agoscinski June 5, 2025 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In review
Development

Successfully merging this pull request may close these issues.

1 participant