From: Scott Worley Date: Tue, 4 Aug 2020 00:11:19 +0000 (-0700) Subject: Support old mypy: Explicit bytes cast X-Git-Tag: v1.2.1~1 X-Git-Url: http://git.scottworley.com/git-cache/commitdiff_plain/5dd71f12b4b38160847ad1000bb57d8d049f3f25 Support old mypy: Explicit bytes cast --- diff --git a/Changelog b/Changelog index 647ae1c..499dd3e 100644 --- a/Changelog +++ b/Changelog @@ -1,4 +1,6 @@ ## [Unreleased] +### Changed +- Build fix for old versions of mypy ## [1.2.0] - 2020-07-17 diff --git a/test_git_cache.py b/test_git_cache.py index ecb11e8..64151fe 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(