I'm trying to sublclass Path from pathlib, but I failed with following error at instantiation
from pathlib import Path
class Pl(Path):
def __init__(self, *pathsegments: str):
super().__init__(*pathsegments)
Error at instantiation
AttributeError: type object 'Pl' has no attribute '_flavour'
Update:
I'm inheriting from WindowsPath still doesn't work.
TypeError: object.__init__() takes exactly one argument (the instance to initialize)