summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 3df2b41a..514fcfea 100644
--- a/git/objects/submodule/base.py
+++ b/git/objects/submodule/base.py
@@ -927,7 +927,7 @@ class Submodule(IndexObject, TraversableIterableObj):
import gc
gc.collect()
try:
- rmtree(wtd) # type: ignore ## str()?
+ rmtree(str(wtd))
except Exception as ex:
if HIDE_WINDOWS_KNOWN_ERRORS:
raise SkipTest("FIXME: fails with: PermissionError\n {}".format(ex)) from ex
diff --git a/git/types.py b/git/types.py
index 0e085075..0852905b 100644
--- a/git/types.py
+++ b/git/types.py
@@ -80,7 +80,7 @@ class HSH_TD(TypedDict):
files: Dict[PathLike, Files_TD]
-@runtime_checkable
+# @runtime_checkable
class RepoLike(Protocol):
"""Protocol class to allow structural type-checking of Repo
e.g. when cannot import due to circular imports"""