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

Use list comprehensions to bind TaskGroup type #4401

Merged
merged 1 commit into from
Jan 6, 2021

Conversation

jakirkham
Copy link
Member

As Cython doesn't track typed variables in generator expressions well, use list comprehensions, which Cython does type correctly.

xref: cython/cython#3928

cc @quasiben (this should hopefully fix the issue you saw earlier)

As Cython doesn't track typed variables in generator expressions well,
use `list` comprehensions, which Cython does type correctly.
Copy link
Member

@jacobtomlinson jacobtomlinson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems reasonable.

Also TIL that any([x for x in y]) is different to any(x for x in y).

Copy link
Member

@jrbourbeau jrbourbeau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @jakirkham! Merging as test failures are related to #4404

@jrbourbeau jrbourbeau merged commit eeb411e into dask:master Jan 6, 2021
@jakirkham jakirkham deleted the fix_tg_typ_gen branch January 6, 2021 17:49
@jakirkham
Copy link
Member Author

Thanks all! 😄

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

Successfully merging this pull request may close these issues.

3 participants