Skip to content

[Bug Fix]: ImportError: cannot import name 'T' from 're' - #7314

Merged
ishaan-jaff merged 16 commits into
mainfrom
litellm_fix_python_latest_import
Dec 19, 2024
Merged

ishaan-jaff merged 16 commits into
mainfrom
litellm_fix_python_latest_import

Conversation

@ishaan-jaff

@ishaan-jaff ishaan-jaff commented Dec 19, 2024 •

Copy link
Copy Markdown
Contributor

[Bug Fix]: ImportError: cannot import name 'T' from 're'

  • Adds test to ensure python 3.13 compatibility
  • Fixes to requirements.txt to ensure python 3.13

Relevant issues

Type

🐛 Bug Fix
✅ Test

Changes

[REQUIRED] Testing - Attach a screenshot of any new tests passing locall

If UI changes, send a screenshot/GIF of working UI fixes

@vercel

vercel Bot commented Dec 19, 2024 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
litellm ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 19, 2024 8:35pm

@ishaan-jaff ishaan-jaff linked an issue Dec 19, 2024 that may be closed by this pull request
@ishaan-jaff ishaan-jaff linked an issue Dec 19, 2024 that may be closed by this pull request
@ishaan-jaff
ishaan-jaff merged commit a790d43 into main Dec 19, 2024
@ishaan-berri
ishaan-berri deleted the litellm_fix_python_latest_import branch March 26, 2026 21:53
fzowl pushed a commit to fzowl/litellm that referenced this pull request Jun 24, 2026
* fix unused imports

* add test for python 3.12

* re introduce error - as a test

* update config for ci/cd

* fix python 13 install

* bump pyyaml

* bump numpy

* fix embedding requests

* bump pillow dep

* bump version

* bump pydantic

* bump tiktoken

* fix import

* fix python 3.13 import

* fix unused imports in tests/*

This branch was successfully deployed

1 active deployment
Preview — 359b28eb Deployed Dec 19, 2024 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: ImportError: cannot import name 'T' from 're' [Bug]: Error on Python 3.13 due to "re.T"

1 participant