Remove a useless cast

This commit is contained in:
Adrien Ferrand 2021-10-27 01:05:06 +02:00
parent c678652b3c
commit 79b2ba5b4e

View file

@ -131,9 +131,8 @@ class ClientBase:
:rtype: `.RegistrationResource`
"""
return self.update_registration(regr, cast(messages.Registration,
messages.Registration.from_json(
{"status": "deactivated", "contact": None})))
return self.update_registration(regr, messages.Registration.from_json(
{"status": "deactivated", "contact": None}))
def deactivate_authorization(self,
authzr: messages.AuthorizationResource