Skip to content

Commit

Permalink
Remove type hint causing DeprecationWarning in Firestore operators (#…
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
turbaszek committed Jul 21, 2020
1 parent 560e0b5 commit c8c52e6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions airflow/providers/google/firebase/operators/firestore.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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__(
Expand Down

0 comments on commit c8c52e6

Please sign in to comment.