Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # 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
@maartenbreddels
Copy link
Contributor

@egormkn Sorry for taking so long, I missed this one. Do you still need this?

@iisakkirotko iisakkirotko force-pushed the master branch 2 times, most recently from ba8a5ae to a6969e3 Compare December 16, 2024 16:21
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants