flake8-return icon indicating copy to clipboard operation
flake8-return copied to clipboard

Support match/case operator

Open k0t3n opened this issue 3 years ago • 1 comments

  • Date you used flake8-return: 26-08-22
  • flake8-return version used, if any: 1.1.3
  • Python version, if any: 3.10.2
  • Operating System: MacOS 12.5.1

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

k0t3n avatar Aug 26 '22 14:08 k0t3n

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.

afonasev avatar Aug 29 '22 07:08 afonasev