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

collections.deque is not recognised as MutableSequence #1125

Closed
timrichardson opened this issue Jan 14, 2016 · 2 comments
Closed

collections.deque is not recognised as MutableSequence #1125

timrichardson opened this issue Jan 14, 2016 · 2 comments

Comments

@timrichardson
Copy link

In Python 3.5.1, deque should be a MutableSequence (https://bugs.python.org/issue23704)
By mypy does not recognise it as such

import typing
from collections import deque


dq = deque() # type: typing.MutableSequence

error: Incompatible types in assignment (expression has type deque[None], variable has type MutableSequence[Any])

@JukkaL JukkaL added the stubs label Jan 14, 2016
@JukkaL
Copy link
Collaborator

JukkaL commented Jan 14, 2016

Thanks for reporting this! This is a library stub problem and stubs now live in https://github.com/python/typeshed. Would you mind creating an issue at typeshed?

@timrichardson
Copy link
Author

done
python/typeshed#43

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

2 participants