You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add conditional support for UnionType in DOM queries for Python 3.10+
- Use try/except to conditionally import UnionType and get_args
- Make UnionType overload signature conditional
- Add runtime checks before using UnionType functionality
- Maintain backward compatibility with Python <3.10
This change allows users on Python 3.10+ to query with Union types
while preserving compatibility with earlier Python versions.
0 commit comments