Add type hints and modernize documentation for reviews/views/
Review Request #12685 — Created Oct. 17, 2022 and submitted
This change adds type hints to the reviews.views module, and does some
updates to documentation (filling out a few missing docstrings and
editing others).
Ran unit tests.
Summary | ID |
---|---|
6958c015cfaa8bc9f4dfa27bca4032536e31df4c |
Description | From | Last Updated |
---|---|---|
'typing.Dict' imported but unused Column: 1 Error code: F401 |
reviewbot | |
Blank line between these. |
chipx86 | |
Missing Type: |
chipx86 | |
SafeString should precede mark_safe here. |
chipx86 | |
Blank line here. |
chipx86 | |
These will need to specify the actual module path to link up right. |
chipx86 | |
The description should be separated from the summary. |
chipx86 | |
We should probably have a * in here somewhere to separate positional from keyword-only arguments, to keep this maintainable. There … |
chipx86 | |
Same note about the module path. |
chipx86 | |
This will also need to specify the module path. Wish we had some automatic review that could catch these. We'll … |
chipx86 | |
line too long (82 > 79 characters) Column: 80 Error code: E501 |
reviewbot | |
unexpected spaces around keyword / parameter equals Column: 31 Error code: E251 |
reviewbot | |
Question: Since this is optional do we have to say datetime.datetime or None for the type? |
maubin |
- Commits:
-
Summary ID 6047279af99c4d04713af3cc3b89f22a2a416e5f 12b65c4843d5ffc111cb061efe7ad2e20758d750 - Diff:
-
Revision 2 (+1070 -320)
Checks run (2 succeeded)
-
Fantastic cleanup!
A few small things stood out, but nothing major.
-
-
-
-
-
-
-
We should probably have a
*
in here somewhere to separate positional from keyword-only arguments, to keep this maintainable. There might be other similar methods that could benefit. -
-
This will also need to specify the module path.
Wish we had some automatic review that could catch these. We'll have to someday get automatic doc building as part of the tests.
Can you build docs and see if anything comes up for any of these?
- Commits:
-
Summary ID 12b65c4843d5ffc111cb061efe7ad2e20758d750 3db5468075a577ca44bbf7984cb911927054dfda - Diff:
-
Revision 3 (+1100 -332)
- Commits:
-
Summary ID 3db5468075a577ca44bbf7984cb911927054dfda 6958c015cfaa8bc9f4dfa27bca4032536e31df4c - Diff:
-
Revision 4 (+1102 -332)