python / typeshed

Collection of library stubs for Python, with static types
Other
4.23k stars 1.71k forks source link

Help typeshed add support for Python 3.13! #11990

Open AlexWaygood opened 2 months ago

AlexWaygood commented 2 months ago

The Python 3.13 beta 1 has just been released, and there's a lot of functions and classes that are either new or changed in Python 3.13! This is a great way you could help contribute with typeshed during the PyCon sprints.


How to help? Follow these steps:

  1. Clone typeshed and create a new branch
  2. Remove one or more entries in the section immediately under this comment in this file: https://github.com/python/typeshed/blob/f3ca3001eee5f5b068b61838ac06abf7c1d23158/stdlib/%40tests/stubtest_allowlists/py313.txt#L5

    (I probably wouldn't try removing too many at once)

  3. If you have Python 3.13 available locally:

    1. activate a Python 3.13 virtual environment
    2. Run pip install -r requirements-tests.txt
    3. Run pip install git+https://github.com/python/mypy@e8a26308d5d06925cf769b62f41ef2e4bc546ada
    4. Run python tests/stubtest_stdlib.py
    5. Fix the errors reported in step (4)
    6. Make a PR

    Otherwise:

    1. Make a PR
    2. Fix the errors reported in GitHub's CI and push to the PR branch

Feel free to ping me, @JelleZijlstra or @hauntsaninja if you have any questions or difficulties! (We're all at the sprints!)

AlexWaygood commented 2 months ago

(cc. @tonybaloney, if you still have folks looking for good sprint contributions!)

AlexWaygood commented 2 months ago

(The PyCon sprints are over now, but this is still a great way to contribute, and we'll gladly accept PRs relating to it!)