-
Notifications
You must be signed in to change notification settings - Fork 200
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
Solving mypy errors #406
Solving mypy errors #406
Conversation
Thank you for the pull request!The activist team will do our best to address your contribution as soon as we can. The following is a checklist for maintainers to make sure this process goes as well as possible. Feel free to address the points below yourself in further commits if you realize that actions are needed :) If you're not already a member of our public Matrix community, please consider joining! We'd suggest using Element as your Matrix client, and definitely join the General and Development rooms once you're in. It'd be great to have you! Maintainer checklist
|
✅ Deploy Preview for activist-org canceled.
|
@momanyisamuel, re message to you two on Matrix: can you give this a look through? General question for you both, can you merge? Sorry, just have no idea what other people are seeing in here sometimes. I'd be happy to merge this post review and then I'll look into getting you two those rights :) |
@to-sta, just a note that I'm on a call with @thiagogquinto right now who was working on the localizations of these. We think that the changes will work, and let's make an issue after this that will try to implement some localizations of the errors to then we can test to see if it all works 😊 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All looks great, @to-sta! Sorry for the wait on this. Am finally feeling better and a bit more caught up on things 😊
Contributor checklist
Description
In this PR i fixed the current errors from running mypy in the backend directory. Had to make changes in the settings.py file to solve issues that would have occured when running django with type annotations for ModelViewSets.
@andrewtavis we talked briefly in the 🌙 Code Night about internationalization and the following function:
There is no keyword argument
params
forValidationError
onlydetail
andcode
. Since theparams
are only used for string formatting i changed it to an f'string. But i have not tested if the translation works. I will create an issue for that 😊.Errors
I have tested running mypy and we have 0 errors at the moment. Additional i checked docker-compose up --build to see if there are any new errors introduced.
Related issue