fixes for ruff in older files #23
Annotations
10 errors
|
Ruff (ANN001):
growattServer/base_api.py#L95
growattServer/base_api.py:95:41: ANN001 Missing type annotation for function argument `is_password_hashed`
|
|
Ruff (FBT002):
growattServer/base_api.py#L95
growattServer/base_api.py:95:41: FBT002 Boolean default positional argument in function definition
|
|
Ruff (ANN001):
growattServer/base_api.py#L95
growattServer/base_api.py:95:31: ANN001 Missing type annotation for function argument `password`
|
|
Ruff (ANN001):
growattServer/base_api.py#L95
growattServer/base_api.py:95:21: ANN001 Missing type annotation for function argument `username`
|
|
Ruff (ANN201):
growattServer/base_api.py#L95
growattServer/base_api.py:95:9: ANN201 Missing return type annotation for public function `login`
|
|
Ruff (D401):
growattServer/base_api.py#L90
growattServer/base_api.py:90:9: D401 First line of docstring should be in imperative mood: "Simple helper function to get the page URL."
|
|
Ruff (D200):
growattServer/base_api.py#L90
growattServer/base_api.py:90:9: D200 One-line docstring should fit on one line
|
|
Ruff (ANN001):
growattServer/base_api.py#L89
growattServer/base_api.py:89:23: ANN001 Missing type annotation for function argument `page`
|
|
Ruff (ANN201):
growattServer/base_api.py#L89
growattServer/base_api.py:89:9: ANN201 Missing return type annotation for public function `get_url`
|
|
Ruff (SIM102):
growattServer/base_api.py#L73
growattServer/base_api.py:73:9: SIM102 Use a single `if` statement instead of nested `if` statements
|