Skip to content

Add field model for rating field type #49

Add field model for rating field type

Add field model for rating field type #49

Triggered via push November 30, 2024 00:34
Status Failure
Total duration 43s
Artifacts

mypy.yaml

on: push
Fit to window
Zoom out
Zoom in

Annotations

31 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/core/library/alchemy/library.py#L464: tagstudio/src/core/library/alchemy/library.py#L464
"MediaCategory" has no attribute "name" [attr-defined]
[mypy] tagstudio/src/core/library/alchemy/library.py#L739: tagstudio/src/core/library/alchemy/library.py#L739
Incompatible types in assignment (expression has type "RatingBoxField", variable has type "TextField | DatetimeField | TagBoxField") [assignment]
Run MyPy
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#L464: tagstudio/src/core/library/alchemy/library.py#L464
"MediaCategory" has no attribute "name" [attr-defined]
[mypy] tagstudio/src/core/library/alchemy/library.py#L739: tagstudio/src/core/library/alchemy/library.py#L739
Incompatible types in assignment (expression has type "RatingBoxField", variable has type "TextField | DatetimeField | TagBoxField") [assignment]