mhammond / pywin32

Python for Windows (pywin32) Extensions
4.9k stars 783 forks source link

Ensure modern type annotation best practices and modern syntax #2258

Closed Avasam closed 1 month ago

Avasam commented 1 month ago

As type hints and annotations are added to pywin32, now that type-checkers are fully in place, I would like to be able to ensure modern syntax and best practices for type annotations.

This is linting and some autofixes for typing. Things that "technically pass type-checking" but aren't necessarily the best.