-
Notifications
You must be signed in to change notification settings - Fork 28.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mypy errors since v4.51.0 #37339
Comments
Try
|
@cyyever this does indeed fix the issue, thanks! However, doing |
We should add |
@jc-louis I submitted a PR for this issue. Can you install it and check? |
@cyyever I confirm it does fix the issue 👍 |
Does someone know if mypy lets you ignore errors related to a specific python object ? Like when I get those errors:
I would simply like to ignore the errors "attr-defined", "operator" related to "PreTrainedModel" |
@cyyever this is a direct result of #37022 which marked the library as typed.
Using
mypy test.py
, I get the following errors:Theses errors are false positives, it seems like there is a config issue, all types are pulled from dummy_pt_objects.py
transformers
version: 4.51.0The text was updated successfully, but these errors were encountered: