ruff/crates/ruff_python_codegen
Dhruv Manilawala 8db147c09d
Generator should add a newline before type statement (#11720)
## Summary

This PR fixes a bug where the `Generator` wouldn't add a newline before
a type alias statement. This is because it wasn't using the `statement`
macro which takes care of the newline.

Without this fix, a code like:
```py
type X = int
type Y = str
```

The generator would produce:
```py
type X = inttype Y = str
```

## Test Plan

Add a test case.
2024-06-03 18:44:21 +05:30
..
src Generator should add a newline before type statement (#11720) 2024-06-03 18:44:21 +05:30
Cargo.toml Maintain synchronicity between the lexer and the parser (#11457) 2024-06-03 18:23:50 +05:30