aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2023-07-14 22:26:54 +0100
committerGravatar Chris Lovering <[email protected]>2023-07-14 22:26:54 +0100
commitd48cb8b4874b11a295ddb277a4e854890394ec91 (patch)
treee2885a88e5afb87728c5b5927745440bee693ab1
parentDon't swallow exceptions in post_build (diff)
Add type hints to paste_service pydantic models
-rw-r--r--pydis_core/utils/paste_service.py10
1 files changed, 5 insertions, 5 deletions
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