Skip to content

[py] Fix import for type hint #15817

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

Merged
merged 1 commit into from
May 29, 2025
Merged

Conversation

cgoldberg
Copy link
Contributor

@cgoldberg cgoldberg commented May 29, 2025

User description

💥 What does this PR do?

Fixes type hint import so Generator is imported from collections.abc instead of typing.

🔄 Types of changes

  • Bug fix (backwards compatible)

PR Type

Bug fix


Description

  • Fix import of Generator for type hinting

  • Use collections.abc instead of deprecated typing


Changes walkthrough 📝

Relevant files
Bug fix
common.py
Corrected `Generator` import for type hinting                       

py/selenium/webdriver/common/bidi/common.py

  • Changed import of Generator from typing to collections.abc
  • Ensured type hinting uses the correct module
  • +3/-1     

    Need help?
  • Type /help how to ... in the comments thread for any questions about Qodo Merge usage.
  • Check out the documentation for more information.
  • Copy link
    Contributor

    PR Reviewer Guide 🔍

    Here are some key observations to aid the review process:

    ⏱️ Estimated effort to review: 1 🔵⚪⚪⚪⚪
    🧪 No relevant tests
    🔒 No security concerns identified
    ⚡ No major issues detected

    @selenium-ci selenium-ci added C-py Python Bindings B-devtools Includes everything BiDi or Chrome DevTools related labels May 29, 2025
    Copy link
    Contributor

    PR Code Suggestions ✨

    No code suggestions found for the PR.

    @cgoldberg cgoldberg removed the B-devtools Includes everything BiDi or Chrome DevTools related label May 29, 2025
    @cgoldberg cgoldberg merged commit 119320a into SeleniumHQ:trunk May 29, 2025
    8 checks passed
    @cgoldberg cgoldberg deleted the fix-type-import branch May 29, 2025 13:03
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    2 participants