Skip to content

chore: add type annotations to notifications #9742

chore: add type annotations to notifications

chore: add type annotations to notifications #9742

Triggered via pull request February 28, 2025 10:27
Status Success
Total duration 3m 40s
Artifacts

mypy.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

7 errors
mypy: weblate/auth/models.py#L339
Incompatible return value type (got "User | None", expected "User")
mypy: weblate/auth/models.py#L348
Item "None" of "Mapping[str, Any] | None" has no attribute "items"
mypy: weblate/auth/models.py#L352
Item "None" of "Mapping[str, Any] | None" has no attribute "items"
mypy: weblate/auth/models.py#L402
Signature of "contribute_to_class" incompatible with supertype "Field"
mypy: weblate/auth/models.py#L1219
Need type annotation for "AUTH_RESTRICT_ADMINS" (hint: "AUTH_RESTRICT_ADMINS: dict[<type>, <type>] = ...")
mypy: weblate/accounts/notifications.py#L108
"Task[[list[int]], None]" has no attribute "delay_on_commit"
mypy
Process completed with exit code 1.