PathLike: change to Protocol (#4447)

Co-authored-by: hauntsaninja <>
This commit is contained in:
Shantanuandhauntsaninja authored and GitHub committed 2020-08-16 05:15:51 -07:00
1 parent 3be7918eb2
commit b438ccc3bc
3 files changed
+7 -5

No files matched your search

+1 -1
View File
@@ -265,7 +265,7 @@ if sys.version_info >= (3, 6):
_FdOrAnyPath = Union[int, AnyPath]
if sys.version_info >= (3, 6):
class DirEntry(PathLike[AnyStr]):
class DirEntry(Generic[AnyStr]):
# This is what the scandir interator yields
# The constructor is hidden