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

Add typing to tests #168

Open
wants to merge 36 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 8 commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
d60c459
Type test_xarray.py
Illviljan Oct 9, 2022
6d22bb0
Fix typing
Illviljan Oct 9, 2022
42826a8
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 9, 2022
91a5bd2
Add type hints to test_core.py
Illviljan Oct 9, 2022
203adb0
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 9, 2022
492963a
Update test_core.py
Illviljan Oct 9, 2022
5631eb0
Merge branch 'add_typing_to_tests' of https://github.com/Illviljan/fl…
Illviljan Oct 9, 2022
071c869
Update test_core.py
Illviljan Oct 9, 2022
c7916aa
Merge remote-tracking branch 'upstream/main' into add_typing_to_tests
Illviljan Oct 11, 2022
5b8c5af
Merge remote-tracking branch 'upstream/main' into add_typing_to_tests
Illviljan Oct 14, 2022
4e9db60
Don't add type hints to kwargs for readability
Illviljan Nov 5, 2022
17b2243
Merge remote-tracking branch 'upstream/main' into add_typing_to_tests
Illviljan Nov 5, 2022
4b134fc
fix merge errors
Illviljan Nov 5, 2022
af5c912
Update test_core.py
Illviljan Nov 5, 2022
6656b7f
Update test_core.py
Illviljan Nov 5, 2022
51f448c
Update test_core.py
Illviljan Nov 5, 2022
83e3cec
Update mypy ci
Illviljan Nov 5, 2022
1698ed2
Update ci-additional.yaml
Illviljan Nov 5, 2022
87c8116
Update ci-additional.yaml
Illviljan Nov 5, 2022
7d619ea
Move tests to /flox so mypy finds it
Illviljan Nov 5, 2022
6117bc2
Update ci-additional.yaml
Illviljan Nov 5, 2022
391c7b5
include more files
Illviljan Nov 5, 2022
90bf14f
move back tests
Illviljan Nov 5, 2022
3bab2f0
Revert "move back tests"
Illviljan Nov 5, 2022
3e48319
fix type errors
Illviljan Nov 5, 2022
797a50e
numba numpy_groupies to ignore
Illviljan Nov 5, 2022
3026276
Update test_core.py
Illviljan Nov 5, 2022
d382393
move engine fixture to conftest
Illviljan Nov 5, 2022
8a52b4f
Update test_xarray.py
Illviljan Nov 5, 2022
1a02d23
comment out for now
Illviljan Nov 5, 2022
988956f
Update test_xarray.py
Illviljan Nov 5, 2022
a4d5a9e
Update ci-additional.yaml
Illviljan Nov 5, 2022
e0308b8
Update test_xarray.py
Illviljan Nov 5, 2022
c37db94
Merge branch 'main' into add_typing_to_tests
dcherian Nov 27, 2022
472db78
Clean up conftest
dcherian Nov 27, 2022
c5596b5
Cleanup ci-additional
dcherian Nov 27, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions flox/xarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
from xarray.core.resample import Resample
from xarray.core.types import T_DataArray, T_Dataset

from .core import T_Engine, T_Method

Dims = Union[str, Iterable[Hashable], None]


Expand Down Expand Up @@ -63,8 +65,8 @@ def xarray_reduce(
dim: Dims | ellipsis = None,
split_out: int = 1,
fill_value=None,
method: str = "map-reduce",
engine: str = "numpy",
method: T_Method = "map-reduce",
engine: T_Engine = "numpy",
keep_attrs: bool | None = True,
skipna: bool | None = None,
min_count: int | None = None,
Expand Down
Loading