@@ -19,12 +19,12 @@ class SourceDistribution(AbstractDistribution):
1919 generated, either using PEP 517 or using the legacy `setup.py egg_info`.
2020 """
2121
22- def get_pkg_resources_distribution (self ):
23- # type: () -> Distribution
22+ def get_pkg_resources_distribution (self ) -> Distribution :
2423 return self .req .get_dist ()
2524
26- def prepare_distribution_metadata (self , finder , build_isolation ):
27- # type: (PackageFinder, bool) -> None
25+ def prepare_distribution_metadata (
26+ self , finder : PackageFinder , build_isolation : bool
27+ ) -> None :
2828 # Load pyproject.toml, to determine whether PEP 517 is to be used
2929 self .req .load_pyproject_toml ()
3030
@@ -35,10 +35,10 @@ def prepare_distribution_metadata(self, finder, build_isolation):
3535
3636 self .req .prepare_metadata ()
3737
38- def _setup_isolation (self , finder ) :
39- # type: (PackageFinder) -> None
40- def _raise_conflicts ( conflicting_with , conflicting_reqs ):
41- # type: (str, Set[Tuple[str, str]] ) -> None
38+ def _setup_isolation (self , finder : PackageFinder ) -> None :
39+ def _raise_conflicts (
40+ conflicting_with : str , conflicting_reqs : Set [ Tuple [ str , str ]]
41+ ) -> None :
4242 format_string = (
4343 "Some build dependencies for {requirement} "
4444 "conflict with {conflicting_with}: {description}."
0 commit comments