forked from Wavyzz/py-healthchecks.io
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
|
||||
|
||||
@@ -14,6 +15,6 @@ class Integration(BaseModel):
|
||||
kind: str
|
||||
|
||||
@classmethod
|
||||
def from_api_result(cls, integration_dict: dict[str, str]) -> "Integration":
|
||||
def from_api_result(cls, integration_dict: Dict[str, str]) -> "Integration":
|
||||
"""Converts a dictionary from the healthchecks api into an Integration object."""
|
||||
return cls(**integration_dict)
|
||||
|
||||
Reference in New Issue
Block a user