Skip to content

Commit ed58e2f

Browse files
committed
Rmv runtime_checkable < py3.8 pt2
1 parent e6f340c commit ed58e2f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎git/objects/submodule/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def _set_cache_(self, attr: str) -> None:
142142
reader: SectionConstraint = self.config_reader()
143143
# default submodule values
144144
try:
145-
self.path = reader.get('path')
145+
self.path: PathLike = reader.get('path')
146146
except cp.NoSectionError as e:
147147
if self.repo.working_tree_dir is not None:
148148
raise ValueError("This submodule instance does not exist anymore in '%s' file"

‎git/types.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import os
66
import sys
77
from typing import (Callable, Dict, NoReturn, Tuple, Union, Any, Iterator, # noqa: F401
8-
NamedTuple, TYPE_CHECKING, TypeVar, runtime_checkable) # noqa: F401
8+
NamedTuple, TYPE_CHECKING, TypeVar) # noqa: F401
99

1010

1111
if sys.version_info[:2] >= (3, 8):

0 commit comments

Comments
 (0)