Message357342
I just realized one problem with this is it explicitly requires subclassing the ABC while os.PathLike is supposed to represent a protocol (before typing.Protocol was a thing).
So why is it bad that in the example class B is considered a "subclass" of os.PathLike by implementing the protocol? Since it implements the expected protocol what exactly is being lost by not checking for an explicit registration or subclass? |
|
Date |
User |
Action |
Args |
2019-11-22 23:38:20 | brett.cannon | set | recipients:
+ brett.cannon, levkivskyi, bar.harel |
2019-11-22 23:38:20 | brett.cannon | set | messageid: <1574465900.65.0.615058423906.issue38878@roundup.psfhosted.org> |
2019-11-22 23:38:20 | brett.cannon | link | issue38878 messages |
2019-11-22 23:38:20 | brett.cannon | create | |
|