Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch for Python 3.8.10 #52

Merged
merged 1 commit into from
Dec 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion copilot/context.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from dataclasses import dataclass
from typing import List

from copilot.conversation import Model
from copilot.parse_os import OperatingSystem
Expand All @@ -9,7 +10,7 @@ class Context:
shell: str
operating_system: OperatingSystem
directory: str
directory_list: list[str]
directory_list: List[str]
history: str
command: str
git: str
Expand Down
3 changes: 2 additions & 1 deletion copilot/conversation.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import argparse
from dataclasses import dataclass
from enum import Enum
from typing import List, Dict


class Model(Enum):
Expand All @@ -18,5 +19,5 @@ def argparse_model_type(model_str):

@dataclass
class Conversation:
messages: list[dict]
messages: List[Dict]
model: Model