Skip to content

fix(forms): add missing "type" attribute to button element #6183

fix(forms): add missing "type" attribute to button element

fix(forms): add missing "type" attribute to button element #6183

Triggered via pull request October 30, 2024 13:40
Status Success
Total duration 2m 3s
Artifacts

mypy.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

11 errors
mypy
Process completed with exit code 1.
mypy: weblate/trans/forms.py#L331
Need type annotation for "placeables_set" (hint: "placeables_set: set[<type>] = ...")
mypy: weblate/trans/forms.py#L532
"Field" has no attribute "choices"
mypy: weblate/trans/forms.py#L542
"Field" has no attribute "choices"
mypy: weblate/trans/forms.py#L642
"Field" has no attribute "choices"
mypy: weblate/trans/forms.py#L689
"Field" has no attribute "name"
mypy: weblate/trans/forms.py#L693
"Field" has no attribute "choices"
mypy: weblate/trans/forms.py#L694
"Field" has no attribute "choices"
mypy: weblate/trans/forms.py#L734
Incompatible types in assignment (expression has type "type[UploadForm]", variable has type "type[ExtraUploadForm]")
mypy: weblate/trans/forms.py#L736
Incompatible types in assignment (expression has type "type[SimpleUploadForm]", variable has type "type[ExtraUploadForm]")
mypy: weblate/trans/forms.py#L738
"Field" has no attribute "choices"