summaryrefslogtreecommitdiff
path: root/src/_pytest
diff options
context:
space:
mode:
authorantonblr <anton.hrynevich@percolate.com>2020-12-18 12:36:20 -0800
committerantonblr <anton.hrynevich@percolate.com>2020-12-18 12:36:20 -0800
commit196b173c8a86833b96f90128a6cc9928e17b6c23 (patch)
treee90bd855cee38db47c0d9b7d510e2b0011a5433a /src/_pytest
parent15156e94c49da11c6fc5a57d576d655cc7794fdf (diff)
downloadpytest-196b173c8a86833b96f90128a6cc9928e17b6c23.tar.gz
address comments
Diffstat (limited to 'src/_pytest')
-rw-r--r--src/_pytest/nodes.py2
-rw-r--r--src/_pytest/python.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/_pytest/nodes.py b/src/_pytest/nodes.py
index 27c76a043..1b3ec5571 100644
--- a/src/_pytest/nodes.py
+++ b/src/_pytest/nodes.py
@@ -528,7 +528,7 @@ class FSCollector(Collector):
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)
diff --git a/src/_pytest/python.py b/src/_pytest/python.py
index 018e368f4..3ff04455f 100644
--- a/src/_pytest/python.py
+++ b/src/_pytest/python.py
@@ -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)