Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 1 addition & 3 deletions esmvalcore/_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,8 @@
import time
from copy import deepcopy
from multiprocessing import Pool
from multiprocessing.pool import ApplyResult
from pathlib import Path, PosixPath
from shutil import which
from typing import Dict, Type

import psutil
import yaml
Expand Down Expand Up @@ -736,7 +734,7 @@ def _run_sequential(self) -> None:
def _run_parallel(self, max_parallel_tasks=None):
"""Run tasks in parallel."""
scheduled = self.flatten()
running: Dict[Type[BaseTask], Type[ApplyResult]] = {}
running = {}

n_tasks = n_scheduled = len(scheduled)
n_running = 0
Expand Down
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ multi_line_output = 3
include_trailing_comma = true

[mypy]
# see mypy.readthedocs.io/en/stable/command_line.html
implicit_optional = True
ignore_missing_imports = True
files = esmvalcore, tests

Expand Down