diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2023-01-03 12:07:19 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2023-01-03 13:48:29 +0100 |
commit | 68646f2b0be486e1fd119b9dd6325122ad374d21 (patch) | |
tree | 2238d09fb0d2db72b0be2b7a77d851db9011184c /rtemsspec/applconfig.py | |
parent | pylint: Disable no-self-use (diff) | |
download | rtems-central-68646f2b0be486e1fd119b9dd6325122ad374d21.tar.bz2 |
Replace type comment with ":" annotation
Diffstat (limited to 'rtemsspec/applconfig.py')
-rw-r--r-- | rtemsspec/applconfig.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rtemsspec/applconfig.py b/rtemsspec/applconfig.py index 78505a34..32dd8bd9 100644 --- a/rtemsspec/applconfig.py +++ b/rtemsspec/applconfig.py @@ -212,7 +212,7 @@ def _generate_feature(content: _ContentAdaptor, item: Item, def _get_constraints(content: _ContentAdaptor, item: Item, enabled: List[str]) -> List[str]: - constraints = [] # type: List[str] + constraints: List[str] = [] for parent in item.parents("constraint"): if not parent.is_enabled(enabled): continue @@ -339,7 +339,7 @@ def generate(config: dict, group_uids: List[str], for group_config in config["groups"]: group = item_cache[group_config["uid"]] assert group.type == "interface/appl-config-group" - options = {} # type: ItemMap + options: ItemMap = {} for child in group.children("interface-ingroup"): if child.type.startswith("interface/appl-config-option"): options[child.uid] = child |