pallets / werkzeug

The comprehensive WSGI web application library.
https://werkzeug.palletsprojects.com
BSD 3-Clause "New" or "Revised" License
6.63k stars 1.73k forks source link

Improve types for AST handling #2905

Closed JelleZijlstra closed 3 weeks ago

JelleZijlstra commented 3 months ago

Adapting to changes in python/typeshed#11880. This mostly adds more precise types for individual pieces of AST.

This change fixes typechecking issues that will show up when you next upgrade mypy.

davidism commented 3 months ago

Is this new mypy released yet? I just updated mypy to 1.10 and it seems to pass without this change, but perhaps it's not out yet.

JelleZijlstra commented 3 months ago

It's not out, this is related to a typeshed PR that I merged earlier today. The relevant changes should be in the next mypy release.