TF-1627 Update same_query_across_sites example #9
precommit.yml
on: pull_request
Pre-commit checks
42s
Annotations
10 errors and 1 warning
Pre-commit checks:
application_examples/flight_price_tracker/flight_price_tracker.py#L21
Cannot access attribute "enable_stealth_mode" for class "WebDriver[Locator, Page, BrowserContext]"
Attribute "enable_stealth_mode" is unknown (reportAttributeAccessIssue)
|
Pre-commit checks:
application_examples/xpath/xpath.py#L22
Argument of type "AQLResponseProxy[Locator] | Locator" cannot be assigned to parameter "element" of type "Locator" in function "xpath_path"
Type "AQLResponseProxy[Locator] | Locator" is incompatible with type "Locator"
"AQLResponseProxy[Locator]" is incompatible with "Locator" (reportArgumentType)
|
Pre-commit checks:
examples/async_example/async_example.py#L32
Object of type "None" is not subscriptable (reportOptionalSubscript)
|
Pre-commit checks:
examples/compare_product_prices/compare_product_prices.py#L39
Expression of type "playwright.sync_api._generated.Page" is incompatible with declared type "agentql.ext.playwright.sync_api.playwright_smart_locator.Page"
"playwright.sync_api._generated.Page" is incompatible with "agentql.ext.playwright.sync_api.playwright_smart_locator.Page" (reportAssignmentType)
|
Pre-commit checks:
examples/compare_product_prices/compare_product_prices.py#L46
Argument of type "Literal['price']" cannot be assigned to parameter "key" of type "SupportsIndex | slice" in function "__getitem__"
Type "Literal['price']" is incompatible with type "SupportsIndex | slice"
"Literal['price']" is incompatible with protocol "SupportsIndex"
"__index__" is not present
"Literal['price']" is incompatible with "slice" (reportArgumentType)
|
Pre-commit checks:
examples/compare_product_prices/compare_product_prices.py#L54
Argument of type "Literal['price']" cannot be assigned to parameter "key" of type "SupportsIndex | slice" in function "__getitem__"
Type "Literal['price']" is incompatible with type "SupportsIndex | slice"
"Literal['price']" is incompatible with protocol "SupportsIndex"
"__index__" is not present
"Literal['price']" is incompatible with "slice" (reportArgumentType)
|
Pre-commit checks:
examples/compare_product_prices/compare_product_prices.py#L62
Argument of type "Literal['price']" cannot be assigned to parameter "key" of type "SupportsIndex | slice" in function "__getitem__"
Type "Literal['price']" is incompatible with type "SupportsIndex | slice"
"Literal['price']" is incompatible with protocol "SupportsIndex"
"__index__" is not present
"Literal['price']" is incompatible with "slice" (reportArgumentType)
|
Pre-commit checks:
examples/debug_support_methods/last_query.py#L60
"get" is not a known attribute of "None" (reportOptionalMemberAccess)
|
Pre-commit checks:
examples/debug_support_methods/last_query.py#L61
"replace" is not a known attribute of "None" (reportOptionalMemberAccess)
|
Pre-commit checks:
examples/default_popup_handler/default_popup_handler.py#L22
Argument of type "(popups: list[Unknown]) -> None" cannot be assigned to parameter "callback" of type "(dict[Unknown, Unknown]) -> None" in function "on"
Type "(popups: list[Unknown]) -> None" is incompatible with type "(dict[Unknown, Unknown]) -> None"
Parameter 1: type "dict[Unknown, Unknown]" is incompatible with type "list[Unknown]"
"dict[Unknown, Unknown]" is incompatible with "list[Unknown]" (reportArgumentType)
|
Pre-commit checks
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/setup-python@v4. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|