1- from _typeshed import Incomplete , StrPath
1+ from _typeshed import Incomplete , StrPath , Unused
22from collections .abc import Iterator , Mapping
33from enum import Enum
44from pathlib import Path
@@ -34,7 +34,7 @@ class editable_wheel(Command):
3434
3535class EditableStrategy (Protocol ):
3636 def __call__ (self , wheel : _WheelFile , files : list [str ], mapping : Mapping [str , str ]) -> None : ...
37- def __enter__ (self ): ...
37+ def __enter__ (self ) -> Self : ...
3838 def __exit__ (
3939 self , _exc_type : type [BaseException ] | None , _exc_value : BaseException | None , _traceback : TracebackType | None
4040 ) -> None : ...
@@ -46,19 +46,15 @@ class _StaticPth:
4646 def __init__ (self , dist : Distribution , name : str , path_entries : list [Path ]) -> None : ...
4747 def __call__ (self , wheel : _WheelFile , files : list [str ], mapping : Mapping [str , str ]): ...
4848 def __enter__ (self ) -> Self : ...
49- def __exit__ (
50- self , _exc_type : type [BaseException ] | None , _exc_value : BaseException | None , _traceback : TracebackType | None
51- ) -> None : ...
49+ def __exit__ (self , _exc_type : Unused , _exc_value : Unused , _traceback : Unused ) -> None : ...
5250
5351class _LinkTree (_StaticPth ):
5452 auxiliary_dir : Path
5553 build_lib : Path
5654 def __init__ (self , dist : Distribution , name : str , auxiliary_dir : StrPath , build_lib : StrPath ) -> None : ...
5755 def __call__ (self , wheel : _WheelFile , files : list [str ], mapping : Mapping [str , str ]): ...
5856 def __enter__ (self ) -> Self : ...
59- def __exit__ (
60- self , _exc_type : type [BaseException ] | None , _exc_value : BaseException | None , _traceback : TracebackType | None
61- ) -> None : ...
57+ def __exit__ (self , _exc_type : Unused , _exc_value : Unused , _traceback : Unused ) -> None : ...
6258
6359class _TopLevelFinder :
6460 dist : Distribution
@@ -68,9 +64,7 @@ class _TopLevelFinder:
6864 def get_implementation (self ) -> Iterator [tuple [str , bytes ]]: ...
6965 def __call__ (self , wheel : _WheelFile , files : list [str ], mapping : Mapping [str , str ]): ...
7066 def __enter__ (self ) -> Self : ...
71- def __exit__ (
72- self , _exc_type : type [BaseException ] | None , _exc_value : BaseException | None , _traceback : TracebackType | None
73- ) -> None : ...
67+ def __exit__ (self , _exc_type : Unused , _exc_value : Unused , _traceback : Unused ) -> None : ...
7468
7569class _NamespaceInstaller (namespaces .Installer ):
7670 distribution : Incomplete
0 commit comments