Skip to content

Lint/format

Lint/format #61

Triggered via push September 6, 2024 13:43
Status Failure
Total duration 44s
Artifacts

build.yaml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors
Build: optimus/prometheus.py#L23
By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
Build: optimus/dns/parser/parse.py#L40
Argument 4 to "DNSPacket" has incompatible type "list[NS]"; expected "Optional[list[Union[NS, SOA]]]" [arg-type]
Build: optimus/dns/parser/parse.py#L40
"List" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance
Build: optimus/dns/parser/parse.py#L40
Consider using "Sequence" instead, which is covariant
Build: optimus/dns/parser/parse.py#L214
Argument 1 to "append" of "list" has incompatible type "Union[Record, OptPseudoRR]"; expected "Record" [arg-type]
Build: optimus/dns/parser/parse.py#L220
Argument 1 to "append" of "list" has incompatible type "Union[Record, OptPseudoRR]"; expected "Union[A, AAAA, NS]" [arg-type]
Build: optimus/dns/parser/parse.py#L226
Argument 1 to "append" of "list" has incompatible type "Union[Record, OptPseudoRR]"; expected "Record" [arg-type]
Build: optimus/dns/parser/parse.py#L227
Incompatible return value type (got "list[Record]", expected "list[NS]") [return-value]
Build: optimus/dns/resolver.py#L50
Argument 1 to "filter" has incompatible type "Callable[[Any], bool]"; expected "Callable[[Union[NS, SOA]], TypeGuard[NS]]" [arg-type]
Build: optimus/dns/resolver.py#L56
Item "NS" of "Union[A, AAAA, NS]" has no attribute "address" [union-attr]