Skip to content

Commit fb9b094

Browse files
committed
try different pyright hook
1 parent f4629fb commit fb9b094

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,15 @@ repos:
1313
- id: ruff-check
1414
args: [--fix] # optional, to autofix lint errors
1515
- id: ruff-format
16-
- repo: https://github.com/RobertCraigie/pyright-python
16+
#- repo: https://github.com/RobertCraigie/pyright-python
17+
# rev: v1.1.403
18+
# hooks:
19+
# - id: pyright
20+
# name: "python · Check types"
21+
- repo: https://github.com/fsouza/mirrors-pyright
1722
rev: v1.1.403
1823
hooks:
1924
- id: pyright
20-
name: "python · Check types"
2125
- repo: https://github.com/abravalheri/validate-pyproject
2226
rev: v0.24.1
2327
hooks:

src/xarray_dataclasses/typing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@
5959
TDType = TypeVar("TDType", covariant=True)
6060
THashable = TypeVar("THashable", bound=Hashable)
6161

62-
AnyArray: TypeAlias = np.ndarray
63-
AnyDType: TypeAlias = np.dtype
62+
AnyArray: TypeAlias = np.ndarray[Any, Any]
63+
AnyDType: TypeAlias = np.dtype[Any]
6464
AnyField: TypeAlias = Field[Any]
6565
AnyXarray: TypeAlias = Union[xr.DataArray, xr.Dataset]
6666
Dims = Tuple[str, ...]

0 commit comments

Comments
 (0)