Skip to content

feat(unit): replace auto-translated label with dedicated boolean field #17931

feat(unit): replace auto-translated label with dedicated boolean field

feat(unit): replace auto-translated label with dedicated boolean field #17931

Triggered via pull request November 29, 2025 14:30
Status Success
Total duration 4m 41s
Artifacts

mypy.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
mypy: weblate/trans/tests/test_search.py#L174
Item "None" of "Unit | None" has no attribute "automatically_translated"
mypy: weblate/trans/tests/test_search.py#L80
Argument 2 to "get" of "Client" has incompatible type "dict[str, object]"; expected "Mapping[str, str | bytes | int | Iterable[str | bytes | int]] | Iterable[tuple[str, str | bytes | int | Iterable[str | bytes | int]]] | None"
mypy: weblate/trans/tests/test_search.py#L78
Argument 2 to "get" of "Client" has incompatible type "dict[str, object]"; expected "Mapping[str, str | bytes | int | Iterable[str | bytes | int]] | Iterable[tuple[str, str | bytes | int | Iterable[str | bytes | int]]] | None"
mypy: weblate/trans/views/js.py#L114
Argument 3 to "translate" of "Unit" has incompatible type "int"; expected "StringState"
mypy: weblate/utils/search.py#L405
Value of type "set[str]" is not indexable
mypy: weblate/trans/models/unit.py#L1695
Name "propagated_units" already defined on line 1664
mypy: weblate/trans/models/unit.py#L1343
TypedDict "OldUnit" has no key "automatically_translated"
mypy: weblate/trans/models/unit.py#L602
Extra key "automatically_translated" for TypedDict "OldUnit"
mypy: weblate/trans/models/unit.py#L443
Need type annotation for "labels"
mypy: weblate/trans/models/unit.py#L137
Attribute "all_checks" already defined on "weblate.trans.models.unit.Unit"