(safe: bool, delimiter_priority: int, line: Line)
| 1348 | |
| 1349 | |
| 1350 | def _safe_add_trailing_comma(safe: bool, delimiter_priority: int, line: Line) -> Line: |
| 1351 | if ( |
| 1352 | safe |
| 1353 | and delimiter_priority == COMMA_PRIORITY |
| 1354 | and line.leaves[-1].type != token.COMMA |
| 1355 | and line.leaves[-1].type != STANDALONE_COMMENT |
| 1356 | ): |
| 1357 | new_comma = Leaf(token.COMMA, ",") |
| 1358 | line.append(new_comma) |
| 1359 | return line |
| 1360 | |
| 1361 | |
| 1362 | MIGRATE_COMMENT_DELIMITERS = {STRING_PRIORITY, COMMA_PRIORITY} |
no test coverage detected