File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
colcon_core/package_identification Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 44import copy
55import traceback
66from typing import Dict
7- from typing import TypeVar
7+ from typing import Union
88
99from colcon_core .logging import colcon_logger
1010from colcon_core .package_descriptor import PackageDescriptor
@@ -79,16 +79,13 @@ def get_package_identification_extensions():
7979 return order_extensions_grouped_by_priority (extensions )
8080
8181
82- ReturnType = TypeVar ('ReturnType' , None , bool , PackageDescriptor )
83-
84-
8582def identify (
8683 extensions : Dict [ # actually an OrderedDict
8784 int , # priority
8885 Dict [str , PackageIdentificationExtensionPoint ], # an OrderedDict
8986 ],
9087 path : str ,
91- ) -> ReturnType :
88+ ) -> Union [ None , bool , PackageDescriptor ] :
9289 """
9390 Identify the package in the given path.
9491
You can’t perform that action at this time.
0 commit comments