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

[pre-commit.ci] pre-commit autoupdate #201

Merged
merged 2 commits into from
Jan 4, 2024
Merged

Conversation

updates:
- [github.com/pre-commit/pre-commit-hooks: v4.4.0 → v4.5.0](pre-commit/pre-commit-hooks@v4.4.0...v4.5.0)
- [github.com/psf/black: 23.9.1 → 23.12.1](psf/black@23.9.1...23.12.1)
- [github.com/PyCQA/isort: 5.12.0 → 5.13.2](PyCQA/isort@5.12.0...5.13.2)
- [github.com/pre-commit/mirrors-prettier: v3.0.3 → v4.0.0-alpha.8](pre-commit/mirrors-prettier@v3.0.3...v4.0.0-alpha.8)
- [github.com/pre-commit/mirrors-mypy: v1.5.1 → v1.8.0](pre-commit/mirrors-mypy@v1.5.1...v1.8.0)
Copy link

codecov bot commented Jan 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (f47dce9) 96.25% compared to head (5dbd411) 96.25%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #201   +/-   ##
=======================================
  Coverage   96.25%   96.25%           
=======================================
  Files           6        6           
  Lines         347      347           
  Branches       82       82           
=======================================
  Hits          334      334           
  Misses          8        8           
  Partials        5        5           

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

To fix `error: "Mapping[Hashable, int]" has no attribute "mapping"  [attr-defined]`, due to incorrect type hint in upstream xarray.
@@ -183,7 +183,7 @@ def validate_batch_dimensions(

# Check the names and lengths of the dimensions are equal
TestCase().assertDictEqual(
expected_dims, batch.sizes.mapping, msg="Dimension names and/or lengths differ"
expected_dims, dict(batch.sizes), msg="Dimension names and/or lengths differ"
Copy link
Member

Choose a reason for hiding this comment

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

Applying this patch to fix error: "Mapping[Hashable, int]" has no attribute "mapping" [attr-defined], due to what might be an incorrect type hint in upstream xarray. The batch.sizes variable should probably have a type hint of xarray.core.utils.Frozen instead?

@weiji14 weiji14 merged commit 73aabd7 into main Jan 4, 2024
10 checks passed
@weiji14 weiji14 deleted the pre-commit-ci-update-config branch January 4, 2024 07:39
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