Improve typechecking #2360
ci.yml
on: pull_request
should run ci
9s
Matrix: integration-test
Matrix: unit-test
build-and-upload-nightly-parcels
1m 19s
merge-test-artifacts
Annotations
10 errors and 4 warnings
|
ty (invalid-return-type):
src/parcels/_core/index_search.py#L47
src/parcels/_core/index_search.py:47:16: invalid-return-type: Return type does not match returned value: expected `tuple[int, int]`, found `tuple[Unknown, ndarray[tuple[Any, ...], dtype[Any]]]`
src/parcels/_core/index_search.py:24:6: Expected `tuple[int, int]` because of return type
info: rule `invalid-return-type` is enabled by default
|
|
ty (not-iterable):
src/parcels/_core/fieldset.py#L484
src/parcels/_core/fieldset.py:484:26: not-iterable: Object of type `None` is not iterable
info: It doesn't have an `__iter__` method or a `__getitem__` method
info: rule `not-iterable` is enabled by default
|
|
ty (invalid-assignment):
src/parcels/_core/fieldset.py#L484
src/parcels/_core/fieldset.py:484:5: invalid-assignment: Too many values to unpack: Expected 2
src/parcels/_core/fieldset.py:484:26: Got 3
info: rule `invalid-assignment` is enabled by default
|
|
ty (invalid-assignment):
src/parcels/_core/fieldset.py#L423
src/parcels/_core/fieldset.py:423:22: invalid-assignment: Object of type `Dataset` is not assignable to `UxDataset`
src/parcels/_core/fieldset.py:423:17: Declared type `UxDataset`
info: rule `invalid-assignment` is enabled by default
|
|
ty (invalid-assignment):
src/parcels/_core/fieldset.py#L404
src/parcels/_core/fieldset.py:404:22: invalid-assignment: Object of type `Dataset` is not assignable to `UxDataset`
src/parcels/_core/fieldset.py:404:17: Declared type `UxDataset`
info: rule `invalid-assignment` is enabled by default
|
|
ty (unresolved-attribute):
src/parcels/_core/fieldset.py#L357
src/parcels/_core/fieldset.py:357:175: unresolved-attribute: Attribute `left` is not defined on `None` in union `Unknown | TimeInterval | None`
info: rule `unresolved-attribute` is enabled by default
|
|
ty (invalid-argument-type):
src/parcels/_core/fieldset.py#L210
src/parcels/_core/fieldset.py:210:34: invalid-argument-type: Argument to bound method `__init__` is incorrect: Expected `UxDataArray`, found `DataArray`
src/parcels/_core/uxgrid.py:21:9: info: Method defined here
src/parcels/_core/uxgrid.py:21:44: Parameter declared here
info: rule `invalid-argument-type` is enabled by default
|
|
ty (unresolved-attribute):
src/parcels/_core/field.py#L161
src/parcels/_core/field.py:161:20: unresolved-attribute: Attribute `zdim` is not defined on `UxGrid` in union `Unknown | UxGrid | XGrid`
info: rule `unresolved-attribute` is enabled by default
|
|
ty (unresolved-attribute):
src/parcels/_core/field.py#L154
src/parcels/_core/field.py:154:20: unresolved-attribute: Attribute `ydim` is not defined on `UxGrid` in union `Unknown | UxGrid | XGrid`
info: rule `unresolved-attribute` is enabled by default
|
|
ty (unresolved-attribute):
src/parcels/_core/field.py#L147
src/parcels/_core/field.py:147:20: unresolved-attribute: Attribute `xdim` is not defined on `UxGrid` in union `Unknown | UxGrid | XGrid`
info: rule `unresolved-attribute` is enabled by default
|
|
ty (redundant-cast):
src/parcels/_core/xgrid.py#L379
src/parcels/_core/xgrid.py:379:24: redundant-cast: Value is already of type `Literal["X", "Y", "Z"]`
info: rule `redundant-cast` is enabled by default
|
|
Unit tests: ubuntu | pixi run -e test-py313 tests
Cache save failed.
|
|
Unit tests: ubuntu | pixi run -e test-minimum tests
Cache save failed.
|
|
Unit tests: ubuntu | pixi run -e test-py311 tests
Cache save failed.
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
Unittest report ubuntu-test
|
25.1 KB |
sha256:52e404e16324d83826e87ffe44e34254b58716f1aea20446d685392f22c94f9b
|
|
|
Unittest report ubuntu-test-minimum
|
25.2 KB |
sha256:4584a43fba3fa63d28cabaae465e19898d2a5b61adf24f364612776799c1abdf
|
|
|
Unittest report ubuntu-test-py311
|
25.4 KB |
sha256:79303b168c4292125a752acaf4a5512cb0fccc4acfc15244c78f59d74944b627
|
|
|
Unittest report ubuntu-test-py313
|
25.4 KB |
sha256:0394c5805d8a05c6ca2e0b7aa0f0cb43b2d9b80c344d345c9aff0f71f44af61d
|
|
|
Unittest report windows-test
|
25.4 KB |
sha256:cf229ede59bfc5b9997c33dc5cfcc4198e13ffc875a9b191871f894a7d950c17
|
|
|
pixi-lock
|
234 KB |
sha256:4df24f1514333f6056a2f5c7830535f2287e2e652b30e1917fc48fec36261dfc
|
|