|
| 1 | +--- |
| 2 | +author:["Mariatta"] |
| 3 | +title:"Meeting Minutes: Feb 11, 2025" |
| 4 | +date:"2025-02-11" |
| 5 | +description:"Meeting Minutes from Python Docs Editorial Board: February 11, 2025" |
| 6 | +summary:"Meeting Minutes from Python Docs Editorial Board: February 11, 2025" |
| 7 | +tags:["minutes"] |
| 8 | +categories:["minutes"] |
| 9 | +series:["Meeting Minutes"] |
| 10 | +ShowToc:false |
| 11 | +TocOpen:false |
| 12 | +members:["Guido van Rossum", "Joanna Jablonski", "Mariatta", "Ned Batchelder"] |
| 13 | +guests:["Adam Turner"] |
| 14 | +--- |
| 15 | + |
| 16 | +###Agenda |
| 17 | + |
| 18 | + |
| 19 | +* Doc audit |
| 20 | +*[https://github.com/sphinx-doc/sphinx/pull/13242](https://github.com/sphinx-doc/sphinx/pull/13242) -- technicalities about 'or' vs. '|' in Sphinx ':type:' constructs. There appears to be growing support for sticking with '|' |
| 21 | +* Star/Slash in function signatures |
| 22 | + |
| 23 | +###Notes |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | +* Docs audit for argparse: see the “Docs Audit: argparse” doc in resources |
| 28 | +* Looks like a good start |
| 29 | +* Joanna and Savannah will be collaborating on this in the doc at first |
| 30 | +* With some updates in the EB Discord |
| 31 | +* They don’t currently need anything from the Board at the moment |
| 32 | +* They will pull us in if needed |
| 33 | +* Pipes vs “or” in Sphinx type descriptions? |
| 34 | +*[https://discuss.python.org/t/how-should-we-mark-up-multiple-types-in-a-type-field/48196/30](https://discuss.python.org/t/how-should-we-mark-up-multiple-types-in-a-type-field/48196/30) |
| 35 | +* Adam Turner joins to help |
| 36 | +* Adam’s view: we should adopt type annotation syntax |
| 37 | +* When that doesn’t work (no type, or “file-like”, etc) we should leave the annotation blank, but still write out the English |
| 38 | +* There are three places type information can appear: |
| 39 | +* The function signature, which should look like Python code |
| 40 | + * If an argument is “file like”, it should be omitted here. |
| 41 | +* The argument bullet list |
| 42 | +* This is the awkward place: types are parsed here with AST. |
| 43 | + * Sphinx possibilities: |
| 44 | + * Allow quoted strings, omit the quotes when rendering, and cross-link if the term is in the glossary. |
| 45 | + * Try to parse with AST, if it fails, parse with tokenize |
| 46 | +* English prose in paragraph form |
| 47 | +* If an argument is “file like”, it should be fully described here. |
| 48 | +* Plan: |
| 49 | +* For non-formal types, use glossary cross-references |
| 50 | +* Use pipes instead of prose where possible |
| 51 | +* Implementation |
| 52 | +* Allow quoted strings as the type annotation |
| 53 | +* Unify parsing of field-list style and annotation-style |
| 54 | +* Start with custom code for CPython to not have to wait for Sphinx release |
| 55 | +* But goal is to upstream it to Sphinx |
| 56 | +* Update the discuss.python.org thread with the decision. |
| 57 | +* Star/Slash in function signatures |
| 58 | +* We want signatures to be precise: if arguments are positional, use a slash, even if there is only one argument. |
| 59 | +* We will experiment with Sphinx tooling to provide a link on the slash and star. |
| 60 | +* We looked at underline for slash, it was distracting and drew attention to the slash, when most people argue that the slash is already too distracting |
| 61 | +* Hover text is a good fallback if a link isn’t an option. |
| 62 | + |