Request: support splitting and align long type annotations.
Open
- Dominant language
- Python
- Stars
- 14k
- Forks
- 904
- PR merge metrics
- No merged PRs in 30d
Description
Would be great if yapf could format the code like:
```python
class Engine(
Generic[
_T_INIT_CONFIG,
_T_INIT_RESOURCE,
_T_RUN_CONFIG,
_T_RUN_OUTPUT,
]
):
...
class EngineExecutorAggregatorSelector(
Generic[
_T_RUN_CONFIG,
_T_RUN_OUTPUT,
]
): # yapf: disable
def __init__(
self,
pairs: Sequence[
Tuple[
EngineExecutor[
Any,
Any,
_T_RUN_CONFIG,
_T_RUN_OUTPUT,
],
float,
]
],
):
...
```
Contributor guide
Assessment
This issue has not been assessed yet.