google / google/yapf

assert formatting

Open
#1,207 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
14k
Forks
904
PR merge metrics
No merged PRs in 30d

Description

In [this commit](https://github.com/openai/triton/commit/133333123e37a561ec79d8b432c125e323f3f5de), yapf formats the long line
```python
assert f32_backend.lower() in builder.options.allowed_dot_f32_backends, f"f32 _backend must be one of {builder.options.allowed_dot_f32_backends}. Got {f32_backend}"
```
within `semantic.py` as
```python
assert f32_backend.lower(
) in builder.options.allowed_dot_f32_backends, f"f32 _backend must be one of {builder.options.allowed_dot_f32_backends}. Got {f32_backend}"
```
resulting in a syntax error.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.