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
Adding Mypy type annotations to domain folder files #14033
Comments
@sajalasati Assign me the following |
@kingjuno I've assigned you now! |
@sajalasati Can I get any three files assigned to me? |
Done, assigned you the next 3 in order. |
Hi @sajalasati, I would like to work on this. Please assign me a file. |
Done! |
|
Hey @sajalasati Can you please assign me |
@vashuteotia123 We could use Just a note for future, it would be helpful if you can provide a link to the code (file) where you have doubts, and possibly your guessed annotation too, so that we can help you understand what (and why) that annotation should be. I hope this helps :) |
@ShivamJhaa Done! |
@sajalasati I did somewhat the same, I didn't know about Union, will understand the working of it and implement it. |
@vashuteotia123 No issues, just check for it in the codebase, you'll find plenty of examples. |
Hey @sajalasati Can you help me in determining the type annotation of these two |
Hi @sajalasati, please assign me 3 where needed. Thanks |
@vojtechjelinek @sajalasati What will be the annotation for this? |
@sajalasati I wanna contribute during the Hacktoberfest. Will you please assign me 2 files? |
These shouldn't need any typing. |
@megamayoy @lheureuxe13 Done! |
Hi @hsadia538 , But still, you can find other beginner-friendly issues by searching the |
…ain` folder. -- M1.2 (#15580) * added auth_services * added task_queue * added subscription_services * added recommendations * added playthrough * added learner goal * added interaction registry * added improvements regisrty * nits * nits * fixes * added change_domain * added custom_utils * nits * nits * added changes * some refactoring * nits * reverted get() * removed comment * comment nits * minors * nits * added fixes * nits * nits * added todo * lint * removed cast * fixed backend test * fixing backend test try -1 * removeed last_updated * added test file for coverage * nits * refactored * nits * removed test * removed * reverted things * nits * tsting - 1 * reverted and cleaned every thing * nits fixed * mypy fixes * added comment * added todos
…ain` folder. -- M1.3 (#15596) * added platform_param * added rules_registry * added moderator_services * added learner_playlist * added parameter_registry * added rte_registry * fixed mypy tests * fixed backend * checking backend failures * added image validation * some nits * added lint fix * requested changes * nits * added fixes * nits * added todos * nits * requested changes * added changes * fixed comment * minor nits * added comments * nits * fixes * added changes * reverted things * removed optinals * nits * added raises * added fixes * added dash dash
@swethasekhar |
…in folder. -- M1.5 (#15640) * added platform_parameter_list * added classifer_services.py * added questions fetchers * added changes * nits * added exp_fetchers * fixed backend * reverted changes * added fixes * added fixes * added new changes for conflict * added nits * reomved Any * added things * minor changes * nits * more fix * nits * nits * comment * reverted some changes due to backend failuer * changed type to bytes * added changes * removed . thing * added assert * nits * removed if cluase * reverted to check backend test
@vojtechjelinek could you unassign me from my files? Thank you |
@Darsuu Sorry, this issue is no longer available for new contributors. Please check issues with "Good first issue" label. |
* Added mypy type annotations stats_domain.py * Added mypy type annotations to stats_domain.py * Adding mypy type annotations to stats_domain.py * Adding mypy type annotations to stats_domain.py * Adding mypy type annotations to stats_domain.py * Adding mypy type annotations to stats_domain.py * Adding mypy type annotations to stats_domain.py * Addressing review comments * Addressing review comments * Addressing review comments * Addressed review comments * Addressed review comments * Addressed review comments * Addressed review comments * Addressing review comments * Addressed review comments * Addressed review comments * Addressing review comments * Adding mypy type annotations to question_fetchers.py * addressing review comments * fixing stats_domain_test.py tests * Addressing review comments * Addressing review comments * Addressing review comments * fixing any comments * fixing any * fixing any * fixing backend test failures * fixing backend test * fixing backend tests * fixing backend test * fixing backend tests * fixing keyerror backend tests * fixing keyerror tests * fixing backend test coverage * resolving merge conflicts * adding mypy type annotations for new methods * adding mypy type annotations to validate_aggregated_stats_dict method * fixing customization_args type * addressing review comments * fix convert actionv1 to v2dict test * fix convert action dict test * resolve merge conflicts * fixed action dict conversion test * fixed action dict conversion test * addressing review comments * lint * import final
…in folder. -- M1.8 (#15762) * added collection services * added html_validation * added opportunity services * added question services * added fixes * added event services * nits * added changes * added optional changes * nits * added changes * added changes * added changes * reverted optional for story * added changes * changed base type * added comments * added changes * added nits fixes * changes * changes * added changes * added fixes for backend * addec hanges * added changes * nits
…in folder. -- M1.9 (#15801) * added voice_services * added story_services * added half question domain * half test file and full main file * added question domain * added changes for suggestion services * added full test file * added changes * added suggestion_reigstry * minor fixes * more minor fixes * added summary_services * added expression_parser.py * added changes * added changes * added changes * added changes * added changes * added changes * added changes * added changes * added changes * added changes * added changes * added changes * added changes * removed merge conflict issues * nits * nit * fixes * nits
…in folder. -- M1.7 (#15693) * added state_domain for support * added draft_upgrade_service * added feedback services * added backend fixes for draf_services * pending test file * added right_manager's test file * removed assertion because it failing backend tests * added exp_domian_test half * added full exp_domain_test * added skill domain and take self-pass before assign * nits and take pass on tommorrow morning * added changes * added chenages * nits * added changes * minor nits: * added changes -2 * added changes and going to sleep * added changes * nits * nits again * nits * added docs * added assertions * added assertion -2 * added returns * added explanations * added changes * removed dead code * reverted coverage * nits * nits * added changes * added if clause * added changes * nits * added small changes * added tests * nits * added nits * added changes * added changes * added changes * added failing test * added changes * added changes * added changes * added changes * fixed backend tests * minor change * added changes * nits * added changes * nits * added changes - after merge conflict * added changes * nits * added changes * nits
…in folder. -- M1.10 (#15827) * added wipeout_service * added learner_progress * added skill_services * added exp_services * added changes * added backend fixes * added fixes * added changes * minor fix * added state_domain * added backend fixes * fixes backend tests and coverage * nits * added changes * added changes * added changes * added changes * nits * added changes * nits * added tests * added changes * added changes * added changes * added changes * nits * added changes * changes * added changes * added changes * resolved merge conflict * added changes * added changes * nits * added changes * fixed merged conflict * added changes * added changes * added changes * added changes * fixed minore changes * resovled merge conflict * added changes * added changes * nits * added changes * added changes * changes * added changes * nits * nits -- found
… domain folder. -- M1.10 (oppia#15827) * added wipeout_service * added learner_progress * added skill_services * added exp_services * added changes * added backend fixes * added fixes * added changes * minor fix * added state_domain * added backend fixes * fixes backend tests and coverage * nits * added changes * added changes * added changes * added changes * nits * added changes * nits * added tests * added changes * added changes * added changes * added changes * nits * added changes * changes * added changes * added changes * resolved merge conflict * added changes * added changes * nits * added changes * fixed merged conflict * added changes * added changes * added changes * added changes * fixed minore changes * resovled merge conflict * added changes * added changes * nits * added changes * added changes * changes * added changes * nits * nits -- found
@seanlip @aasiffaizal -- I think we can close this issue as we have covered all the files of the code/domain directory, Thanks. @kevintab95 -- One question why Improvement label is added ?, I think all files of code/domain are covered. |
Considering this is an infra / maintenance related issue, I thought it was relevant to tag as "improvement" (as opposed to a "bug".) |
@sahiljoster32 Sounds good, closing it. Thanks! |
This issue will track the type annotation process of all the
core/domain/*.py
(and their test files). To get started, ask to be assigned to any unclaimed task. Tasks are claimed by adding the username of the claimer to the end of the task, e.g. @example.Note: Main code file and its test file must be type-annotated together.
The general procedure to add type annotations is as follows:
NOT_FULLY_COVERED_FILES
inscripts/run_mypy_checks.py
). Run the mypy checks on the code file usingpython -m scripts.run_mypy_checks --files <path/to/file>
to understand all the errors mypy is reporting for this file.python -m scripts.run_mypy_checks
, which runs the type checks on the entire codebase, and ensure that no errors are being reported.Good examples of already annotated files in the codebase:
core/storage
folder.If you face problems in understanding a particular case while adding annotations, please go over the tips mentioned in the wiki once, and let us know if you are still stuck!
Tasks/files:
core/domain/action_registry.py
@sahiljoster32core/domain/activity_services.py
@sahiljoster32core/domain/auth_services.py
@IamhappyXDcore/domain/blog_services.py
@IamhappyXDcore/domain/calculation_registry.py
@sahiljoster32core/domain/classifier_services.py
core/domain/classroom_services.py
@SD-13core/domain/collection_services.py
core/domain/config_services.py
@sahiljoster32core/domain/cron_services.py
@SD-13core/domain/customization_args_util.py
core/domain/draft_upgrade_services.py
core/domain/email_manager.py
core/domain/email_services.py
@jordyparkercore/domain/email_subscription_services.py
@sahiljoster32core/domain/event_services.py
core/domain/exp_fetchers.py
core/domain/exp_services.py
core/domain/expression_parser.py
core/domain/feedback_services.py
core/domain/fs_services.py
@sahiljoster32core/domain/html_cleaner.py
@SD-13core/domain/html_validation_service.py
core/domain/image_services.py
@gopivaibhavcore/domain/image_validation_services.py
@hsadia538core/domain/improvements_services.py
core/domain/interaction_registry.py
core/domain/learner_goals_services.py
core/domain/learner_playlist_services.py
core/domain/learner_progress_services.py
core/domain/moderator_services.py
core/domain/object_registry.py
core/domain/opportunity_services.py
core/domain/platform_feature_services.py
core/domain/platform_parameter_list.py
@Darsuucore/domain/platform_parameter_list_test.py
@Darsuucore/domain/platform_parameter_registry.py
@Darsuucore/domain/playthrough_issue_registry.py
@Darsuucore/domain/question_fetchers.py
@winnie368ccore/domain/question_services.py
core/domain/rating_services.py
@IamhappyXDcore/domain/recommendations_services.py
core/domain/rights_manager.py
core/domain/role_services.py
@gopivaibhavcore/domain/rte_component_registry.py
@hsadia538core/domain/rules_registry.py
@hsadia538core/domain/search_services.py
core/domain/skill_fetchers.py
core/domain/skill_services.py
core/domain/stats_services.py
core/domain/story_fetchers.py
core/domain/story_services.py
core/domain/subscription_services.py
core/domain/subtopic_page_services.py
@ashish-patwalcore/domain/suggestion_registry.py
core/domain/suggestion_services.py
core/domain/summary_services.py
core/domain/takeout_service.py
@jordyparkercore/domain/taskqueue_services.py
@jordyparkercore/domain/topic_fetchers.py
@SD-13core/domain/topic_services.py
@SD-13core/domain/translatable_object_registry.py
@ashish-patwalcore/domain/translation_fetchers.py
@sahiljoster32core/domain/translation_services.py
@sahiljoster32core/domain/user_query_services.py
@SD-13core/domain/user_services.py
@SD-13core/domain/visualization_registry.py'
@SD-13core/domain/voiceover_services.py
@SD-13core/domain/wipeout_service.py
@SD-13core/domain/change_domain.py
@div-yamcore/domain/collection_domain.py
@sahiljoster32core/domain/exp_domain.py
@Yavnikaacore/domain/fs_domain.py
@PranshuSrivastavacore/domain/param_domain.py
@asmit2952 (attempted in Mypy annotation 3 files #14302)core/domain/platform_parameter_domain.py
@asmit2952 (attempted in Mypy annotation 3 files #14302)core/domain/question_domain.py
@asmit2952 (attempted in Mypy annotation 3 files #14302)core/domain/skill_domain.py
@dhruvshrivastavacore/domain/state_domain.py
@dhruvshrivastavacore/domain/stats_domain.py
@winnie368ccore/domain/story_domain.py
@Sangkyun-Kim15core/domain/subtopic_page_domain.py
@ashish-patwalcore/domain/user_domain.py
@sahiljoster32core/domain/user_query_domain.py
@ashish-patwalThe text was updated successfully, but these errors were encountered: