flake8-return
flake8-return copied to clipboard
Support match/case operator
- 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
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.