diff --git a/eland/common.py b/eland/common.py index 667313c..e23afe3 100644 --- a/eland/common.py +++ b/eland/common.py @@ -309,7 +309,7 @@ def elasticsearch_date_to_pandas_date( def ensure_es_client( - es_client: Union[str, List[str], Tuple[str, ...], Elasticsearch] + es_client: Union[str, List[str], Tuple[str, ...], Elasticsearch], ) -> Elasticsearch: if isinstance(es_client, tuple): es_client = list(es_client) diff --git a/noxfile.py b/noxfile.py index 492331e..a404d2a 100644 --- a/noxfile.py +++ b/noxfile.py @@ -58,7 +58,7 @@ TYPED_FILES = ( @nox.session(reuse_venv=True, python="3.11") def format(session): - session.install("black", "isort", "flynt") + session.install("black ~= 25.0", "isort", "flynt") session.run("python", "utils/license-headers.py", "fix", *SOURCE_FILES) session.run("flynt", *SOURCE_FILES) session.run("black", "--target-version=py39", *SOURCE_FILES) @@ -70,7 +70,7 @@ def format(session): def lint(session): # Install numpy to use its mypy plugin # https://numpy.org/devdocs/reference/typing.html#mypy-plugin - session.install("black", "flake8", "mypy", "isort", "numpy") + session.install("black ~= 25.0", "flake8", "mypy", "isort", "numpy") session.install(".") session.run("python", "utils/license-headers.py", "check", *SOURCE_FILES) session.run("black", "--check", "--target-version=py39", *SOURCE_FILES)