Skip to content

Strict typing for aiida.brokers module#7307

Merged
danielhollas merged 2 commits into
aiidateam:mainfrom
danielhollas:typing/broker
Mar 31, 2026
Merged

Strict typing for aiida.brokers module#7307
danielhollas merged 2 commits into
aiidateam:mainfrom
danielhollas:typing/broker

Conversation

@danielhollas
Copy link
Copy Markdown
Collaborator

All the changes here are only to method annotations and are quite straightforward

self.close()

def iterate_tasks(self):
def iterate_tasks(self) -> Iterator[t.Any]:
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Unfortunately kiwipy is not typed

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 29, 2026

Codecov Report

❌ Patch coverage is 91.66667% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 79.85%. Comparing base (8107b27) to head (643ae92).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/aiida/brokers/broker.py 83.34% 1 Missing ⚠️
src/aiida/brokers/rabbitmq/broker.py 87.50% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7307      +/-   ##
==========================================
+ Coverage   79.85%   79.85%   +0.01%     
==========================================
  Files         566      566              
  Lines       43941    43947       +6     
==========================================
+ Hits        35084    35091       +7     
+ Misses       8857     8856       -1     

☔ 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.

Copy link
Copy Markdown
Collaborator

@GeigerJ2 GeigerJ2 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @danielhollas!

Comment thread src/aiida/brokers/broker.py Outdated
@danielhollas danielhollas enabled auto-merge (squash) March 31, 2026 11:57
@danielhollas danielhollas merged commit 15454cd into aiidateam:main Mar 31, 2026
31 of 33 checks passed
@danielhollas danielhollas deleted the typing/broker branch March 31, 2026 12:43
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.

2 participants