File tree 1 file changed +4
-4
lines changed
opentelemetry-instrumentation/src/opentelemetry/instrumentation
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change
1
+ from importlib .metadata import Distribution , PackageNotFoundError , version
1
2
from logging import getLogger
2
- from typing import Collection , Optional
3
+ from typing import Collection , Optional , Union
3
4
4
- from packaging .requirements import Requirement , InvalidRequirement
5
- from importlib .metadata import PackageNotFoundError , Distribution , version
5
+ from packaging .requirements import InvalidRequirement , Requirement
6
6
7
7
logger = getLogger (__name__ )
8
8
@@ -38,7 +38,7 @@ def get_dist_dependency_conflicts(
38
38
39
39
40
40
def get_dependency_conflicts (
41
- deps : Collection [str , Requirement ],
41
+ deps : Collection [Union [ str , Requirement ] ],
42
42
) -> Optional [DependencyConflict ]:
43
43
for dep in deps :
44
44
if isinstance (dep , Requirement ):
You can’t perform that action at this time.
0 commit comments