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

IWF-465: Initial search attributes #88

Merged
merged 1 commit into from
Mar 21, 2025
Merged

Conversation

lwolczynski
Copy link
Contributor

Closes #30

val_type = sa_types[initial_sa_key]
new_sa = SearchAttribute(key=initial_sa_key, value_type=val_type)
is_val_correct_type = False
if val_type == SearchAttributeValueType.INT:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know much Python, but could this be whole block with a switch type statement? Unsure if it's a feature available in Python though

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wish it could! https://www.datacamp.com/tutorial/python-switch-case

It's available in 3.10+

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense! Thank you 💯

Yes, I think it's best to keep the 3.9 support for now. We can do one big refactor a some point if we decide that the features are worth it. I don't think it's worth it just for the match feature 👍

@lwolczynski lwolczynski merged commit 343d932 into main Mar 21, 2025
2 checks passed
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.

Workflow start options: initial search attributes
2 participants