diff --git a/passbook/core/signals.py b/passbook/core/signals.py index ec0aea598..d6c9446f5 100644 --- a/passbook/core/signals.py +++ b/passbook/core/signals.py @@ -1,4 +1,5 @@ """passbook core signals""" from django.core.signals import Signal -password_changed = Signal(providing_args=["user", "password"]) +# Arguments: user: User, password: str +password_changed = Signal() diff --git a/passbook/stages/invitation/signals.py b/passbook/stages/invitation/signals.py index 99b7fa0d1..34b4614a8 100644 --- a/passbook/stages/invitation/signals.py +++ b/passbook/stages/invitation/signals.py @@ -1,5 +1,7 @@ """passbook invitation signals""" from django.core.signals import Signal -invitation_created = Signal(providing_args=["request", "invitation"]) -invitation_used = Signal(providing_args=["request", "invitation"]) +# Arguments: request: HttpRequest, invitation: Invitation +invitation_created = Signal() +# Arguments: request: HttpRequest, invitation: Invitation +invitation_used = Signal() diff --git a/passbook/stages/prompt/signals.py b/passbook/stages/prompt/signals.py index ad4b6bd11..61cc43e12 100644 --- a/passbook/stages/prompt/signals.py +++ b/passbook/stages/prompt/signals.py @@ -1,4 +1,5 @@ """passbook prompt stage signals""" from django.core.signals import Signal -password_validate = Signal(providing_args=["password", "plan_context"]) +# Arguments: password: str, plan_context: Dict[str, Any] +password_validate = Signal() diff --git a/passbook/stages/user_write/signals.py b/passbook/stages/user_write/signals.py index e70401ca5..6fa602b0a 100644 --- a/passbook/stages/user_write/signals.py +++ b/passbook/stages/user_write/signals.py @@ -1,4 +1,5 @@ """passbook user_write signals""" from django.core.signals import Signal -user_write = Signal(providing_args=["request", "user", "data"]) +# Arguments: request: HttpRequest, user: User, data: Dict[str, Any] +user_write = Signal()