-
Notifications
You must be signed in to change notification settings - Fork 184
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
Revert Pyupgrade Pep 604 Typing Rewrites #562
Conversation
So this is really only an issue in the context of #561 when the union syntax is used in a field since those are the types that are resolved when building a schema. Feels kind of weird to require |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two questions that do not impact approval but want addressed before we move forward with this one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bless this mess
That does feel weird, and maybe would be easier to drop 3.9. It'd be an easier decision if we had any idea what the version breakdown was among users. I found these survey results from Jetbrains (the 2023 survey results aren't available yet) implying 3.9 has a pretty large share, but clearly pretty out of date by now as it only includes versions as high as 3.10. |
Another option could be to go all in on the revert so consistent throughout. I only reverted to Dropping 3.9 feels wrong, also I think 3.10 still has some issues with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nothing worth blocking approval over but several unused Optional
imports added here.
The question around 3.9 support generally is worth discussing but can happen outside this PR.
griptape/drivers/embedding/amazon_sagemaker_embedding_driver.py
Outdated
Show resolved
Hide resolved
griptape/drivers/embedding/base_multi_model_embedding_driver.py
Outdated
Show resolved
Hide resolved
94dc029
94dc029
to
ab835b0
Compare
Reverts pyupgrade's pep 604 typing rewrites which causes issues with #561 on versions greater than python 3.9.
Thank goodness for regexes.