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
12import typing as t
23from contextvars import ContextVar
34
910preview_targets = ContextVar ('preview_targets' , default = PREVIEW_TARGETS )
1011
1112
13+ if sys .version_info < (3 , 8 ):
14+ from typing_extensions import Literal
15+ else :
16+ from typing import Literal
17+
18+
1219def _expand_target_values (values : t .List [t .List [t .Any ]], target_index : int ) -> t .List [t .List [t .Any ]]:
1320 """
1421 Expands target-specific values into individual test cases.
@@ -93,7 +100,7 @@ def decorator(func):
93100 return decorator
94101
95102
96- ValidTargets = t . Literal ['supported_targets' , 'preview_targets' , 'all' ]
103+ ValidTargets = Literal ['supported_targets' , 'preview_targets' , 'all' ]
97104
98105
99106def soc_filtered_targets (soc_statement : str , targets : ValidTargets = 'all' ) -> t .List [str ]:
You can’t perform that action at this time.
0 commit comments