mirror of
https://github.com/andrewthetechie/py-healthchecks.io.git
synced 2026-05-01 19:25:55 +02:00
Revert "chore: ci fixups and poetry update"
This reverts commit d0b986025e.
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
https://healthchecks.io/docs/api/
|
||||
"""
|
||||
from typing import Dict
|
||||
|
||||
from pydantic import BaseModel
|
||||
|
||||
@@ -17,7 +18,7 @@ class Badges(BaseModel):
|
||||
shields3: str
|
||||
|
||||
@classmethod
|
||||
def from_api_result(cls, badges_dict: dict[str, str]) -> "Badges":
|
||||
def from_api_result(cls, badges_dict: Dict[str, str]) -> "Badges":
|
||||
"""Converts a dictionary from the healthchecks api into a Badges object."""
|
||||
badges_dict["json_url"] = badges_dict["json"]
|
||||
badges_dict["json3_url"] = badges_dict["json3"]
|
||||
|
||||
Reference in New Issue
Block a user