While reviewing the interface for Distribution, I realized that locate_file was incorrectly reporting a return of pathlib.Path when it in fact could be a zipfile.Path or other SimplePath. This change expands the definition of SimplePath and then applies it to Distribution.locate_file and PackagePath.
Corrected the interface for SimplePath to encompass the expectations of locate_file and PackagePath.
While reviewing the interface for
Distribution
, I realized thatlocate_file
was incorrectly reporting a return ofpathlib.Path
when it in fact could be azipfile.Path
or otherSimplePath
. This change expands the definition ofSimplePath
and then applies it toDistribution.locate_file
andPackagePath
.