chore: add type annotations to notifications #9742
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.
|