fromtypingimportOptionalfrompip._vendor.pkg_resourcesimportDistributionfrompip._internal.distributions.baseimportAbstractDistributionfrompip._internal.index.package_finderimportPackageFinderclassInstalledDistribution(AbstractDistribution):"""Represents an installed package. This does not need any preparation as the required information has already been computed. """defget_pkg_resources_distribution(self):# type: () -> Optional[Distribution]returnself.req.satisfied_bydefprepare_distribution_metadata(self,finder,build_isolation):# type: (PackageFinder, bool) -> Nonepass