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

Improve parameter replacement in set_fn function #46

Merged
merged 2 commits into from
Oct 9, 2023

Conversation

ziatdinovmax
Copy link
Owner

  • Use regular expressions with word boundaries to replace parameter names in the source function.
  • Ensure robust replacement even in cases where parameter names are surrounded by characters other than spaces, like parentheses.
  • This resolves issues with functions that have parameters within expressions or parentheses.

- Use regular expressions with word boundaries to replace parameter names in the source function.
- Ensure robust replacement even in cases where parameter names are surrounded by characters other than spaces, like parentheses.
- This resolves issues with functions that have parameters within expressions or parentheses.
@codecov-commenter
Copy link

codecov-commenter commented Oct 9, 2023

Codecov Report

Merging #46 (64b1d88) into main (c6dab96) will increase coverage by 0.00%.
The diff coverage is 100.00%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

@@           Coverage Diff           @@
##             main      #46   +/-   ##
=======================================
  Coverage   95.89%   95.89%           
=======================================
  Files          41       41           
  Lines        3407     3408    +1     
=======================================
+ Hits         3267     3268    +1     
  Misses        140      140           
Flag Coverage Δ
unittests 95.89% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
gpax/utils.py 89.83% <100.00%> (+0.08%) ⬆️

... and 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@ziatdinovmax ziatdinovmax merged commit ed03fa9 into main Oct 9, 2023
12 checks passed
@ziatdinovmax ziatdinovmax deleted the ziatdinovmax-patch-1 branch January 12, 2024 04:04
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.

2 participants