You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Django 3.1 deprecated the providing_args kwarg from Signal:
The purely documentational providing_args argument for Signal is deprecated. If you rely on this argument as documentation, you can move the text to a code comment or docstring.
Django 4 has now completely removed this kwarg and raises a TypeError if it is provided.
Proposed Solution
Considering providing_args was only for documentation purposes, we can simply refactor signals.py from:
Summary
Attempting to use
drf_model_pusher
with Django 4 raises the following exception on startup:Django 3.1 deprecated the
providing_args
kwarg fromSignal
:Django 4 has now completely removed this kwarg and raises a
TypeError
if it is provided.Proposed Solution
Considering
providing_args
was only for documentation purposes, we can simply refactorsignals.py
from:to
The text was updated successfully, but these errors were encountered: