Skip to content

Commit

Permalink
fix bettr
Browse files Browse the repository at this point in the history
  • Loading branch information
augray committed Sep 1, 2024
1 parent 41feffd commit 07e12f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/airtrain/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
# This will make Unpack[CreationArgs] into
# Optional[Any] for lower versions, which should
# pass checks.
Unpack = Optional
CreationArgs = Any

if sys.version_info > (3, 11):
from typing import TypedDict, Unpack

class CreationArgs(TypedDict):
name: Optional[str]
embedding_column: Optional[str]
else:
from typing import Optional as Unpack # noqa
from typing import Any as CreationArgs # noqa


logger = logging.getLogger(__name__)
Expand Down

0 comments on commit 07e12f9

Please sign in to comment.