Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zmoog opened this issue Aug 20, 2024 · 1 comment
Assignees

Comments

@zmoog
Copy link
Contributor

zmoog commented Aug 20, 2024

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 
@zmoog zmoog self-assigned this Aug 20, 2024
@zmoog
Copy link
Contributor Author

zmoog commented Aug 20, 2024

[email protected] reports this issue, while mypy1.10.0 is okay with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant