You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2023/01/10 07:53:06 UTC

[GitHub] [airflow] Taragolis commented on a diff in pull request #28820: Fix ArangoDB static checks

Taragolis commented on code in PR #28820:
URL: https://github.com/apache/airflow/pull/28820#discussion_r1065434735


##########
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:
   That for help mypy because arangodb methods return generic type Result[{Something}] which have definition
   
   ```python
   T = TypeVar("T")
   
   Result = Union[T, AsyncJob[T], BatchJob[T], None]
   ```



-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org