recent jedi/parso versions uses Path instead of str. (cherry picked from commit b99096b1f0)
b99096b1f0