Files
typeshed/stdlib
Jelle Zijlstra 5c13f8bbce ast: FormattedValue.conversion cannot be None (#7810)
```
In [4]: ast.dump(ast.parse('f"{x!r}"'))
Out[4]: "Module(body=[Expr(value=JoinedStr(values=[FormattedValue(value=Name(id='x', ctx=Load()), conversion=114)]))], type_ignores=[])"

In [5]: ast.dump(ast.parse('f"{x}"'))
Out[5]: "Module(body=[Expr(value=JoinedStr(values=[FormattedValue(value=Name(id='x', ctx=Load()), conversion=-1)]))], type_ignores=[])"
```
(On 3.9 but I don't think this has changed since 3.6.)

The stdlib also assumes this: https://github.com/python/cpython/blob/main/Lib/ast.py#L1211 (`chr(None)` doesn't work).
2022-05-08 19:42:38 -07:00
..
2022-05-06 23:48:52 -07:00
2022-05-06 22:54:58 -07:00
2021-05-06 18:57:33 +03:00
2022-02-19 12:25:51 -08:00
2022-02-19 12:26:45 -08:00
2022-02-19 12:27:07 -08:00
2022-01-30 16:27:06 -08:00
2022-05-04 00:00:08 -07:00
2022-04-18 21:21:19 +03:00
2022-04-01 18:01:23 +01:00
2022-02-18 01:27:28 -08:00
2022-01-30 16:27:06 -08:00
2022-05-06 22:54:58 -07:00
2022-04-17 01:01:36 +01:00
2022-04-23 18:28:35 -07:00
2021-12-22 20:18:19 -08:00
2021-12-22 20:18:19 -08:00
2021-12-22 20:18:19 -08:00
2022-01-01 14:19:05 +02:00
2022-03-03 15:25:30 -08:00
2022-02-19 19:57:43 -08:00