Skip to content

Enable mypy --disallow-untyped-calls --disallow-untyped-defs - #1345

Merged
cschramm merged 1 commit into
blueman-project:masterfrom
cschramm:types-polish
Aug 26, 2020
Merged

Enable mypy --disallow-untyped-calls --disallow-untyped-defs#1345
cschramm merged 1 commit into
blueman-project:masterfrom
cschramm:types-polish

Conversation

@cschramm

Copy link
Copy Markdown
Member

We're basically mypy --strict now, just --disallow-subclassing-any is missing as all the untyped GLib / Gtk classes we inherit from are considered Any. This can be fixed by adding stubs for them which will reveal all kinds of edge cases I guess.

Depends on #1338 #1340 #1341.

@cschramm
cschramm force-pushed the types-polish branch 5 times, most recently from c81f0ba to 2121825 Compare August 20, 2020 19:58
We're basically mypy --strict now, just --disallow-subclassing-any is missing as all the untyped GLib / Gtk classes we inherit from are considered Any. This can be fixed by adding stubs for them which will reveal all kinds of edge cases I guess.
@cschramm
cschramm marked this pull request as ready for review August 26, 2020 22:16
@cschramm
cschramm requested a review from infirit August 26, 2020 22:16
@cschramm
cschramm merged commit 5093019 into blueman-project:master Aug 26, 2020
@cschramm
cschramm deleted the types-polish branch August 26, 2020 22:18
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.

2 participants