]> 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>
Wed, 5 Aug 2020 08:02:09 +0000 (01:02 -0700)
Changelog
test_git_cache.py

index 44b04c1984adb0cc596f18eee1810c5adbab4c34..f25bd9ee873a5c272eb2bbd01113bb56cf194c32 100644 (file)
--- a/Changelog
+++ b/Changelog
@@ -1,4 +1,6 @@
 ## [Unreleased]
 ## [Unreleased]
+### Changed
+- Build fix for old versions of mypy
 
 
 ## [1.1.0] - 2020-07-16
 
 
 ## [1.1.0] - 2020-07-16
index 7408cad13e340992c21f95b612f971bc77dbb0c0..a7ee9958fdea0b5ad0b3b5fe25770d97c1b071b4 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)
 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(
 
 
 def _commit_file(