Improve type hinting. (#914)

This commit is contained in:
Felix Fontein
2025-06-08 20:48:58 +02:00
committed by GitHub
parent a6b5884fc6
commit e90d4d2b0f
6 changed files with 73 additions and 21 deletions

View File

@@ -173,7 +173,14 @@ class Order:
raise
def refresh(self, *, client: ACMEClient) -> bool:
result, dummy = client.get_request(self.url)
result, info = client.get_request(self.url)
if not isinstance(result, dict):
raise ACMEProtocolException(
module=client.module,
msg="Unexpected authorization data",
info=info,
content_json=result,
)
changed = self.data != result
self._setup(client=client, data=result)
return changed