Skip to content

Conversation

@danielhollas
Copy link

This PR contains to typing fixes that were uncovered by adding typing in aiida-core in aiidateam/aiida-core#7049

  1. In aiida-core, we're passing a set() as hashkeys argument, but set is not a Sequence so mypy in aiida-core complains. typing.Iterable correctly captures the type what we accept here since we anyway convert it to set internally.

  2. Remove usage of mypy_extensions.Arg which is deprecated and doesn't actually work as intended over at aiida-core repo.

In aiida-core, we're passing a set() as haskeys argument,
but set is not a Sequence so mypy in aiida-core complains.
typing.Iterable correctly captures the type what we accept,
since we anyway convert it to `set` internally.

if TYPE_CHECKING:
from container import ObjectType
from .container import ObjectType
Copy link
Author

Choose a reason for hiding this comment

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

Unrelated fix

@codecov
Copy link

codecov bot commented Nov 4, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.67%. Comparing base (cdfb964) to head (a8dd6cd).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #196   +/-   ##
=======================================
  Coverage   99.67%   99.67%           
=======================================
  Files          10       10           
  Lines        2143     2143           
=======================================
  Hits         2136     2136           
  Misses          7        7           

☔ 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
Copy link
Author

@edan-bainglass since you've reviewed the corresponding aiida.repository PR you might be a good reviewer here as well

Copy link
Member

@edan-bainglass edan-bainglass left a comment

Choose a reason for hiding this comment

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

LGTM!

@danielhollas
Copy link
Author

Cheers @edan-bainglass 🫶

I can't merge PRs on this repo so leaving that to @GeigerJ2

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