Skip to content

PR: Add type hints for IDE support#304

Open
BBC-Esq wants to merge 2 commits intospyder-ide:masterfrom
BBC-Esq:add-type-hints
Open

PR: Add type hints for IDE support#304
BBC-Esq wants to merge 2 commits intospyder-ide:masterfrom
BBC-Esq:add-type-hints

Conversation

@BBC-Esq
Copy link
Copy Markdown

@BBC-Esq BBC-Esq commented Mar 20, 2026

add type hints for ide

@dalthviz dalthviz added this to the v1.5.0 milestone Apr 17, 2026
Copy link
Copy Markdown
Member

@dalthviz dalthviz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for working on this @BBC-Esq Left a couple of comments in places where there are still some missing type annotations

Comment thread qtawesome/animation.py
self.step = step
self.autostart = autostart

self.info = {}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This also requires a type hint. Something like:

self.info: dict[QWidget, tuple[QTimer, int, int]] = {}

Comment thread qtawesome/iconic_font.py
Comment on lines 392 to 398
self.painters = {}
self.fontname = {}
self.fontdata = {}
self.fontids = {}
self.charmap = {}
self.icon_cache = {}
self.rawfont_cache = {}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All of these also need type annotations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants