Menu

#1 Any plans for supporting the walrus operator?

resolved
None
2020-08-09
2020-07-28
nkmathew
No

Thanks for making OITNB. I'm noticing it doesn't yet support for assignment expressions feature that comes with v3.8:

>oitnb --line-length=80 "test.py"
error: cannot format test.py: Cannot parse: 48:7: a = (b := 3)
All done! Errors encountered
1 file failed to reformat.

Do you plan on supporting this?

Discussion

  • Anthon van der Neut

    I have to look into why this happens. I haven't used that operator myself yet in code, but at the latest when I do I will I'll need to support/fix this.

     
  • Anthon van der Neut

    • status: open --> resolved
     
  • Anthon van der Neut

    This shold be fixed in 0.2.0. If possible please test and if indeed fixed, close this issue.

     

Log in to post a comment.