]> git.scottworley.com Git - git-cache/commitdiff
Support old mypy: Explicit bytes cast
authorScott Worley <scottworley@scottworley.com>
Tue, 4 Aug 2020 00:11:19 +0000 (17:11 -0700)
committerScott Worley <scottworley@scottworley.com>
Tue, 4 Aug 2020 00:14:17 +0000 (17:14 -0700)
Changelog
test_git_cache.py

index 647ae1cd5198a016d4b7c0da5c87fe49fa79ba56..499dd3ee7a7a490fce51d2ec626ac37a4efac506 100644 (file)
--- a/Changelog
+++ b/Changelog
@@ -1,4 +1,6 @@
 ## [Unreleased]
+### Changed
+- Build fix for old versions of mypy
 
 
 ## [1.2.0] - 2020-07-17
index ecb11e8e19c9bfd7a1c3ddbab27dd2d5568bdc83..64151fe75b45766af8efa2a1bb9cce742907fbaa 100644 (file)
@@ -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(