barneygale / pathlib-abc

Python base classes for rich path objects
Other
23 stars 1 forks source link

ABCs aren't abstract! #2

Closed barneygale closed 6 months ago

barneygale commented 7 months ago

It shouldn't be possible to directly instantiate PurePathBase or PathBase.

barneygale commented 7 months ago

Actually... the base classes in io can be directly instantiated. Arguable?

merwok commented 6 months ago

Only classes with not-overriden abstract methods can’t be instantiated IIRC. Otherwise you’re free to instantiate an ABC and maybe do useful things with the instance!

barneygale commented 6 months ago

Thank you! Resolving this issue.