`os.PathLike` is a special class which overrides `__subclasshook__` so that `isinstance(x, os.PathLike)` returns true if `x` has an `__fspath__` method. To achieve equivalent behavior when typechecking, `os.PathLike` should be treated as a protocol.