diff options
author | Dominic <yobmod@gmail.com> | 2021-06-25 21:38:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-25 21:38:42 +0100 |
commit | eff48b8ba25a0ea36a7286aa16d8888315eb1205 (patch) | |
tree | a17bd63c8bc92f319bf13d610712d161dc25e119 /git/objects/util.py | |
parent | 09fb2274db09e44bf3bc14da482ffa9a98659c54 (diff) | |
download | gitpython-eff48b8ba25a0ea36a7286aa16d8888315eb1205.tar.gz |
Import typevar in util.py
Diffstat (limited to 'git/objects/util.py')
-rw-r--r-- | git/objects/util.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/git/objects/util.py b/git/objects/util.py index 71137264..7736a0b2 100644 --- a/git/objects/util.py +++ b/git/objects/util.py @@ -19,7 +19,7 @@ import calendar from datetime import datetime, timedelta, tzinfo # typing ------------------------------------------------------------ -from typing import (Any, Callable, Deque, Iterator, TYPE_CHECKING, Tuple, Type, Union, cast) +from typing import (Any, Callable, Deque, Iterator, typevar, TYPE_CHECKING, Tuple, Type, Union, cast) if TYPE_CHECKING: from io import BytesIO, StringIO @@ -29,6 +29,8 @@ if TYPE_CHECKING: from .tag import TagObject from .tree import Tree from subprocess import Popen + +T_Iterableobj = typevar('T_Iterableobj', bound=T_Iterableobj) # -------------------------------------------------------------------- |