From 2fd9f6ee5c8b4ae4e01a40dc398e2768d838210d Mon Sep 17 00:00:00 2001 From: yobmod Date: Tue, 2 Mar 2021 21:46:17 +0000 Subject: add types to git.compat and git.diff --- git/util.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'git/util.py') diff --git a/git/util.py b/git/util.py index b5cce59d..2b0c8171 100644 --- a/git/util.py +++ b/git/util.py @@ -4,7 +4,6 @@ # This module is part of GitPython and is released under # the BSD License: http://www.opensource.org/licenses/bsd-license.php from git.remote import Remote -from _typeshed import ReadableBuffer import contextlib from functools import wraps import getpass @@ -19,12 +18,14 @@ from sys import maxsize import time from unittest import SkipTest -from typing import (Any, AnyStr, BinaryIO, Callable, Dict, Generator, IO, List, NoReturn, Optional, Pattern, - Sequence, TextIO, Tuple, Union, cast) -from typing_extensions import Literal +# typing --------------------------------------------------------- +from typing import (Any, AnyStr, BinaryIO, Callable, Dict, Generator, IO, List, + NoReturn, Optional, Pattern, Sequence, Tuple, Union, cast) from git.repo.base import Repo from .types import PathLike, TBD +# --------------------------------------------------------------------- + from gitdb.util import ( # NOQA @IgnorePep8 make_sha, -- cgit v1.2.1