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

ref(mediators): Turn project rule creator to dataclass #79137

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

Christinarlong
Copy link
Contributor

@Christinarlong Christinarlong commented Oct 15, 2024

Turns Creator -> ProjectRuleCreator to dataclass and update uses to be explicit in passing in params

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Oct 15, 2024
Copy link

codecov bot commented Oct 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #79137      +/-   ##
==========================================
- Coverage   78.29%   78.29%   -0.01%     
==========================================
  Files        7133     7134       +1     
  Lines      314191   314233      +42     
  Branches    51320    51325       +5     
==========================================
+ Hits       246007   246037      +30     
- Misses      61748    61756       +8     
- Partials     6436     6440       +4     

r = self.creator.call()
rule = Rule.objects.get(id=r.id)
r = self.creator.run()
rule: Rule = Rule.objects.get(id=r.id)
Copy link
Member

Choose a reason for hiding this comment

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

You shouldn't need to provide a type unless there is another variable that is shadowing rule.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants