#34355 closed Cleanup/optimization (fixed)

Make BaseConstraint arguments keyword-only

Reported by: xafer Owned by: xafer
Component: Database layer (models, ORM) Version: dev
Severity: Normal Keywords:
Cc: Mariusz Felisiak Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

As suggested in https://github.com/django/django/pull/16560#pullrequestreview-1305496392

I think we should change the signature of BaseConstraint to use keyword-only arguments as a separate cleanup

name and violation_error_message are already keyword-only in all the BaseConstraint subclasses in Django code base.

Change History (6)

comment:1 by xafer, 22 months ago

Owner: changed from nobody to xafer
Status: newassigned

comment:2 by xafer, 22 months ago

Has patch: set

Cf PR

comment:3 by Mariusz Felisiak, 22 months ago

Triage Stage: UnreviewedAccepted

comment:4 by Mariusz Felisiak, 22 months ago

Patch needs improvement: set

comment:5 by Mariusz Felisiak, 22 months ago

Patch needs improvement: unset
Triage Stage: AcceptedReady for checkin

comment:6 by Mariusz Felisiak <felisiak.mariusz@…>, 22 months ago

Resolution: fixed
Status: assignedclosed

In ad18a010:

Fixed #34355 -- Deprecated passing positional arguments to BaseConstraint.

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