mirror of
				https://github.com/open-metadata/OpenMetadata.git
				synced 2025-10-31 10:39:30 +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 | an OpenMetadata server and use it for your | ||||||
| operators. | operators. | ||||||
| """ | """ | ||||||
| from typing import Any | from typing import Any, Dict | ||||||
| 
 | 
 | ||||||
| from airflow.hooks.base import BaseHook | from airflow.hooks.base import BaseHook | ||||||
| from airflow.models import Connection | from airflow.models import Connection | ||||||
| @ -91,7 +91,7 @@ class OpenMetadataHook(BaseHook): | |||||||
|             return False, str(err) |             return False, str(err) | ||||||
| 
 | 
 | ||||||
|     @staticmethod |     @staticmethod | ||||||
|     def get_ui_field_behaviour() -> dict[str, Any]: |     def get_ui_field_behaviour() -> Dict[str, Any]: | ||||||
|         """Returns custom field behaviour""" |         """Returns custom field behaviour""" | ||||||
|         return { |         return { | ||||||
|             "hidden_fields": ["login"], |             "hidden_fields": ["login"], | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Pere Miquel Brull
						Pere Miquel Brull