Taragolis commented on code in PR #28820: URL: https://github.com/apache/airflow/pull/28820#discussion_r1065455647
########## airflow/providers/arangodb/hooks/arangodb.py: ########## @@ -18,14 +18,20 @@ """This module allows connecting to a ArangoDB.""" from __future__ import annotations -from typing import Any +from typing import TYPE_CHECKING, Any from arango import AQLQueryExecuteError, ArangoClient as ArangoDBClient -from arango.result import Result from airflow import AirflowException +from airflow.compat.functools import cached_property from airflow.hooks.base import BaseHook +if TYPE_CHECKING: Review Comment: And actual type known only in runtime because methods wraps it into additional handlers. In this case it returns Cursor or raise some error, e.g.: we get [AQL.execute](https://github.com/ArangoDB-Community/python-arango/blob/1ab63c25c3b3fc152b8386c1b62c705645fb197b/arango/aql.py#L421-L424) which returns in our case [DefaultApiExecutor.execute](https://github.com/ArangoDB-Community/python-arango/blob/1ab63c25c3b3fc152b8386c1b62c705645fb197b/arango/executor.py#L55-L65) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
