Skip to content

Add more defaults to the stdlib #9606

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 13 commits into from
Jan 29, 2023
Merged

Conversation

AlexWaygood
Copy link
Member

@AlexWaygood AlexWaygood commented Jan 29, 2023

Continuing work towards #8988.

The first five commits were created using stubdefaulter on various Python versions; the subsequent commits were all created manually by me to fix various problems. The main things this adds that weren't present in #9501 are:

  • Defaults in Windows-only modules and Windows-only branches (because I'm running a Windows machine)
  • Defaults in non-py311 branches
  • Defaults for float parameters
  • Defaults for overloads

To test this PR, I've run mypy-master stubtest locally on Python 3.7, Python 3.8, Python 3.9, Python 3.10 and Python 3.11. I also temporarily switched to using mypy-master stubtest in CI in ec4471f so that we could see the results.

@github-actions

This comment has been minimized.

@AlexWaygood AlexWaygood marked this pull request as draft January 29, 2023 01:22
@AlexWaygood AlexWaygood marked this pull request as ready for review January 29, 2023 01:32
@github-actions
Copy link
Contributor

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

@AlexWaygood AlexWaygood merged commit 33a62ae into python:main Jan 29, 2023
@AlexWaygood AlexWaygood deleted the stubdefaulter branch January 29, 2023 01:51
Avasam pushed a commit to Avasam/typeshed that referenced this pull request Feb 1, 2023
Continuing work towards python#8988.

The first five commits were created using stubdefaulter on various Python versions; the following commits were all created manually by me to fix various problems. The main things this adds that weren't present in python#9501 are:

- Defaults in Windows-only modules and Windows-only branches (because I'm running a Windows machine)
- Defaults in non-py311 branches
- Defaults for float parameters
- Defaults for overloads
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.

2 participants