Skip to content

Use inline hints - #100

Open
krokosik wants to merge 10 commits into
arviz-devs:mainfrom
krokosik:use-inline-hints
Open

krokosik wants to merge 10 commits into
arviz-devs:mainfrom
krokosik:use-inline-hints

Conversation

@krokosik

Copy link
Copy Markdown
Contributor

Given the project's Python version constraint being >=3.12, it is safe to modernize the type hint infrastructure a bit. In particular, there is no need to maintain stub files and code separately and using inline hints is in general much more pleasant to work with.

It also eliminates drift, such as for the linalg accessor, which had all of its stubs untyped (or rather incomplete), causing lots of typing issues downstream. This PR migrates to using stricter types and inline type hints. Happy to discuss more and make adjustments if required :)

@codecov

codecov Bot commented Oct 14, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 99.37888% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 91.81%. Comparing base (62c8470) to head (d160012).

Files with missing lines Patch % Lines
src/xarray_einstats/accessors.py 97.61% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #100      +/-   ##
==========================================
+ Coverage   91.36%   91.81%   +0.44%     
==========================================
  Files           6        7       +1     
  Lines         869      916      +47     
==========================================
+ Hits          794      841      +47     
  Misses         75       75              

☔ View full report in Codecov by Harness.
📢 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.

This branch has not been deployed

No deployments
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.

1 participant