Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Bug report
Bug description:
Python3.12.0 (v3.12.0:0fb18b02c8,Oct22023,09:45:56) [Clang13.0.0 (clang-1300.0.29.30)]ondarwin>>>importast>>>ast.parse("f'{e:.3}'").body[0].value.values[0].format_spec<ast.JoinedStrobjectat0x1002aa050>
Python3.13.0b4 (v3.13.0b4:567c38b4eb,Jul182024,07:28:29) [Clang15.0.0 (clang-1500.3.9.4)]ondarwin>>>importast>>>ast.parse("f'{e:.3}'").body[0].value.values[0].format_spec<ast.Constantobjectat0x104af45d0>
Docs sayFormattedValue.format_spec is aJoinedStr.
Reported downstream inpylint-dev/astroid#2478
Not present in 3.13.0b3
CPython versions tested on:
3.13
Operating systems tested on:
Linux, macOS