Open gjost opened 4 years ago
Replace str paths with pathlib.Path. Subclass pathlib.Path so absolute and relative paths can be tracked by type hinting:
str
pathlib.Path
class AbsPath(pathlib.Path): pass class RelPath(pathlib.Path): pass
Replace
str
paths withpathlib.Path
. Subclasspathlib.Path
so absolute and relative paths can be tracked by type hinting: