GH-103525: Improve exception message from pathlib.PurePath()
#103526
Merged
pathlib.PurePath()
#103526