summaryrefslogtreecommitdiff
path: root/specview.py
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2023-01-03 12:07:19 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2023-01-03 13:48:29 +0100
commit68646f2b0be486e1fd119b9dd6325122ad374d21 (patch)
tree2238d09fb0d2db72b0be2b7a77d851db9011184c /specview.py
parentf2d8ea38eef4e9d382bf14831c05c06cde478807 (diff)
Replace type comment with ":" annotation
Diffstat (limited to 'specview.py')
-rwxr-xr-xspecview.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/specview.py b/specview.py
index a7ba8a67..e6ee5bb8 100755
--- a/specview.py
+++ b/specview.py
@@ -262,10 +262,10 @@ def _design(item_cache: ItemCache, enabled: List[str]) -> None:
for item in item_cache.all.values():
if not item.is_enabled(enabled):
continue
- components = [] # type: List[Item]
+ components: List[Item] = []
if not _gather_design_components(item, components):
continue
- compact = set() # type: Set[Item]
+ compact: Set[Item] = set()
for component in components:
for component_2 in components:
if component != component_2:
@@ -339,7 +339,7 @@ def _action_list(enabled: List[str], item: Item) -> None:
if post_cond[0]:
print(transition_map.skip_idx_to_name(post_cond[0]))
else:
- names = [] # type: List[str]
+ names: List[str] = []
for co_idx, st_idx in enumerate(post_cond[1:]):
st_name = transition_map.post_co_idx_st_idx_to_st_name(
co_idx, st_idx)
@@ -390,7 +390,7 @@ def _gather_api_names(item: Item, names: Dict[str, List[str]]) -> None:
def _list_api(item_cache: ItemCache) -> None:
- names = {} # type: Dict[str, List[str]]
+ names: Dict[str, List[str]] = {}
_gather_api_names(item_cache["/req/applconfig"], names)
_gather_api_names(item_cache["/if/group"], names)
_gather_api_names(item_cache["/c/if/group"], names)