mirror of
https://github.com/flibusta-apps/library_updater.git
synced 2025-12-06 15:45:36 +01:00
Add linters configs
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
from typing import Optional, Union, Literal
|
||||
|
||||
from pydantic import BaseModel, BaseSettings
|
||||
|
||||
|
||||
class WebhookConfig(BaseModel):
|
||||
method: Union[Literal['get'], Literal['post']]
|
||||
method: Union[Literal["get"], Literal["post"]]
|
||||
url: str
|
||||
headers: dict[str, str]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user