[mypy] Need help to fix all mypy errors in the codebase
#4052
Comments
|
@dhruvmanila I am beginner programmer in python. Is there any help I can do regarding this? |
|
wrking |
Update:With the latest update for |
|
I updated the list above to reflect the directories that pass in our build GitHub Action. As contributors fix directories, please add them to the mypy tests in |
…dimensional.py" (TheAlgorithms#4216) Related Issue: TheAlgorithms#4052
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
|
Please reopen this issue once you add more information and updates here. If this is not the case and you need some help, feel free to seek help from our Gitter or ping one of the reviewers. Thank you for your contributions! |
|
Hello... Can I help with any of the issues here? ..i want to learn the ways ...so i also might need some guidance |
|
Hello .. Can I help with any issues here? Like if someone assigns me some work I would be grateful to work on that |
|
No one assigns work. We just review pull requests so please go ahead. |
|
Now how to solve it |
|
@AminVerve14 Read all the instructions given in the guidelines of this issue, you will get to know |


UPDATE: Our GitHub Actions now run
mypy --ignore-missing-importsexcluding those directories that fail that test.Currently, we are not running
mypyin our regular CI tests as there are a lot of errors in the entire codebase, which needs to be fixed. This won't be a one-person job, so we are asking for help from you. I cannot paste the entire message in here as there are around 600 of them, so here's just a gist of it:Guidelines to follow:
mypyin our CI tests, the user who is submitting a pull request should run it on their local machine and ensure there are no errors in their submission.mypyin it. If possible use this template for your pull request title:Which errors to fix?
Please follow the below steps to produce all the errors in this library:
Then you need to install all the necessary requirements:
Then run either of the two commands:
mypy --ignore-missing-imports .-> To produce all the error messages for the entire codebase.mypy --ignore-missing-imports <filepath1> <filepath2> ...-> To produce error messages for the mentioned file.How to fix the errors?
Focus on one directory at a time:
Pre-requisites:
mypy: https://mypy.readthedocs.ioThe text was updated successfully, but these errors were encountered: