summaryrefslogtreecommitdiff
path: root/git
diff options
context:
space:
mode:
authorYobmod <yobmod@gmail.com>2021-07-06 15:43:56 +0100
committerYobmod <yobmod@gmail.com>2021-07-06 15:43:56 +0100
commited58e2f840749bb4dabd384b812ecb259dc60304 (patch)
tree1195590f55545c16e02cc95e2a6dca57cfb95991 /git
parente6f340cf8617ceb99f6da5f3db902a69308cdec7 (diff)
downloadgitpython-ed58e2f840749bb4dabd384b812ecb259dc60304.tar.gz
Rmv runtime_checkable < py3.8 pt2
Diffstat (limited to 'git')
-rw-r--r--git/objects/submodule/base.py2
-rw-r--r--git/types.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/git/objects/submodule/base.py b/git/objects/submodule/base.py
index 514fcfea..ca408338 100644
--- a/git/objects/submodule/base.py
+++ b/git/objects/submodule/base.py
@@ -142,7 +142,7 @@ class Submodule(IndexObject, TraversableIterableObj):
reader: SectionConstraint = self.config_reader()
# default submodule values
try:
- self.path = reader.get('path')
+ self.path: PathLike = reader.get('path')
except cp.NoSectionError as e:
if self.repo.working_tree_dir is not None:
raise ValueError("This submodule instance does not exist anymore in '%s' file"
diff --git a/git/types.py b/git/types.py
index 0852905b..00f1ae57 100644
--- a/git/types.py
+++ b/git/types.py
@@ -5,7 +5,7 @@
import os
import sys
from typing import (Callable, Dict, NoReturn, Tuple, Union, Any, Iterator, # noqa: F401
- NamedTuple, TYPE_CHECKING, TypeVar, runtime_checkable) # noqa: F401
+ NamedTuple, TYPE_CHECKING, TypeVar) # noqa: F401
if sys.version_info[:2] >= (3, 8):