This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: Incorrect format specified for the "style" key in the configuration file format formatter example
Type: Stage: needs patch
Components: Documentation Versions: Python 3.11, Python 3.10
Status: open Resolution:
Dependencies: Superseder:
Assigned To: docs@python Nosy List: ajaksu2, bokunogf, docs@python, iwienand, samriddhi.bhardwaj, slateny
Priority: normal Keywords: easy

Created on 2021-12-23 20:58 by bokunogf, last changed 2022-04-11 14:59 by admin.

Messages (4)
msg409108 - (view) Author: David Bereza (bokunogf) Date: 2021-12-23 20:58
Documentation link:

It seems that the example for the "formatter_form01" formatter section specifies following for the style(please note the single-quotes around the value). 

This seems to raise a ValueError with the message "Style must be one of..." when parsing the configuration file. Removing the single quotes seems to fix the issue:
msg409111 - (view) Author: Daniel Diniz (ajaksu2) * (Python triager) Date: 2021-12-23 23:03
This example was added in issue 43047. It only seems to affect 3.10+ docs. Ian, is this something you'd like to tackle?
msg409238 - (view) Author: Samriddhi Bhardwaj (samriddhi.bhardwaj) Date: 2021-12-27 18:23
I would like to help with this issue. It should take me less than 5 days.
msg416765 - (view) Author: Stanley (slateny) * Date: 2022-04-05 09:41
Samriddhi, are you still working on this?
Date User Action Args
2022-04-11 14:59:53adminsetgithub: 90326
2022-04-05 09:41:04slatenysetnosy: + slateny
messages: + msg416765
2021-12-27 18:23:53samriddhi.bhardwajsetnosy: + samriddhi.bhardwaj
messages: + msg409238
2021-12-23 23:03:45ajaksu2setversions: + Python 3.10, Python 3.11, - Python 3.8
nosy: + iwienand, ajaksu2

messages: + msg409111

keywords: + easy
stage: needs patch
2021-12-23 20:58:06bokunogfcreate