-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Crash when typechecking transformers 4.10.0 #11045
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
Labels
Comments
This may be related to #7045. logs["learning_rate"] = self._get_learning_rate() calls class Trainer:
from .trainer_pt_utils import _get_learning_rate, log_metrics, metrics_format, save_metrics, save_state |
Is there a way to configure mypy so that it will not follow imports into the |
@matthen, yes, there is. Please see huggingface/transformers#13390 (comment). |
hauntsaninja
pushed a commit
to hauntsaninja/mypy
that referenced
this issue
Jan 20, 2022
Fixes python#11045, fixes huggingface/transformers#13390 Fixes python#10488 Fixes python#7045 Fixes python#7806 Fixes python#11641 Fixes python#11351 Fixes python#10488 Co-authored-by: @A5rocks
JelleZijlstra
pushed a commit
that referenced
this issue
Feb 17, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Crash Report
I am typechecking a codebase which imports
transformers
4.10.0 and hitting a mypy internal error. Also reported in the transformers repo as huggingface/transformers#13390Traceback
This traceback is generated using the current mypy master (
pip install git+https://github.com/python/mypy
).To Reproduce
I can reproduce this locally in the following way:
v4.10.0
tagmypy.ini
file:mypy src/transformers/trainer.py
I'm afraid I tried to reduce to a minimal repro with no success.
Your Environment
--show-traceback
mypy.ini
(and other config files): See repo above (justcheck_untyped_defs=True
)The text was updated successfully, but these errors were encountered: