You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_color_wheel_generator then tries to get the length
When using precompute_rainbow=False this will cause an error: TypeError: object of type 'NoneType' has no len()
Initializing self.colors = [] should still work in the truthy test or moving the wheel_indexcalculation into the if self.colors block could fix it too.
The text was updated successfully, but these errors were encountered:
Rainbow initializes
self.colors = None
_color_wheel_generator
then tries to get the lengthWhen using
precompute_rainbow=False
this will cause an error:TypeError: object of type 'NoneType' has no len()
Initializing
self.colors = []
should still work in the truthy test or moving thewheel_index
calculation into theif self.colors
block could fix it too.The text was updated successfully, but these errors were encountered: