os.path is an old API that is soft-deprecated in favor of the type-safe pathlib.Path API.
We should migrate to using pathlib.Path everywhere internally, with care being take to ensure that we still accept strings everywhere we currently do so as not to break public API.
os.pathis an old API that is soft-deprecated in favor of the type-safepathlib.PathAPI.We should migrate to using
pathlib.Patheverywhere internally, with care being take to ensure that we still accept strings everywhere we currently do so as not to break public API.