Skip to content

Commit

Permalink
import typealias correctly for python 3.8+ from typing_extensions
Browse files Browse the repository at this point in the history
Fixes #1448
  • Loading branch information
hellovai committed Feb 13, 2025
1 parent 1d481f1 commit d03bb6a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
import baml_py
from enum import Enum
from pydantic import BaseModel, ConfigDict
from typing import Dict, Generic, List, Literal, Optional, TypeVar, Union, TypeAlias
from typing_extensions import TypeAlias
from typing import Dict, Generic, List, Literal, Optional, TypeVar, Union


T = TypeVar('T')
Expand Down
3 changes: 2 additions & 1 deletion integ-tests/python/baml_client/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
import baml_py
from enum import Enum
from pydantic import BaseModel, ConfigDict
from typing import Dict, Generic, List, Literal, Optional, TypeVar, Union, TypeAlias
from typing_extensions import TypeAlias
from typing import Dict, Generic, List, Literal, Optional, TypeVar, Union


T = TypeVar('T')
Expand Down

0 comments on commit d03bb6a

Please sign in to comment.