-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
[py] Various type hinting improvements #15740
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
base: trunk
Are you sure you want to change the base?
Conversation
Used regex for search: : \w+ = None
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
Thanks. Take a look at the AI bot's feedback and fix whatever is appropriate (he's often wrong) and I'll review this tomorrow. |
CI tests are failing due to this:
There are also a bunch of linting errors. You can fix those (or at least see what's failing) by running: |
User description
💥 What does this PR do?
Improves type hinting support
PR Type
Enhancement
Description
Add and refine type hints across actions modules
Use Literal and Union for stricter typing
Update method signatures for better type safety
Add docstrings to clarify argument types
Changes walkthrough 📝
7 files
Refine pointer input method type hints
Update pause method to use Union type hints
Add Literal and Union type hints for sources and kinds
Add type hints and Literal usage for key actions
Add and refine type hints for pointer actions
Add type hints and docstrings for wheel actions
Add type hints and docstrings for wheel input and scroll origin