From: Scott Worley Date: Tue, 4 Aug 2020 00:11:19 +0000 (-0700) Subject: Support old mypy: Explicit bytes cast X-Git-Tag: v1.1.1~1 X-Git-Url: http://git.scottworley.com/git-cache/commitdiff_plain/5e1e9fc88610e58bb624144cb0527dfe9356bc53?hp=8733638171d4a6908dd4d3e2fe9d0f0a08e0d6a5 Support old mypy: Explicit bytes cast --- diff --git a/Changelog b/Changelog index 44b04c1..f25bd9e 100644 --- a/Changelog +++ b/Changelog @@ -1,4 +1,6 @@ ## [Unreleased] +### Changed +- Build fix for old versions of mypy ## [1.1.0] - 2020-07-16 diff --git a/test_git_cache.py b/test_git_cache.py index 7408cad..a7ee995 100644 --- a/test_git_cache.py +++ b/test_git_cache.py @@ -10,7 +10,7 @@ import git_cache def _git(directory: str, *args: str) -> bytes: p = subprocess.run(['git', '-C', directory] + list(args), stdout=subprocess.PIPE, check=True) - return p.stdout + return bytes(p.stdout) def _commit_file(