Skip to content

gh-101552: Allow pydoc to display signatures in source format#124669

Merged
JelleZijlstra merged 13 commits intopython:mainfrom
JelleZijlstra:sigdocs
Oct 9, 2024
Merged

gh-101552: Allow pydoc to display signatures in source format#124669
JelleZijlstra merged 13 commits intopython:mainfrom
JelleZijlstra:sigdocs

Conversation

@JelleZijlstra
Copy link
Copy Markdown
Member

@JelleZijlstra JelleZijlstra commented Sep 27, 2024

  • Add a annotations_format argument to inspect.signature, matching annotationlib.Format
  • Add an unquote_annotations argument to inspect.Signature.format, allowing string annotations to be displayed without quotes
  • Use the new functionality in pydoc to display signatures in source format.

📚 Documentation preview 📚: https://cpython-previews--124669.org.readthedocs.build/

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants