address comments

This commit is contained in:
antonblr
2020-12-18 12:36:20 -08:00
parent 15156e94c4
commit 196b173c8a
6 changed files with 123 additions and 95 deletions

View File

@@ -660,7 +660,7 @@ class Package(Module):
warnings.warn(FSCOLLECTOR_GETHOOKPROXY_ISINITPATH, stacklevel=2)
return self.session.gethookproxy(fspath)
def isinitpath(self, path: "os.PathLike[str]") -> bool:
def isinitpath(self, path: Union[str, "os.PathLike[str]"]) -> bool:
warnings.warn(FSCOLLECTOR_GETHOOKPROXY_ISINITPATH, stacklevel=2)
return self.session.isinitpath(path)