Skip to content

Commit

Permalink
fix compat problem with py3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
ZingLix authored and danielhjz committed Nov 9, 2023
1 parent f75a2c0 commit 5e92340
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Empty file added src/qianfan/py.typed
Empty file.
8 changes: 7 additions & 1 deletion src/qianfan/resources/tools/tokenizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,14 @@
Tokenizer
"""

import sys
import unicodedata
from typing import Any, Literal
from typing import Any

if sys.version_info < (3, 8):
from typing_extensions import Literal # noqa: F401
else:
from typing import Literal # noqa: F401

from qianfan import get_config
from qianfan.consts import Consts
Expand Down

0 comments on commit 5e92340

Please sign in to comment.