fix: resolve all mypy type errors

This commit is contained in:
Username
2025-12-25 00:19:21 +01:00
parent db9b45a9ad
commit a040fad0b8
3 changed files with 13 additions and 6 deletions

View File

@@ -95,7 +95,9 @@ def create_paste(
response = client.post("/", data=content, headers=headers)
assert response.status_code == 201
return response.get_json()["id"]
data = response.get_json()
assert data is not None
return str(data["id"])
# ─────────────────────────────────────────────────────────────────────────────