Skip to content

Commit 3dc8d68

Browse files
committed
Pin black to version supporting Python 2
1 parent bf1d462 commit 3dc8d68

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

elasticsearch/connection/http_urllib3.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import ssl
1919
from typing import Any, Mapping, Optional, Union
2020

21-
import urllib3 # type: ignore
21+
import urllib3
2222

2323
from .base import Connection
2424

noxfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def test(session):
3636

3737
@nox.session()
3838
def format(session):
39-
session.install("black", "isort")
39+
session.install("black==21.12b0", "isort")
4040

4141
session.run("isort", "--profile=black", *SOURCE_FILES)
4242
session.run("black", "--target-version=py27", *SOURCE_FILES)
@@ -47,7 +47,7 @@ def format(session):
4747

4848
@nox.session()
4949
def lint(session):
50-
session.install("flake8", "black", "mypy", "isort", "types-requests")
50+
session.install("flake8", "black==21.12b0", "mypy", "isort", "types-requests")
5151

5252
session.run("isort", "--check", "--profile=black", *SOURCE_FILES)
5353
session.run("black", "--target-version=py27", "--check", *SOURCE_FILES)

0 commit comments

Comments
 (0)