File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
pytest-embedded-idf/pytest_embedded_idf Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change
1
+ import sys
1
2
import typing as t
2
3
from contextvars import ContextVar
3
4
9
10
preview_targets = ContextVar ('preview_targets' , default = PREVIEW_TARGETS )
10
11
11
12
13
+ if sys .version_info < (3 , 8 ):
14
+ from typing_extensions import Literal
15
+ else :
16
+ from typing import Literal
17
+
18
+
12
19
def _expand_target_values (values : t .List [t .List [t .Any ]], target_index : int ) -> t .List [t .List [t .Any ]]:
13
20
"""
14
21
Expands target-specific values into individual test cases.
@@ -93,7 +100,7 @@ def decorator(func):
93
100
return decorator
94
101
95
102
96
- ValidTargets = t . Literal ['supported_targets' , 'preview_targets' , 'all' ]
103
+ ValidTargets = Literal ['supported_targets' , 'preview_targets' , 'all' ]
97
104
98
105
99
106
def soc_filtered_targets (soc_statement : str , targets : ValidTargets = 'all' ) -> t .List [str ]:
You can’t perform that action at this time.
0 commit comments