Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle automatic docstring dedenting in Python 3.13 #1052

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

juliangilbey
Copy link
Contributor

Python 3.13 has changed the way it handles docstrings; see https://docs.python.org/3/whatsnew/3.13.html#other-language-changes and python/cpython#81283

As a result of this, the reqrep() function in jupyter_client.client gives a poorly indented docstring, and as a result Sphinx fails.

This PR addresses this by ensuring that the docstring changes that reqrep() performs respect the indentation of the docstring it has been passed. It has been tested on Python 3.12 and Python 3.13.

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.

1 participant