Skip to content

Commit d48cb8b

Browse files
committed
Add type hints to paste_service pydantic models
1 parent e76052f commit d48cb8b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pydis_core/utils/paste_service.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ class PasteResponse(BaseModel):
2121
A successful response from the paste service.
2222
2323
Args:
24-
link: The URL to the saved paste.
25-
removal: The URL to delete the saved paste.
24+
link (:obj:`str`): The URL to the saved paste.
25+
removal (:obj:`str`): The URL to delete the saved paste.
2626
"""
2727

2828
link: str
@@ -34,9 +34,9 @@ class PasteFile(BaseModel):
3434
A file to be pasted to the paste service.
3535
3636
Args:
37-
content: The content of the file.
38-
name: The file name of the file to upload.
39-
lexer: The lexer to use when applying text formatting.
37+
content (:obj:`str`): The content of the file.
38+
name (:obj:`str`): The file name of the file to upload. Defaults to ``""``
39+
lexer (:obj:`str`): The lexer to use when applying text formatting. Defaults to ``"python"``
4040
"""
4141

4242
content: str

0 commit comments

Comments
 (0)