mypy: guard Optional Qt widgets/models (union-attr bucket) #18
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "pr/mypy-none-guards"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
mypy: guard Optional Qt widgets/models (union-attr bucket).
PyQt6 stubs return
Optionalforlayout()/model()/header()/page()/document()/mimeData()/popup()etc. Each call site binds to a local with aNoneguard, or uses an already-owned reference:selectionModel()guardtree.model()→self.model;layout()guardsverticalScrollBar,document,_clear_layoutguardsaddWidget(stretch=…)); reflowdocument()guarddocument()/mimeData()guardspopup()/completionModel()guardsheader()/settings()/page()guards incl.scroll_messageassert stdout is not NoneinSyncMailThreadRebased after #17: 122 → 62 on this branch, zero new. Stacks on #17 (base updated).
0eded1ea79to220708c885220708c885toaa7351a15f