Skip to content

Commit

Permalink
Lint checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Aayush-Goel-04 committed Feb 5, 2024
1 parent 10d2140 commit 9bebffc
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions capa/render/result_document.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,7 @@ class CompoundStatementType:
OPTIONAL = "optional"


class StatementModel(FrozenModel):
...
class StatementModel(FrozenModel): ...


class CompoundStatement(StatementModel):
Expand Down Expand Up @@ -677,9 +676,9 @@ def from_capa(cls, meta: Metadata, rules: RuleSet, capabilities: MatchResults) -
return ResultDocument(meta=meta, rules=rule_matches)

def to_capa(self) -> Tuple[Metadata, Dict]:
capabilities: Dict[
str, List[Tuple[capa.features.address.Address, capa.features.common.Result]]
] = collections.defaultdict(list)
capabilities: Dict[str, List[Tuple[capa.features.address.Address, capa.features.common.Result]]] = (
collections.defaultdict(list)
)

# this doesn't quite work because we don't have the rule source for rules that aren't matched.
rules_by_name = {
Expand Down

0 comments on commit 9bebffc

Please sign in to comment.