eladkal opened a new pull request, #38175:
URL: https://github.com/apache/airflow/pull/38175

   [azure-cosmos version 4.6.0](https://pypi.org/project/azure-cosmos/4.6.0/) 
released today and it breaks mypy
   
   ```
   airflow/providers/microsoft/azure/hooks/cosmos.py:228: error: Argument
   "partition_key" to "create_container" of "DatabaseProxy" has incompatible 
type
   "Optional[str]"; expected "PartitionKey"  [arg-type]
                       collection_name, partition_key=partition_key
                                                      ^~~~~~~~~~~~~
   airflow/providers/microsoft/azure/hooks/cosmos.py:339: error: Argument
   "partition_key" to "delete_item" of "ContainerProxy" has incompatible type
   "Optional[str]"; expected
   "Union[str, int, float, bool, Sequence[Union[str, int, float, bool, None]], 
Type[NonePartitionKeyValue]]"
    [arg-type]
                   .delete_item(document_id, partition_key=partition_key)
                                                           ^~~~~~~~~~~~~
   airflow/providers/microsoft/azure/hooks/cosmos.py:358: error: Argument
   "partition_key" to "read_item" of "ContainerProxy" has incompatible type
   "Optional[str]"; expected
   "Union[str, int, float, bool, Sequence[Union[str, int, float, bool, None]], 
Type[NonePartitionKeyValue]]"
    [arg-type]
                       .read_item(document_id, partition_key=partition_key)
                                                             ^~~~~~~~~~~~~
   Found 3 errors in 1 file (checked 
[122](https://github.com/apache/airflow/actions/runs/8291950812/job/22692722738?pr=38048#step:6:123)8
 source files)
   Error 1 returned
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to