Fixing Pyright #18
Annotations
8 errors and 1 warning
Pyright:
mqtt.py#L40
Argument of type "bool | Unknown" cannot be assigned to parameter "hostname" of type "str" in function "__init__"
Type "bool | Unknown" is not assignable to type "str"
"bool" is not assignable to "str" (reportArgumentType)
|
Pyright:
mqtt.py#L42
Argument of type "bool | Unknown" cannot be assigned to parameter "username" of type "str | None" in function "__init__"
Type "bool | Unknown" is not assignable to type "str | None"
Type "bool" is not assignable to type "str | None"
"bool" is not assignable to "str"
"bool" is not assignable to "None" (reportArgumentType)
|
Pyright:
mqtt.py#L43
Argument of type "bool | Unknown" cannot be assigned to parameter "password" of type "str | None" in function "__init__"
Type "bool | Unknown" is not assignable to type "str | None"
Type "bool" is not assignable to type "str | None"
"bool" is not assignable to "str"
"bool" is not assignable to "None" (reportArgumentType)
|
Pyright:
mqtt.py#L67
Cannot access attribute "format" for class "bool"
Attribute "format" is unknown (reportAttributeAccessIssue)
|
Pyright:
mqtt.py#L85
Cannot access attribute "format" for class "bool"
Attribute "format" is unknown (reportAttributeAccessIssue)
|
Pyright:
mqtt.py#L97
Cannot access attribute "format" for class "bool"
Attribute "format" is unknown (reportAttributeAccessIssue)
|
Pyright:
mqtt.py#L105
Cannot access attribute "format" for class "bool"
Attribute "format" is unknown (reportAttributeAccessIssue)
|
Pyright
7 errors
|
The following actions use a deprecated Node.js version and will be forced to run on node20: jakebailey/[email protected]. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Loading