@@ -20,7 +20,7 @@ from ._vendored_packaging import requirements as _packaging_requirements, versio
20
20
_T = TypeVar ("_T" )
21
21
_DistributionT = TypeVar ("_DistributionT" , bound = Distribution )
22
22
_NestedStr : TypeAlias = str | Iterable [_NestedStr ]
23
- _InstallerTypeT : TypeAlias = Callable [[Requirement ], _DistributionT ] # noqa: Y043
23
+ _StrictInstallerType : TypeAlias = Callable [[Requirement ], _DistributionT ]
24
24
_InstallerType : TypeAlias = Callable [[Requirement ], Distribution | None ]
25
25
_PkgReqType : TypeAlias = str | Requirement
26
26
_EPDistType : TypeAlias = Distribution | _PkgReqType
@@ -128,7 +128,7 @@ class WorkingSet:
128
128
self ,
129
129
requirements : Iterable [Requirement ],
130
130
env : Environment | None ,
131
- installer : _InstallerTypeT [_DistributionT ],
131
+ installer : _StrictInstallerType [_DistributionT ],
132
132
replace_conflicting : bool = False ,
133
133
extras : tuple [str , ...] | None = None ,
134
134
) -> list [_DistributionT ]: ...
@@ -138,7 +138,7 @@ class WorkingSet:
138
138
requirements : Iterable [Requirement ],
139
139
env : Environment | None = None ,
140
140
* ,
141
- installer : _InstallerTypeT [_DistributionT ],
141
+ installer : _StrictInstallerType [_DistributionT ],
142
142
replace_conflicting : bool = False ,
143
143
extras : tuple [str , ...] | None = None ,
144
144
) -> list [_DistributionT ]: ...
@@ -156,7 +156,7 @@ class WorkingSet:
156
156
self ,
157
157
plugin_env : Environment ,
158
158
full_env : Environment | None ,
159
- installer : _InstallerTypeT [_DistributionT ],
159
+ installer : _StrictInstallerType [_DistributionT ],
160
160
fallback : bool = True ,
161
161
) -> tuple [list [_DistributionT ], dict [Distribution , Exception ]]: ...
162
162
@overload
@@ -165,7 +165,7 @@ class WorkingSet:
165
165
plugin_env : Environment ,
166
166
full_env : Environment | None = None ,
167
167
* ,
168
- installer : _InstallerTypeT [_DistributionT ],
168
+ installer : _StrictInstallerType [_DistributionT ],
169
169
fallback : bool = True ,
170
170
) -> tuple [list [_DistributionT ], dict [Distribution , Exception ]]: ...
171
171
@overload
@@ -193,7 +193,7 @@ class Environment:
193
193
self ,
194
194
req : Requirement ,
195
195
working_set : WorkingSet ,
196
- installer : _InstallerTypeT [_DistributionT ],
196
+ installer : _StrictInstallerType [_DistributionT ],
197
197
replace_conflicting : bool = False ,
198
198
) -> _DistributionT : ...
199
199
@overload
@@ -205,7 +205,7 @@ class Environment:
205
205
replace_conflicting : bool = False ,
206
206
) -> Distribution | None : ...
207
207
@overload
208
- def obtain (self , requirement : Requirement , installer : _InstallerTypeT [_DistributionT ]) -> _DistributionT : ...
208
+ def obtain (self , requirement : Requirement , installer : _StrictInstallerType [_DistributionT ]) -> _DistributionT : ...
209
209
@overload
210
210
def obtain (self , requirement : Requirement , installer : Callable [[Requirement ], None ] | None = None ) -> None : ...
211
211
@overload
0 commit comments