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.
This commit is contained in:
Ana María Martínez Gómez
2020-07-03 10:20:11 +02:00
parent 6730eb1c5e
commit 6a9842f44f

View File

@@ -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()