Remove spaces from import statements (#7859)

**Summary** Remove spaces from import statements such as 

```python
import tqdm .  tqdm
from tqdm .    auto import tqdm
```

See also #7760 for a better solution.

**Test Plan** New fixtures
This commit is contained in:
konsti 2023-10-11 13:35:41 +02:00 committed by GitHub
parent 644011fb14
commit 0f759af3cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 29 additions and 4 deletions

View file

@ -15,6 +15,8 @@ import foo\
from foo\
.bar import baz
import tqdm . tqdm
# At the top-level, force one empty line after an import, but allow up to two empty
# lines.
import os
@ -110,6 +112,8 @@ import foo.bar
from foo.bar import baz
import tqdm.tqdm
# At the top-level, force one empty line after an import, but allow up to two empty
# lines.
import os

View file

@ -41,6 +41,8 @@ from a import \
( # comment
bar,
)
from tqdm . auto import tqdm
```
## Output
@ -115,6 +117,8 @@ from a import (
from a import ( # comment
bar,
)
from tqdm.auto import tqdm
```