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

Refactoring the API as part of Effect-Check/API audit #189

Merged
merged 2 commits into from
May 10, 2022
Merged

Conversation

gilbo
Copy link
Contributor

@gilbo gilbo commented May 10, 2022

These should all be extremely trivial changes; just trying to separate from more meaningful changes in a later PR.

@gilbo gilbo requested a review from yamaguchi1024 May 10, 2022 16:34
@codecov
Copy link

codecov bot commented May 10, 2022

Codecov Report

Merging #189 (b582aee) into master (a4238e5) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #189   +/-   ##
=======================================
  Coverage   80.13%   80.13%           
=======================================
  Files          32       32           
  Lines        2885     2885           
=======================================
  Hits         2312     2312           
  Misses        573      573           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a4238e5...b582aee. Read the comment docs.

Comment on lines +1327 to +1328
return [type(s)( s.name, s.type, s.cast,
idx, rhs, None, s.srcinfo )]
Copy link
Contributor

Choose a reason for hiding this comment

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

Just a reminder that we have this nice new update function that makes this sort of code easier to read/write.

Suggested change
return [type(s)( s.name, s.type, s.cast,
idx, rhs, None, s.srcinfo )]
return [s.update(idx=idx, rhs=rhs, eff=None)]

@yamaguchi1024
Copy link
Member

@gilbo Did data_reuse and delete_config changed their locations? What was the motivation for that?

@gilbo
Copy link
Contributor Author

gilbo commented May 10, 2022 via email

@yamaguchi1024
Copy link
Member

@gilbo Sure, this change looks good to me!

@gilbo gilbo merged commit b1a42d5 into master May 10, 2022
@gilbo gilbo deleted the api-refactor branch May 10, 2022 19:52
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.

None yet

3 participants