From 595181da70978ed44983a6c0ca4cb6d982ba0e8b Mon Sep 17 00:00:00 2001 From: Yobmod Date: Sun, 16 May 2021 21:21:44 +0100 Subject: flake8 and mypy fixes --- git/refs/log.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'git/refs') diff --git a/git/refs/log.py b/git/refs/log.py index fcd2c23c..363c3c5d 100644 --- a/git/refs/log.py +++ b/git/refs/log.py @@ -97,8 +97,8 @@ class RefLogEntry(tuple): " Got %s" % repr(line)) # END handle first split - oldhexsha = info[:40] - newhexsha = info[41:81] + oldhexsha = info[:40] # type: str + newhexsha = info[41:81] # type: str for hexsha in (oldhexsha, newhexsha): if not cls._re_hexsha_only.match(hexsha): raise ValueError("Invalid hexsha: %r" % (hexsha,)) -- cgit v1.2.1