Commit 3a6dc36
authored
fix: Add missing space in dictionary comprehension
A space was missing between the value and `for`. For example:
```python
import tempfile
import sys
import griffe
with tempfile.TemporaryDirectory() as tmp:
sys.path.insert(0, tmp)
with open(f"{tmp}/test_for_griffe.py", "x") as f:
print("A = {key: value for key, value in []}", file=f)
module = griffe.load("test_for_griffe")
print(module.get_member("A").value)
```
...displayed:
```python
{key: valuefor (key, value) in []}
```
Add the missing space.
Issue-mkdocstrings-python-311: mkdocstrings/python#311
PR-420: #4201 parent 26e75df commit 3a6dc36
2 files changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
473 | 473 | | |
474 | 474 | | |
475 | 475 | | |
| 476 | + | |
476 | 477 | | |
477 | 478 | | |
478 | 479 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
0 commit comments