josh-fell commented on PR #25426: URL: https://github.com/apache/airflow/pull/25426#issuecomment-1233152203
> Testing with `12.14.0b2` > > ``` > Run mypy for providers.................................................................Failed > - hook id: run-mypy > - exit code: 1 > > airflow/providers/microsoft/azure/hooks/wasb.py:364: error: Argument "offset" > to "download_blob" of "BlobClient" has incompatible type "Optional[int]"; > expected "int" [arg-type] > return blob_client.download_blob(offset=offset, length=length,... > ^ > airflow/providers/microsoft/azure/hooks/wasb.py:364: error: Argument "length" > to "download_blob" of "BlobClient" has incompatible type "Optional[int]"; > expected "int" [arg-type] > ...turn blob_client.download_blob(offset=offset, length=length, **kwargs) > ^ > Found 2 errors in 1 file (checked 951 source files) > ``` > > Looks like [Azure/azure-sdk-for-python@8c24354](https://github.com/Azure/azure-sdk-for-python/commit/8c243548334e2d58bce77caa35ede6a792b75a93) changed also type hints for another function. ``` def download_blob( self, offset: int = None, length: int = None, ... ``` ^ I'm by no means a mypy expert, but the typing for `offset` and `length` are incorrect? -- 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]
