Skip to content

Fix typo in widget

Fix typo in widget #44

Triggered via push November 30, 2024 00:13
Status Failure
Total duration 51s
Artifacts

mypy.yaml

on: push
Fit to window
Zoom out
Zoom in

Annotations

15 errors
[mypy] tagstudio/src/qt/widgets/rating.py#L7: tagstudio/src/qt/widgets/rating.py#L7
Cannot assign to a method [method-assign]
[mypy] tagstudio/src/qt/widgets/rating.py#L7: tagstudio/src/qt/widgets/rating.py#L7
Incompatible types in assignment (expression has type "QHBoxLayout", variable has type "Callable[[], QLayout]") [assignment]
[mypy] tagstudio/src/qt/widgets/rating.py#L8: tagstudio/src/qt/widgets/rating.py#L8
"Callable[[], QLayout]" has no attribute "setSpacing" [attr-defined]
[mypy] tagstudio/src/qt/widgets/rating.py#L9: tagstudio/src/qt/widgets/rating.py#L9
Argument 1 to "setLayout" of "QWidget" has incompatible type "Callable[[], QLayout]"; expected "QLayout" [arg-type]
[mypy] tagstudio/src/qt/widgets/rating.py#L14: tagstudio/src/qt/widgets/rating.py#L14
Incompatible types in assignment (expression has type "QPushButton", variable has type "int") [assignment]
[mypy] tagstudio/src/qt/widgets/rating.py#L15: tagstudio/src/qt/widgets/rating.py#L15
"int" has no attribute "setCheckable" [attr-defined]
[mypy] tagstudio/src/qt/widgets/rating.py#L16: tagstudio/src/qt/widgets/rating.py#L16
"int" has no attribute "clicked" [attr-defined]
[mypy] tagstudio/src/qt/widgets/rating.py#L17: tagstudio/src/qt/widgets/rating.py#L17
"int" has no attribute "setStyleSheet" [attr-defined]
[mypy] tagstudio/src/qt/widgets/rating.py#L18: tagstudio/src/qt/widgets/rating.py#L18
"int" has no attribute "setFixedSize" [attr-defined]
[mypy] tagstudio/src/qt/widgets/rating.py#L20: tagstudio/src/qt/widgets/rating.py#L20
"Callable[[], QLayout]" has no attribute "addWidget" [attr-defined]
[mypy] tagstudio/src/qt/widgets/rating.py#L22: tagstudio/src/qt/widgets/rating.py#L22
Argument 1 to "index" of "list" has incompatible type "QObject"; expected "int" [arg-type]
[mypy] tagstudio/src/qt/widgets/rating.py#L24: tagstudio/src/qt/widgets/rating.py#L24
"int" has no attribute "setStyleSheet" [attr-defined]
[mypy] tagstudio/src/qt/widgets/rating.py#L26: tagstudio/src/qt/widgets/rating.py#L26
"int" has no attribute "setStyleSheet" [attr-defined]
[mypy] tagstudio/src/qt/widgets/rating.py#L27: tagstudio/src/qt/widgets/rating.py#L27
Name "rating_indexs" is not defined [name-defined]
Run MyPy
Process completed with exit code 1.