jpadilla/black-playground

Stable fails until preview is toggled off and on

felix-hilden opened this issue · 3 comments

Hi! We've encountered a slight issue with the playground, most probably due to #64. This was reported in psf/black#3145.

The playground expects a nonexistent boolean when something is formatted with the stable branch for the first time: link. This only happens via a link, so I suspect that the state has something to do with it. Using version=main instead does not produce the error. This is also fixed by toggling preview on and off again.

ok took a stab at fixing this, let me know how that goes

Seems good to me, the url Playground link now shows the correct behaviour when i open it up directly!

Thanks a bunch again!