Skip to content

Commit 511b941

Browse files
lobziikStranger6667
authored andcommitted
Bump black version due to import err, fix mypy blaming
1 parent b55276b commit 511b941

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ repos:
2020
- id: pydocstyle
2121

2222
- repo: https://github.com/ambv/black
23-
rev: 20.8b1
23+
rev: 22.3.0
2424
hooks:
2525
- id: black
2626
types: [python]

src/wafp/docker.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import subprocess
2-
from typing import Any, List
2+
from typing import Any, List, Union
33

44
from packaging import version
55

@@ -47,7 +47,7 @@ def docker(command: List[str]) -> bytes:
4747
)
4848

4949

50-
def get_docker_version() -> version.Version:
50+
def get_docker_version() -> Union[version.LegacyVersion, version.Version]:
5151
"""Get the installed Docker version info."""
5252
output = subprocess.check_output(
5353
["docker", "version", "--format", "{{json .Client.Version }}"],
@@ -56,7 +56,7 @@ def get_docker_version() -> version.Version:
5656
return version.parse(output.strip(b'"').decode("utf8"))
5757

5858

59-
def get_compose_version() -> version.Version:
59+
def get_compose_version() -> Union[version.LegacyVersion, version.Version]:
6060
"""Get the installed Docker-compose version info."""
6161
output = subprocess.check_output(
6262
["docker-compose", "version", "--short"],

0 commit comments

Comments
 (0)