From 6a9842f44fb79fb91605f1fa3d360f34c3ce13c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ana=20Mar=C3=ADa=20Mart=C3=ADnez=20G=C3=B3mez?= Date: Fri, 3 Jul 2020 10:20:11 +0200 Subject: [PATCH] Fix misplaced type annotation A misplaced type annotation in `capa/main.py` causes that black fails to solve offenses in this file. It may also make capa fail in newer Python versions. Replace type by `schema` as we don't use type checker tools. --- capa/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/capa/main.py b/capa/main.py index ca90b24c..284c3d03 100644 --- a/capa/main.py +++ b/capa/main.py @@ -104,7 +104,7 @@ def find_capabilities(ruleset, extractor, disable_progress=None): all_bb_matches[rule_name].extend(res) # mapping from matched rule feature to set of addresses at which it matched. - # type: Dict[MatchedRule, Set[int]] + # schema: Dic[MatchedRule: Set[int] function_features = { capa.features.MatchedRule(rule_name): set(map(lambda p: p[0], results)) for rule_name, results in all_function_matches.items()