See the Python [`pathlib`](https://docs.python.org/3/library/pathlib.html). We should probably allow `PurePath` as most generic type.
See the Python
pathlib. We should probably allowPurePathas most generic type.