diff options
author | yobmod <yobmod@gmail.com> | 2021-03-02 21:46:17 +0000 |
---|---|---|
committer | yobmod <yobmod@gmail.com> | 2021-03-02 21:46:17 +0000 |
commit | 2fd9f6ee5c8b4ae4e01a40dc398e2768d838210d (patch) | |
tree | 93a63a1bee90204f68cf41dc08484ad4adab7ad4 /git/util.py | |
parent | 71e28b8e2ac1b8bc8990454721740b2073829110 (diff) | |
download | gitpython-2fd9f6ee5c8b4ae4e01a40dc398e2768d838210d.tar.gz |
add types to git.compat and git.diff
Diffstat (limited to 'git/util.py')
-rw-r--r-- | git/util.py | 9 |
1 files changed, 5 insertions, 4 deletions
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, |