afonasev / flake8-return

Flake8 plugin for return expressions checking.
MIT License
62 stars 69 forks source link

Support match/case operator #115

Open k0t3n opened 2 years ago

k0t3n commented 2 years ago

Description

match/case construction not supported

What I Did

def test():
    a = 1
    match a:  # <---- D400 First line should end with a period
      case 0:
        return False
      case 1:
        return True
      case _*:
        return False
afonasev commented 2 years ago

Thank you for issue. The plugin was developed when the pattern matching didn't exist. Unfortunately, I can't fix it quickly, but I'm ready to consider a pull request.