We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36583b0 commit 04521e8Copy full SHA for 04521e8
1 file changed
python/copilot/types.py
@@ -40,20 +40,23 @@ class Selection(TypedDict):
40
# Attachment types - discriminated union based on 'type' field
41
class FileAttachment(TypedDict):
42
"""File attachment."""
43
+
44
type: Literal["file"]
45
path: str
46
displayName: NotRequired[str]
47
48
49
class DirectoryAttachment(TypedDict):
50
"""Directory attachment."""
51
52
type: Literal["directory"]
53
54
55
56
57
class SelectionAttachment(TypedDict):
58
"""Selection attachment with text from a file."""
59
60
type: Literal["selection"]
61
filePath: str
62
displayName: str
0 commit comments