Skip to content

Lint code

Lint code #146

Triggered via pull request June 25, 2024 16:07
Status Success
Total duration 57s
Artifacts

lint.yml

on: pull_request
Get changed files
13s
Get changed files
Check formatting
21s
Check formatting
Check linting
10s
Check linting
Check types with mypy
12s
Check types with mypy
Check docs
25s
Check docs
Fit to window
Zoom out
Zoom in

Annotations

10 errors
Check types with mypy: beets/util/__init__.py#L166
Incompatible types in assignment (expression has type "Union[str, bytes]", variable has type "bytes")
Check types with mypy: beets/util/__init__.py#L180
Need type annotation for "out" (hint: "out: List[<type>] = ...")
Check types with mypy: beets/util/__init__.py#L197
Missing type parameters for generic type "Sequence"
Check types with mypy: beets/util/__init__.py#L200
Missing type parameters for generic type "Tuple"
Check types with mypy: beets/util/__init__.py#L207
Incompatible types in assignment (expression has type "bytes", variable has type "str")
Check types with mypy: beets/util/__init__.py#L232
If x = b'abc' then f"{x}" or "{}".format(x) produces "b'abc'", not "abc". If this is desired behavior, use f"{x!r}" or "{!r}".format(x). Otherwise, decode the bytes
Check types with mypy: beets/util/__init__.py#L240
No overload variant of "join" matches argument types "str", "bytes"
Check types with mypy: beets/util/__init__.py#L254
No overload variant of "join" matches argument types "str", "bytes"
Check types with mypy: beets/util/__init__.py#L307
Incompatible types in assignment (expression has type "bytes", variable has type "str")
Check types with mypy: beets/util/__init__.py#L307
Argument 1 to "normpath" has incompatible type "str"; expected "bytes"