Skip to content

Commit d4c0dad

Browse files
committed
API docs are wrong
1 parent 406f15d commit d4c0dad

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

mystbin/types/responses.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@
2323
from __future__ import annotations
2424

2525
from datetime import datetime
26-
from typing import List, Optional, TypedDict
26+
from typing import TYPE_CHECKING, List, Optional, TypedDict
27+
28+
29+
if TYPE_CHECKING:
30+
from typing_extensions import NotRequired
2731

2832

2933
__all__ = (
@@ -45,7 +49,7 @@ class PasteResponse(TypedDict):
4549
author_id: Optional[int]
4650
created_at: str
4751
expires: Optional[str]
48-
last_edited: Optional[str]
52+
last_edited: NotRequired[str]
4953
files: List[FileResponse]
5054
notice: Optional[str]
5155

0 commit comments

Comments
 (0)