Skip to content

Conversation

@jakirkham
Copy link
Member

@jakirkham jakirkham commented Dec 5, 2020

Follow up to PR ( #4294 )

Noticed a couple of issues. Assigning None to a typed variable. Generator expressions in Cython not respecting the type of iterated variables. This makes a couple of tweaks to fix those.

We need an integer to pass to `WorkerState` so set this to `0` instead
of `None`.
As Cython may not type things based on outer scope variables when using
a generator, convert the generator to a `list` comprehension, which does
respect the type of external variables used within the loop. This should
fix some attribute access errors seen here.
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.

2 participants