tests #1
Annotations
13 errors and 2 warnings
Ruff (I001):
computer-use-demo/computer_use_demo/batch_api.py#L1
computer-use-demo/computer_use_demo/batch_api.py:1:1: I001 Import block is un-sorted or un-formatted
|
Ruff (UP035):
computer-use-demo/computer_use_demo/batch_api.py#L11
computer-use-demo/computer_use_demo/batch_api.py:11:1: UP035 `typing.Dict` is deprecated, use `dict` instead
|
Ruff (E402):
computer-use-demo/computer_use_demo/batch_api.py#L138
computer-use-demo/computer_use_demo/batch_api.py:138:1: E402 Module level import not at top of file
|
Ruff (I001):
computer-use-demo/computer_use_demo/batch_api.py#L138
computer-use-demo/computer_use_demo/batch_api.py:138:1: I001 Import block is un-sorted or un-formatted
|
Ruff (W291):
computer-use-demo/computer_use_demo/batch_api.py#L139
computer-use-demo/computer_use_demo/batch_api.py:139:19: W291 Trailing whitespace
|
Ruff (W291):
computer-use-demo/computer_use_demo/batch_api.py#L140
computer-use-demo/computer_use_demo/batch_api.py:140:17: W291 Trailing whitespace
|
Ruff (B904):
computer-use-demo/computer_use_demo/batch_api.py#L166
computer-use-demo/computer_use_demo/batch_api.py:166:17: B904 Within an `except` clause, raise exceptions with `raise ... from err` or `raise ... from None` to distinguish them from errors in exception handling
|
Ruff (UP006):
computer-use-demo/computer_use_demo/batch_api.py#L214
computer-use-demo/computer_use_demo/batch_api.py:214:8: UP006 Use `dict` instead of `Dict` for type annotation
|
Ruff (F541):
computer-use-demo/computer_use_demo/batch_api.py#L308
computer-use-demo/computer_use_demo/batch_api.py:308:21: F541 f-string without any placeholders
|
Ruff (F541):
computer-use-demo/computer_use_demo/batch_api.py#L345
computer-use-demo/computer_use_demo/batch_api.py:345:25: F541 f-string without any placeholders
|
pyright:
computer-use-demo/computer_use_demo/batch_api.py#L260
Argument of type "list[dict[str, Unknown]]" cannot be assigned to parameter "messages" of type "list[BetaMessageParam]" in function "sampling_loop"
"list[dict[str, Unknown]]" is not assignable to "list[BetaMessageParam]"
Type parameter "_T@list" is invariant, but "dict[str, Unknown]" is not the same as "BetaMessageParam"
Consider switching from "list" to "Sequence" which is covariant (reportArgumentType)
|
pyright:
computer-use-demo/computer_use_demo/batch_api.py#L264
Argument of type "None" cannot be assigned to parameter "api_key" of type "str" in function "sampling_loop"
"None" is not assignable to "str" (reportArgumentType)
|
pyright
2 errors
|
pytest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
pyright
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|