Opened 4 years ago

Closed 4 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


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.

Change History (1)

comment:1 Changed 4 years ago by Russell Keith-Magee <russell@…>

Resolution: fixed
Status: newclosed

In 21d8175242273a2371bd9374994bacdd118309d3:

Fixed #22193 -- Made hint a truly optional arugment on check messages.

Thanks to Thomas Güttler for the suggestion.

Note: See TracTickets for help on using tickets.
Back to Top