---
source: crates/ruff_linter/src/rules/flake8_commas/mod.rs
---
invalid-syntax: Starred expression cannot be used here
 --> COM81_syntax_error.py:3:5
  |
1 | # Check for `flake8-commas` violation for a file containing syntax errors.
2 | (
3 |     *args
  |     ^^^^^
4 | )
  |

invalid-syntax: Type parameter list cannot be empty
 --> COM81_syntax_error.py:6:9
  |
4 | )
5 |
6 | def foo[(param1='test', param2='test',):
  |         ^
7 |     pass
  |

COM819 Trailing comma prohibited
 --> COM81_syntax_error.py:6:38
  |
4 | )
5 |
6 | def foo[(param1='test', param2='test',):
  |                                      ^
7 |     pass
  |
help: Remove trailing comma
