Skip to content

Add class for rating field type and add field model entry #47

Add class for rating field type and add field model entry

Add class for rating field type and add field model entry #47

Triggered via push November 30, 2024 00:27
Status Failure
Total duration 18s
Artifacts

ruff.yaml

on: push
ruff-format
6s
ruff-format
ruff-check
6s
ruff-check
Fit to window
Zoom out
Zoom in

Annotations

17 errors
ruff-check
Process completed with exit code 1.
ruff-format
Process completed with exit code 1.
[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/core/library/alchemy/library.py#L461: tagstudio/src/core/library/alchemy/library.py#L461
"MediaCategory" has no attribute "name" [attr-defined]