From 5dd71f12b4b38160847ad1000bb57d8d049f3f25 Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Mon, 3 Aug 2020 17:11:19 -0700 Subject: [PATCH] Support old mypy: Explicit bytes cast --- Changelog | 2 ++ test_git_cache.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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( -- 2.44.1