-
Notifications
You must be signed in to change notification settings - Fork 1k
Expand mypy config, following HomeAssistant #1392
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
e79563f to
9dd23a5
Compare
|
Looks good. Hope the most parts can be done without tooo much editing. |
Enabling all the rules gives ~1000 errors, mostly |
|
That is a plan I highly agree with. As I work through the code, all real externals will be or are defined in init as external symbols, that can at least to identify the external interfaces. Can e.g. "disallow_untyped_defs" be restricted to a module ? if so, we can consider making a API module, and have all external classes (pure interface classes there). That does not sound difficult to do, and will just affect the import statement in the apps. |
|
Once you update your branch (also in the other PRs) you will possibly see more problems. |
I believe so, yes. |
|
Then I suggest (but you decide):
You do not need to do it all in this PR, just put it up for review when you want. |
|
and you have a couple of conflicts to solve... |
Yes, I am rebasing now locally |
9dd23a5 to
23b8735
Compare
23b8735 to
9a0b0fa
Compare
| """ | ||
|
|
||
| handler = None | ||
| handler: ModbusSingleRequestHandler = None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Handler can be all 3 handlers, but I am ok with only typing one of them.
janiversen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Builds on #1388
See #1360