Open peterschutt opened 1 year ago
Thank you for your issue! Currently, the plugin does not support matching/case expressions. I would be glad to accept your contributions. I'm not sure I'll be able to fix this anytime soon.
No worries @afonasev - this is something I'd be interested in looking at but my available bandwidth is also very low.
If I do pick it up I'll ping you again in here to let you know I'm working on it.
FYI this was fixed in the ruff implementation of flake8-return, here: https://github.com/charliermarsh/ruff/pull/3047
Description
Running through pre-commit with flake8-return listed as an additional dependency for the flake8 repo.
This function:
raises
R503 missing explicit return at the end of function able to return non-None value.