Skip to content

Commit fc94b57

Browse files
committed
fix: satisfy lint for the summaries bridge (Codex follow-up)
Codex's follow-up run flagged two Ruff findings its sandbox commit never reached this branch with: the un-formatted import block in cmd_summaries (I001) and the quoted Finding annotation in to_module (UP037). Applied the same fixes here.
1 parent ac3fd1e commit fc94b57

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

‎ownlang/__main__.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,7 @@ def cmd_summaries(path: str) -> int:
314314
this surface reports state, it does not judge); 2 only for unreadable
315315
facts, like `ownir`."""
316316
import json
317+
317318
from .ownir import OwnIRError, dump_summaries, load
318319
try:
319320
doc = dump_summaries(load(path))

‎ownlang/ownir.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@ def _prelude_resources() -> list[ResourceDecl]:
824824

825825
def to_module(facts: dict[str, Any],
826826
notes: list[str] | None = None,
827-
advisories: list["Finding"] | None = None,
827+
advisories: list[Finding] | None = None,
828828
) -> tuple[Module, dict[str, dict[str, Any]]]:
829829
"""Build the core `Module` AST **directly** from OwnIR facts — no `.own` source
830830
text and no re-parse (P-016 B0a; the round-trip `to_own` + `parse` has existed

0 commit comments

Comments
 (0)