setuptools icon indicating copy to clipboard operation
setuptools copied to clipboard

Type-check on Python 3.12

Open Avasam opened this issue 1 year ago • 3 comments

Summary of changes

Actually type-check targeting all Python versions in CI, including 3.12

I'd rather if it was possible for the CI to tell mypy which python version to target to override python_version config.

Pull Request Checklist

  • [x] Changes have tests (these are the test changes)
  • [x] News fragment added in newsfragments/. (not public-facing) (See documentation for details)

Avasam avatar May 09 '24 21:05 Avasam

I'm gonna leave this one for later. I won't have a choice but to tackle it to merge setuptools stubs from typeshed, but it doesn't affect pkg_resources which I'm focusing on for now.

Avasam avatar May 10 '24 01:05 Avasam

Looks like I'll have to handle a handful of the typeshed-related TODOs first. Because distutils imports become Any in Python 3.12, a handful of type-ignores become unused.

Avasam avatar May 17 '24 02:05 Avasam

Hopefully I didn't forget to add anything to typeshed. Waiting for https://github.com/python/mypy/issues/17285

Avasam avatar Jun 17 '24 19:06 Avasam

Thank you very much, @Avasam.

abravalheri avatar Aug 21 '24 14:08 abravalheri