From: Philippe Proulx Date: Tue, 8 Sep 2020 20:19:02 +0000 (-0400) Subject: config_parse_v2.py: fix typing issue X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=5c841bbf968c9c05d612d16d3ab92d17c83bb400;p=deliverable%2Fbarectf.git config_parse_v2.py: fix typing issue Reported by mypy 0.782. Signed-off-by: Philippe Proulx --- diff --git a/barectf/config_parse_v2.py b/barectf/config_parse_v2.py index 7c0c185..59f9733 100644 --- a/barectf/config_parse_v2.py +++ b/barectf/config_parse_v2.py @@ -488,7 +488,7 @@ class _Parser(config_parse_common._Parser): # Move `byte-order` property to root node's `target-byte-order` # property. - self._root_node['target-byte-order'] = v2_trace_node['byte-order'] + typing.cast(_MapNode, self._root_node)['target-byte-order'] = v2_trace_node['byte-order'] # copy `uuid` property _copy_prop_if_exists(v3_trace_type_node, v2_trace_node, 'uuid')