Skip to content

Commit

Permalink
Add typing to Azure Cosmos Client Hook (#23941)
Browse files Browse the repository at this point in the history
New release of Azure Cosmos library has added typing information
and it broke main builds with mypy verification.
  • Loading branch information
potiuk authored May 26, 2022
1 parent f7c4804 commit 3393647
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airflow/providers/microsoft/azure/hooks/cosmos.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def get_ui_field_behaviour() -> Dict[str, Any]:
def __init__(self, azure_cosmos_conn_id: str = default_conn_name) -> None:
super().__init__()
self.conn_id = azure_cosmos_conn_id
self._conn = None
self._conn: Optional[CosmosClient] = None

self.default_database_name = None
self.default_collection_name = None
Expand Down

0 comments on commit 3393647

Please sign in to comment.