From d48cb8b4874b11a295ddb277a4e854890394ec91 Mon Sep 17 00:00:00 2001 From: Chris Lovering Date: Fri, 14 Jul 2023 22:26:54 +0100 Subject: Add type hints to paste_service pydantic models --- pydis_core/utils/paste_service.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'pydis_core/utils') diff --git a/pydis_core/utils/paste_service.py b/pydis_core/utils/paste_service.py index 8a25aab9..452b1434 100644 --- a/pydis_core/utils/paste_service.py +++ b/pydis_core/utils/paste_service.py @@ -21,8 +21,8 @@ class PasteResponse(BaseModel): A successful response from the paste service. Args: - link: The URL to the saved paste. - removal: The URL to delete the saved paste. + link (:obj:`str`): The URL to the saved paste. + removal (:obj:`str`): The URL to delete the saved paste. """ link: str @@ -34,9 +34,9 @@ class PasteFile(BaseModel): A file to be pasted to the paste service. Args: - content: The content of the file. - name: The file name of the file to upload. - lexer: The lexer to use when applying text formatting. + content (:obj:`str`): The content of the file. + name (:obj:`str`): The file name of the file to upload. Defaults to ``""`` + lexer (:obj:`str`): The lexer to use when applying text formatting. Defaults to ``"python"`` """ content: str -- cgit v1.2.3