Skip to content

Fix deprecation GUI warnings for private napari attribute access#396

Merged
LucaMarconato merged 1 commit into
mainfrom
fix/remove-warnings
May 15, 2026
Merged

Fix deprecation GUI warnings for private napari attribute access#396
LucaMarconato merged 1 commit into
mainfrom
fix/remove-warnings

Conversation

@LucaMarconato
Copy link
Copy Markdown
Member

Replace Window._dock_widgets with the public dock_widgets property (removing now-redundant .widget() calls since the public API returns the inner widget directly). Remove dead-code assignments to DataModel._region_key and DataModel._instance_key, whose backing fields are never read — the public properties derive both values from get_table_keys(self.adata) — and drop the unused dataclass fields.

Replace `Window._dock_widgets` with the public `dock_widgets` property
(removing now-redundant `.widget()` calls since the public API returns
the inner widget directly). Remove dead-code assignments to
`DataModel._region_key` and `DataModel._instance_key`, whose backing
fields are never read — the public properties derive both values from
`get_table_keys(self.adata)` — and drop the unused dataclass fields.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@LucaMarconato LucaMarconato merged commit a1150de into main May 15, 2026
5 checks passed
@LucaMarconato LucaMarconato deleted the fix/remove-warnings branch May 15, 2026 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant