Opened 11 years ago
Closed 11 years ago
#22193 closed Cleanup/optimization (fixed)
Make hints truly optional when defining system check messages
Reported by: | Russell Keith-Magee | Owned by: | nobody |
---|---|---|---|
Component: | Core (System checks) | Version: | 1.7-alpha-1 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Via discussion on django-developers:
The documentation currently describes the hint
argument on check.Error()
et al by saying that you have to provide the hint argument as a keyword argument. However, hints are strictly optional, and requiring the keyword argument isn't entirely pythonic.
The documentation should be cleaned up to remove the bad Python hint, and the code should be modified to make hint truly optional.
Note:
See TracTickets
for help on using tickets.
In 21d8175242273a2371bd9374994bacdd118309d3: