Add typing for ConcurrencyManager and deprecate it.
Review Request #14044 — Created July 16, 2024 and submitted — Latest diff uploaded
This change adds generic parameters for
ConcurrencyManager
so it can be
used where we would expect a Manager.This particular class also hasn't been useful since the very early days
of Django, since the baseManager.get_or_create
implementation now does
exactly what this code does, preventing us from ever hitting the
exception handler. Because of that, I've removed theget_or_create
implementation entirely and marked the class as deprecated.
- Ran unit tests.