This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/master by this push:
new c8c52e6 Remove type hint causing DeprecationWarning in Firestore
operators (#9819)
c8c52e6 is described below
commit c8c52e69c8d9cc1f26f63d95aecc0a6498d40b6f
Author: Tomek Urbaszek <[email protected]>
AuthorDate: Tue Jul 21 07:26:59 2020 +0200
Remove type hint causing DeprecationWarning in Firestore operators (#9819)
* Import Iterable from collections.abc in firestore operators
DeprecationWarning: Using or importing the ABCs from 'collections'
instead of from 'collections.abc' is deprecated since Python 3.3,
and in 3.9 it will stop working
* Remove the type hint
---
airflow/providers/google/firebase/operators/firestore.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/airflow/providers/google/firebase/operators/firestore.py
b/airflow/providers/google/firebase/operators/firestore.py
index 387c67a..0795cd9 100644
--- a/airflow/providers/google/firebase/operators/firestore.py
+++ b/airflow/providers/google/firebase/operators/firestore.py
@@ -15,7 +15,6 @@
# specific language governing permissions and limitations
# under the License.
-from collections import Iterable
from typing import Dict, Optional
from airflow.exceptions import AirflowException
@@ -48,7 +47,7 @@ class CloudFirestoreExportDatabaseOperator(BaseOperator):
:type api_version: str
"""
- template_fields = ("body", "gcp_conn_id", "api_version") # type:
Iterable[str]
+ template_fields = ("body", "gcp_conn_id", "api_version")
@apply_defaults
def __init__(