Brett Cannon <br...@python.org> added the comment:

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?

----------
nosy: +levkivskyi

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue38878>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to