Azure/azure-storage-python

Please fix mypy issues

MarcSkovMadsen opened this issue ยท 5 comments

When running mypy on my code it fails due to azure storage blob.

The error is

c:\repos\trading_analytics\fumo-engine\.venv\lib\site-packages\azure\storage\blob\_serialize.py:129: error: Type signature has too many arguments
c:\repos\trading_analytics\fumo-engine\.venv\lib\site-packages\azure\storage\blob\_blob_client.py:1407: error: Type signature has too few arguments
c:\repos\trading_analytics\fumo-engine\.venv\lib\site-packages\azure\storage\blob\aio\_blob_client_async.py:808: error: Type signature has too few arguments

Please fix. Thanks

@MarcSkovMadsen

In your mypy.ini you can specify ignoring by modules:

[mypy-tests.*]
ignore_errors = True

Thanks for trying to help @Santhoshkumard11

I've added the below to my pyproject.toml, but it does not change anything.

image

Ok. Changed to

image

I still would suggest fixing the underlying issue though. This is only a temporary workaround.

@MarcSkovMadsen Yes, will do.

niakki commented

Ok. Changed to

image

I still would suggest fixing the underlying issue though. This is only a temporary workaround.

This didn't work for me, but adding a mypy.ini file with the following contents did...

[mypy-azure.*]
ignore_errors = true