mirror of https://github.com/astral-sh/ruff
The example below used to panic because we tried to split at 2 bytes in
the 4-bytes character `转`.
```python
def sample_func(xx):
"""
转置 (transpose)
"""
return xx.T
```
Fixes #9145
Fixes https://github.com/astral-sh/ruff-vscode/issues/362
The second commit is a small test refactoring.
|
||
|---|---|---|
| .. | ||
| cell | ||
| R.ipynb | ||
| add_missing_cell_id.ipynb | ||
| after_fix.ipynb | ||
| before_fix.ipynb | ||
| invalid_extension.ipynb | ||
| ipy_escape_command.ipynb | ||
| ipy_escape_command_expected.ipynb | ||
| isort.ipynb | ||
| isort_expected.ipynb | ||
| no_cell_id.ipynb | ||
| no_trailing_newline.ipynb | ||
| not_json.ipynb | ||
| unused_variable.ipynb | ||
| unused_variable_expected.ipynb | ||
| valid.ipynb | ||
| wrong_schema.ipynb | ||