Skip to content

Commit

Permalink
fix: python3.8 compatibility issue (replace typing into typing_extens…
Browse files Browse the repository at this point in the history
…ions now)
  • Loading branch information
luochen1990 committed Aug 1, 2024
1 parent bd380f3 commit e8a7fe9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/ai_powered/decorators.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from functools import wraps
from typing import Any, Callable, Generic, ParamSpec, TypeVar
from typing_extensions import Any, Callable, Generic, ParamSpec, TypeVar
import json
import msgspec

Expand Down
2 changes: 1 addition & 1 deletion src/ai_powered/llm_adapter/generic_adapter.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from dataclasses import dataclass
import re
from typing import Any, Callable, Set
from typing_extensions import Any, Callable, Set
from ai_powered.colors import green, yellow
from ai_powered.constants import DEBUG
from .definitions import FunctionSimulator, ModelFeature
Expand Down
2 changes: 1 addition & 1 deletion src/ai_powered/llm_adapter/known_models.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from copy import deepcopy
from dataclasses import dataclass, field
from typing import Any, Callable, Optional, Set, TypeAlias
from typing_extensions import Any, Callable, Optional, Set, TypeAlias

from ai_powered.llm_adapter.definitions import ALL_FEATURES, ModelFeature

Expand Down
2 changes: 1 addition & 1 deletion src/ai_powered/schema_deref.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

from typing import Any
from typing_extensions import Any

def deref(schema: dict[str, Any]) -> dict[str, Any]:
'''
Expand Down
2 changes: 1 addition & 1 deletion test/examples/ai_powered_decorator/gen_json_data.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Any
from typing_extensions import Any
from ai_powered import ai_powered

@ai_powered
Expand Down

0 comments on commit e8a7fe9

Please sign in to comment.