Skip to content

chore: add missing type for message class utils - #257

Merged
Fruktus merged 1 commit into
masterfrom
chore/missing-mypy-types
Aug 4, 2026
Merged

chore: add missing type for message class utils#257
Fruktus merged 1 commit into
masterfrom
chore/missing-mypy-types

Conversation

@Fruktus

@Fruktus Fruktus commented Aug 4, 2026

Copy link
Copy Markdown
Owner

Fix for these errors:

src/QRServer/common/messages.py:975: error: Need type annotation for "__message_classes_full"  [var-annotated]
src/QRServer/common/messages.py:977: error: Argument 2 to "getmembers" has incompatible type "Callable[[Any], Literal[False] | Any]"; expected "Callable[[Any], TypeGuard[Never]]"  [arg-type]
src/QRServer/common/messages.py:977: error: "type[object]" has no attribute "prefix"  [attr-defined]

@Fruktus
Fruktus requested a review from kjarosh as a code owner August 4, 2026 15:29
@Fruktus
Fruktus force-pushed the chore/missing-mypy-types branch 2 times, most recently from 99d3a3b to 5a313c3 Compare August 4, 2026 15:37
Adds missing type annotations for message class utils responsible for building the list of all supported message classes to satisfy mypy
@Fruktus
Fruktus force-pushed the chore/missing-mypy-types branch from 5a313c3 to 88f5edc Compare August 4, 2026 19:26
@Fruktus
Fruktus merged commit ed4dca5 into master Aug 4, 2026
4 checks passed
@Fruktus
Fruktus deleted the chore/missing-mypy-types branch August 4, 2026 19:52
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