Fixing Subclassing in Pathlib

If you’re going to provide a class decorator, why not just go the route of paramterizing your classes with a required keyword arg from __init_subclass__?

Require __init_subclass__ to specify if posix or windows

1 Like