Skip to content

Commit 8f1d506

Browse files
committed
chore: keep browser-scoped generator lint clean
Sort the generator script imports and keep the deterministic browser-scoped generation path aligned with the repo lint pipeline. Made-with: Cursor
1 parent 5eb668e commit 8f1d506

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

scripts/generate_browser_scoped.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from __future__ import annotations
66

77
import ast
8+
from typing import Iterable
89
from pathlib import Path
910
from dataclasses import dataclass
1011

@@ -618,9 +619,9 @@ def _emit_module() -> str:
618619
parts.append("")
619620

620621
facade_entries = _facade_entries_from_browsers_py()
621-
for _prop, sync_cls in facade_entries:
622-
if sync_cls not in _class_file_cache:
623-
raise RuntimeError(f"facade references unknown resource class {sync_cls!r}")
622+
for _prop, facade_sync_name in facade_entries:
623+
if facade_sync_name not in _class_file_cache:
624+
raise RuntimeError(f"facade references unknown resource class {facade_sync_name!r}")
624625
parts.append(_emit_facade_mixins(facade_entries))
625626
parts.append("")
626627

0 commit comments

Comments
 (0)