@@ -20,7 +20,7 @@ from ._vendored_packaging import requirements as _packaging_requirements, versio
2020_T = TypeVar ("_T" )
2121_DistributionT = TypeVar ("_DistributionT" , bound = Distribution )
2222_NestedStr : TypeAlias = str | Iterable [_NestedStr ]
23- _InstallerTypeT : TypeAlias = Callable [[Requirement ], _DistributionT ] # noqa: Y043
23+ _StrictInstallerType : TypeAlias = Callable [[Requirement ], _DistributionT ]
2424_InstallerType : TypeAlias = Callable [[Requirement ], Distribution | None ]
2525_PkgReqType : TypeAlias = str | Requirement
2626_EPDistType : TypeAlias = Distribution | _PkgReqType
@@ -128,7 +128,7 @@ class WorkingSet:
128128 self ,
129129 requirements : Iterable [Requirement ],
130130 env : Environment | None ,
131- installer : _InstallerTypeT [_DistributionT ],
131+ installer : _StrictInstallerType [_DistributionT ],
132132 replace_conflicting : bool = False ,
133133 extras : tuple [str , ...] | None = None ,
134134 ) -> list [_DistributionT ]: ...
@@ -138,7 +138,7 @@ class WorkingSet:
138138 requirements : Iterable [Requirement ],
139139 env : Environment | None = None ,
140140 * ,
141- installer : _InstallerTypeT [_DistributionT ],
141+ installer : _StrictInstallerType [_DistributionT ],
142142 replace_conflicting : bool = False ,
143143 extras : tuple [str , ...] | None = None ,
144144 ) -> list [_DistributionT ]: ...
@@ -156,7 +156,7 @@ class WorkingSet:
156156 self ,
157157 plugin_env : Environment ,
158158 full_env : Environment | None ,
159- installer : _InstallerTypeT [_DistributionT ],
159+ installer : _StrictInstallerType [_DistributionT ],
160160 fallback : bool = True ,
161161 ) -> tuple [list [_DistributionT ], dict [Distribution , Exception ]]: ...
162162 @overload
@@ -165,7 +165,7 @@ class WorkingSet:
165165 plugin_env : Environment ,
166166 full_env : Environment | None = None ,
167167 * ,
168- installer : _InstallerTypeT [_DistributionT ],
168+ installer : _StrictInstallerType [_DistributionT ],
169169 fallback : bool = True ,
170170 ) -> tuple [list [_DistributionT ], dict [Distribution , Exception ]]: ...
171171 @overload
@@ -193,7 +193,7 @@ class Environment:
193193 self ,
194194 req : Requirement ,
195195 working_set : WorkingSet ,
196- installer : _InstallerTypeT [_DistributionT ],
196+ installer : _StrictInstallerType [_DistributionT ],
197197 replace_conflicting : bool = False ,
198198 ) -> _DistributionT : ...
199199 @overload
@@ -205,7 +205,7 @@ class Environment:
205205 replace_conflicting : bool = False ,
206206 ) -> Distribution | None : ...
207207 @overload
208- def obtain (self , requirement : Requirement , installer : _InstallerTypeT [_DistributionT ]) -> _DistributionT : ...
208+ def obtain (self , requirement : Requirement , installer : _StrictInstallerType [_DistributionT ]) -> _DistributionT : ...
209209 @overload
210210 def obtain (self , requirement : Requirement , installer : Callable [[Requirement ], None ] | None = None ) -> None : ...
211211 @overload
0 commit comments