Skip to content
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

feat: relax typing_extensions version constraint #38

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

egormkn
Copy link

@egormkn egormkn commented Jul 22, 2024

Hello!
I wanted to use Reacton in a project where the version of typing_extensions is pinned to 3.7.4.1 (python3-typing-extensions package from Ubuntu 20.04). However, due to ParamSpec usage, reacton requires at least 4.1.1. I suggest to relax the requirements, as missing type definition does not break anything.

Here I used a simple try-except to set type alias to ellipsis on failed import. Not entirely sure if it is correct as documentation specifies a literal ellipsis as a possible type argument for Callable, but with CPython 3.6+ this works fine.

@egormkn egormkn force-pushed the relax-deps-version-constraints branch from b8f8c0d to 432c1a2 Compare July 22, 2024 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant