mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-08 16:38:04 +00:00
Fix dict type hint for older versions (#9480)
This commit is contained in:
parent
467ae1b1e9
commit
0e0779a926
@ -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"],
|
||||
|
Loading…
x
Reference in New Issue
Block a user