[py] Remove type stub packages from runtime dependencies#16945
[py] Remove type stub packages from runtime dependencies#16945cgoldberg merged 2 commits intoSeleniumHQ:trunkfrom
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||
|
Hi, |
|
@liudonggalaxy those don't conflict |
Thank you for the quick response.
|
|
|
User description
🔗 Related Issues
Fixes #16943
Related to ##16837
💥 What does this PR do?
This PR removes the type stub packages for trio/urllib3/certifi from runtime dependencies and leaves them as dev dependencies like they were previous to 4.40 release. These aren't really needed by end users and they shouldn't be required to install them.
This also removes types-urllib3 completely since they provide inline type hints.
🔄 Types of changes
PR Type
Bug fix
Description
Remove type stub packages from runtime dependencies
Move trio-typing, types-certifi, types-urllib3 to dev only
Reduce unnecessary dependencies for end users
Diagram Walkthrough
File Walkthrough
BUILD.bazel
Remove type stub packages from wheel dependenciespy/BUILD.bazel
trio-typing>=0.10.0from requires listtypes-certifi>=2021.10.8.3from requires listtypes-urllib3>=1.26.25.14from requires listpyproject.toml
Remove type stub packages from project dependenciespy/pyproject.toml
trio-typing>=0.10.0from dependenciestypes-certifi>=2021.10.8.3from dependenciestypes-urllib3>=1.26.25.14from dependencies