Commit f444507
committed
Hoist _CollapsibleSection import to fix ruff F821
The lazy import I added inside ``_wrap_collapsed`` worked at runtime
but tripped ruff F821 because the forward-reference string in the
return annotation pointed at a name that wasn't visible at module
scope. Promote the import to the top alongside ``_t`` and drop the
quoted return type — same behaviour, no shadowing risk, ruff clean.1 parent 0c60c8f commit f444507
1 file changed
Lines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
| |||
1757 | 1759 | | |
1758 | 1760 | | |
1759 | 1761 | | |
1760 | | - | |
| 1762 | + | |
1761 | 1763 | | |
1762 | 1764 | | |
1763 | 1765 | | |
1764 | 1766 | | |
1765 | 1767 | | |
1766 | 1768 | | |
1767 | 1769 | | |
1768 | | - | |
1769 | | - | |
1770 | | - | |
1771 | 1770 | | |
1772 | 1771 | | |
1773 | 1772 | | |
| |||
0 commit comments