Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add is_cli param to pydoc.pyi #10331

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

Merged
merged 4 commits into from
Jun 21, 2023
Merged

Conversation

Eclips4
Copy link
Member

@Eclips4 Eclips4 commented Jun 19, 2023

As introduced in this PR, pydoc.doc and Helper.help now has an is_cli keyword parameter, which defaults to False.
It's has been backported to 3.11 branch, so I added a check for the version.

@github-actions

This comment has been minimized.

Copy link
Collaborator

@hauntsaninja hauntsaninja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! We'll merge once new versions have been released and Github Actions picks them up

@hauntsaninja hauntsaninja added the status: deferred Issue or PR deferred until some precondition is fixed label Jun 19, 2023
@github-actions

This comment has been minimized.

@AlexWaygood
Copy link
Member

Now that Python 3.12b3 has made its way to GitHub Actions, the lack of this parameter is causing our CI to fail on main (e.g. https://github.com/python/typeshed/actions/runs/5334685391/jobs/9666793887?pr=10277). But it'll still be a while until we get a 3.11 patch release that includes this parameter.

For now, I'm going to edit this PR so that it just includes the parameter on py312+. We can change the stub so that the parameter is also included on py311 when we get a py311 release that includes the parameter :)

@AlexWaygood AlexWaygood removed the status: deferred Issue or PR deferred until some precondition is fixed label Jun 21, 2023
@github-actions
Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@AlexWaygood AlexWaygood merged commit f3a0be3 into python:main Jun 21, 2023
@Eclips4 Eclips4 deleted the add_is_cli_param branch June 25, 2023 20:21
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