Skip to content
New issue

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

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

Already on GitHub? # to your account

mypy 1.2.0 throws errors #3

Open
verhovensky opened this issue Apr 10, 2023 · 0 comments
Open

mypy 1.2.0 throws errors #3

verhovensky opened this issue Apr 10, 2023 · 0 comments

Comments

@verhovensky
Copy link

mypy 1.2.0 throws errors in return statement in next() method of BaseChunk class if I use IntChunk

notification/chunkificator.py:65: error: Unexpected keyword argument "start" for "BaseChunk"  [call-arg]
notification/chunkificator.py:65: error: Unexpected keyword argument "size" for "BaseChunk"  [call-arg]
notification/chunkificator.py:65: error: Unexpected keyword argument "max" for "BaseChunk"  [call-arg]
notification/chunkificator.py:65: error: Unexpected keyword argument "mode" for "BaseChunk"  [call-arg]
notification/chunkificator.py:184: error: Incompatible return value type (got "BaseChunk", expected "IntChunk")  [return-value]
Found 5 errors in 1 file (checked 4 source files)

My environment:

OS Linux GNU/Linux
Python 3.9.2
pip 22.3.1
Celery 5.2.7
mypy 1.2.0

Nevertheless, class/decorator itself works as expected

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

No branches or pull requests

1 participant