elastic/elastic-serverless-forwarder

error: Argument 1 to "wrapper" has incompatible type "ProtocolStorageType@__init__"; expected "ProtocolStorageType@json_collector" [arg-type]

Opened this issue · 1 comments

I am running make docker-mypy on the main branch and getting the following error:

storage/decorator.py:222: error: Argument 1 to "wrapper" has incompatible type "ProtocolStorageType@__init__"; expected "ProtocolStorageType@json_collector"  [arg-type]

For confirmed bugs, please report:

  • Version: main
  • Steps to Reproduce:
python -m venv venv  
. venv/bin/activate  

python --version  
Python 3.9.12
$ make docker-mypy

Downloading types_simplejson-3.19.0.20240801-py3-none-any.whl (5.5 kB)
Downloading types_ujson-5.10.0.20240515-py3-none-any.whl (2.8 kB)
Downloading types_cffi-1.16.0.20240331-py3-none-any.whl (14 kB)
Downloading types_docutils-0.21.0.20240724-py3-none-any.whl (27 kB)
Installing collected packages: types-ujson, types-simplejson, types-setuptools, types-docutils, types-colorama, types-Pygments, types-cffi, types-pyOpenSSL
Successfully installed types-Pygments-2.18.0.20240506 types-cffi-1.16.0.20240331 types-colorama-0.4.15.20240311 types-docutils-0.21.0.20240724 types-pyOpenSSL-24.1.0.20240722 types-setuptools-71.1.0.20240818 types-simplejson-3.19.0.20240801 types-ujson-5.10.0.20240515
storage/decorator.py:222: error: Argument 1 to "wrapper" has incompatible type "ProtocolStorageType@__init__"; expected "ProtocolStorageType@json_collector"  [arg-type]
Installing missing stub packages:
/usr/local/bin/python -m pip install types-Pygments types-colorama types-pyOpenSSL types-setuptools types-simplejson types-ujson


Found 1 error in 1 file (checked 65 source files)
make: *** [mypy] Error 1 

mypy@1.11.1 reports this issue, while mypy1.10.0 is okay with it.