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

fix: Allow string py expressions in result and panic #759

Merged
merged 5 commits into from
Jan 8, 2025
Merged

Conversation

tatiana-s
Copy link
Contributor

No description provided.

@tatiana-s tatiana-s requested a review from a team as a code owner January 8, 2025 12:04
@tatiana-s tatiana-s requested a review from doug-q January 8, 2025 12:04
@codecov-commenter
Copy link

codecov-commenter commented Jan 8, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.98%. Comparing base (821771a) to head (1a6747d).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #759      +/-   ##
==========================================
+ Coverage   92.94%   92.98%   +0.03%     
==========================================
  Files          71       71              
  Lines        8224     8226       +2     
==========================================
+ Hits         7644     7649       +5     
+ Misses        580      577       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tatiana-s tatiana-s changed the title fix: Allow string py expressions in result tag fix: Allow string py expressions in result and panic Jan 8, 2025
| ^^^^^^^^^^^^^ Expected a string literal
| ^^^^^^^^^^^^^ Binary operator `+` not defined for `str` and `str`
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you update this test so it still catches the non static error. Something like

panic("foo" if y else "bar", y)

| ^^^^^^^^^^^^^ Expected a string literal
| ^^^^^^^^^^^^^ Binary operator `+` not defined for `str` and `str`
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same here

@tatiana-s tatiana-s requested a review from mark-koch January 8, 2025 14:07
@tatiana-s tatiana-s added this pull request to the merge queue Jan 8, 2025
Merged via the queue into main with commit 53401cc Jan 8, 2025
3 checks passed
@tatiana-s tatiana-s deleted the ts/py-result branch January 8, 2025 15:19
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.

3 participants