mirror of
https://github.com/mandiant/capa.git
synced 2026-01-04 00:37:08 -08:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user