[X] Have you checked to see if your issue still exists on the master branch? See the docs for instructions on how to setup a local build of Refurb.
[X] Have you looked at the open/closed issues to see if anyone has already reported your issue?
[X] If reporting a false positive/incorrect suggestion, have you double checked that the suggested fix changes the code semantics?
The Bug
The following Python code with litellm==1.40.12 will run fine with mypy==1.11.0, but is a crash with refurb:
import litellm
Here is the internal mypy crash:
/path/to/venv/lib/python3.12/site-packages/litellm/types/llms/vertex_ai.py: error: INTERNAL ERROR -- Please try using mypy master on GitHub:
https://mypy.readthedocs.io/en/stable/common_issues.html#using-a-development-mypy-build
If this issue continues with mypy master, please report a bug at https://github.com/python/mypy/issues
version: 1.11.0
/path/to/venv/lib/python3.12/site-packages/litellm/types/llms/vertex_ai.py: : note: please use --show-traceback to print a traceback when reporting a bug
Note that only mypy==1.11.0 has this issue, older versions of mypy do not.
Has your issue already been fixed?
master
branch? See the docs for instructions on how to setup a local build of Refurb.The Bug
The following Python code with
litellm==1.40.12
will run fine withmypy==1.11.0
, but is a crash withrefurb
:Here is the internal
mypy
crash:Note that only
mypy==1.11.0
has this issue, older versions ofmypy
do not.Version Info
Python Version
Python 3.12.4
Config File
Extra Info
None