Skip to content

__init__ for OrderedSet missing #380

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

Closed
bullfest opened this issue Jun 1, 2020 · 0 comments · Fixed by #381
Closed

__init__ for OrderedSet missing #380

bullfest opened this issue Jun 1, 2020 · 0 comments · Fixed by #381
Labels
bug Something isn't working

Comments

@bullfest
Copy link
Contributor

bullfest commented Jun 1, 2020

Typechecking this snippet

from django.utils.datastructures import OrderedSet
s = OrderedSet([1, 2, 3])

Gives the error:

util/lists.py:19: error: Too many arguments for "OrderedSet"

Expected behaviour

I'd expect it to work as OrderedSet accepts an optional parameter iterable: https://github.com/django/django/blob/ecaac9e42f497be04ddc72dfebb6e397ccca9517/django/utils/datastructures.py#L10

@bullfest bullfest added the bug Something isn't working label Jun 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

Successfully merging a pull request may close this issue.

1 participant