Skip to content

feat(api): use ValidationError with a field speficied when possible #8194

feat(api): use ValidationError with a field speficied when possible

feat(api): use ValidationError with a field speficied when possible #8194

Triggered via pull request January 16, 2025 13:52
Status Success
Total duration 2m 38s
Artifacts

mypy.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

11 errors
mypy: weblate/api/views.py#L344
"MultipleFieldViewSet" has no attribute "lookup_fields"
mypy: weblate/api/views.py#L560
Item "AnonymousUser" of "User | AnonymousUser" has no attribute "administered_group_set"
mypy: weblate/api/views.py#L560
Unable to resolve return type of queryset/manager method "order_by"
mypy: weblate/api/views.py#L737
Argument 1 to "filter_access" of "ComponentQuerySet" has incompatible type "User | AnonymousUser"; expected "User"
mypy: weblate/api/views.py#L844
"CreditsMixin" has no attribute "permission_denied"
mypy: weblate/api/views.py#L846
"CreditsMixin" has no attribute "get_object"
mypy: weblate/api/views.py#L870
Argument 1 to "generate_credits" has incompatible type "Any | None"; expected "User"
mypy: weblate/api/views.py#L873
Argument 4 to "generate_credits" has incompatible type "Any | None"; expected "str"
mypy: weblate/api/views.py#L890
Incompatible types in assignment (expression has type "str", variable has type "tuple[str, ...]")
mypy: weblate/api/views.py#L899
Item "AnonymousUser" of "User | AnonymousUser" has no attribute "allowed_projects"
mypy
Process completed with exit code 1.