Fix dict type hint for older versions (#9480)

This commit is contained in:
Pere Miquel Brull 2022-12-22 08:40:11 +01:00 committed by GitHub
parent 467ae1b1e9
commit 0e0779a926
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,7 +13,7 @@ This hook allows storing the connection to
an OpenMetadata server and use it for your
operators.
"""
from typing import Any
from typing import Any, Dict
from airflow.hooks.base import BaseHook
from airflow.models import Connection
@ -91,7 +91,7 @@ class OpenMetadataHook(BaseHook):
return False, str(err)
@staticmethod
def get_ui_field_behaviour() -> dict[str, Any]:
def get_ui_field_behaviour() -> Dict[str, Any]:
"""Returns custom field behaviour"""
return {
"hidden_fields": ["login"],