Skip to content

[🐛 Bug]: Too tight dependency on typing-extensions #14278

@nijel

Description

@nijel

What happened?

Upgrade from selenium 4.22.0 to 4.23.0 is impossible because of tightened dependencies on typing-extensions as observed in WeblateOrg/weblate#12090:

Because django-stubs==5.0.2 depends on typing-extensions>=4.11.0 and
selenium==4.23.0 depends on typing-extensions>=4.9.0,<4.10.dev0, we can
conclude that django-stubs==5.0.2 and selenium==4.23.0 are incompatible.

It seems to be used only for:

from typing_extensions import deprecated

This is very unlikely to break between versions, so could the dependency be relaxed a bit? I think typing-extensions>=4.9.0,<5 would work well in this case (this is basically the same as typing-extensions=~4.9 used in 4.22.0).

This was changed by f69260d in #14187.

How can we reproduce the issue?

pip install django-stubs==5.0.2 selenium==4.23.0

Relevant log output

The conflict is caused by:
    django-stubs 5.0.2 depends on typing-extensions>=4.11.0
    selenium 4.23.0 depends on typing_extensions~=4.9.0

Operating System

Linux

Selenium version

4.23.0

What are the browser(s) and version(s) where you see this issue?

N/A

What are the browser driver(s) and version(s) where you see this issue?

N/A

Are you using Selenium Grid?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-needs-triagingA Selenium member will evaluate this soon!I-defectSomething is not working as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions