Skip to content

Commit

Permalink
Fix mypy checks
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwhite committed Mar 6, 2024
1 parent 8149e3f commit 609906b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/mypy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
python-version: ["3.9"]
python-version: ["3.11"]

steps:
- name: Checkout source
Expand Down
2 changes: 1 addition & 1 deletion cubed/runtime/executors/asyncio.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ async def async_map_unordered(
if backup:
if not backup.done() or not backup.exception():
continue
raise task.exception()
raise task.exception() # type: ignore
end_times[task] = time.monotonic()
if return_stats:
result, stats = task.result()
Expand Down
1 change: 1 addition & 0 deletions cubed/runtime/executors/python_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ async def async_execute_dag(
compute_arrays_in_parallel: Optional[bool] = None,
**kwargs,
) -> None:
concurrent_executor: Executor
use_processes = kwargs.pop("use_processes", False)
if use_processes:
max_workers = kwargs.pop("max_workers", None)
Expand Down
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ ignore_missing_imports = True
ignore_missing_imports = True
[mypy-array_api_compat.*]
ignore_missing_imports = True
[mypy-cloudpickle.*]
ignore_missing_imports = True
[mypy-coiled.*]
ignore_missing_imports = True
[mypy-dask.*]
Expand Down

0 comments on commit 609906b

Please sign in to comment.