Skip to content

[python SDK] SDK doesn't seem to work with python3.8 #139

@mohamedadel104

Description

@mohamedadel104

docs state that it supports python3.8+

however, when using python3.8 import fails with: TypeError: 'type' object is not subscriptable

after an Ai discussion, basically the issue seems to be coming from

File: copilot-sdk/python/copilot/client.py
Line 137: def _parse_cli_url(self, url: str) -> tuple[str, int]:
Error: TypeError: 'type' object is not subscriptable

File: copilot-sdk/python/copilot/types.py
Line 89: parameters: Dict[str, Any] | None = None
Line 188: tools: NotRequired[List[str] | None]
Line 204: available_tools: list[str]
Line 206: excluded_tools: list[str]

after fixing those here to use 3.8+ compliant version, the issue seems to be fixed. source code needs accordingly

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions