Skip to content

Commit 3393647

Browse files
authored
Add typing to Azure Cosmos Client Hook (#23941)
New release of Azure Cosmos library has added typing information and it broke main builds with mypy verification.
1 parent f7c4804 commit 3393647

File tree

1 file changed

+1
-1
lines changed
  • airflow/providers/microsoft/azure/hooks

1 file changed

+1
-1
lines changed

airflow/providers/microsoft/azure/hooks/cosmos.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def get_ui_field_behaviour() -> Dict[str, Any]:
8686
def __init__(self, azure_cosmos_conn_id: str = default_conn_name) -> None:
8787
super().__init__()
8888
self.conn_id = azure_cosmos_conn_id
89-
self._conn = None
89+
self._conn: Optional[CosmosClient] = None
9090

9191
self.default_database_name = None
9292
self.default_collection_name = None

0 commit comments

Comments
 (0)