lots of mypy

This commit is contained in:
Willi Ballenthin
2022-12-14 10:37:39 +01:00
parent b1d6fcd6c8
commit b819033da0
29 changed files with 410 additions and 233 deletions

View File

@@ -98,7 +98,7 @@ def test_rule_reformat_order():
def test_rule_reformat_meta_update():
# test updating the rule content after parsing
rule = textwrap.dedent(
src = textwrap.dedent(
"""
rule:
meta:
@@ -116,7 +116,7 @@ def test_rule_reformat_meta_update():
"""
)
rule = capa.rules.Rule.from_yaml(rule)
rule = capa.rules.Rule.from_yaml(src)
rule.name = "test rule"
assert rule.to_yaml() == EXPECTED