Message357174
Quick and small fix.
os.PathLike.__subclasshook__ does not check if cls is PathLike as abstract classes should.
This in turn causes this bug:
class A(PathLike):
pass
class B:
def __fspath__(self):
pass
assert issubclass(B, A)
I will fix the bug later today and push a patch over to python/cpython on GitHub. |
|
Date |
User |
Action |
Args |
2019-11-21 15:00:21 | bar.harel | set | recipients:
+ bar.harel |
2019-11-21 15:00:21 | bar.harel | set | messageid: <1574348421.53.0.110066874407.issue38878@roundup.psfhosted.org> |
2019-11-21 15:00:21 | bar.harel | link | issue38878 messages |
2019-11-21 15:00:21 | bar.harel | create | |
|