From 5e1e9fc88610e58bb624144cb0527dfe9356bc53 Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Mon, 3 Aug 2020 17:11:19 -0700 Subject: [PATCH 1/1] 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 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( -- 2.44.1