Skip to content

Commit 3339dc6

Browse files
rasmiLIT team
authored andcommitted
Disable pytype ImportError for keras.
PiperOrigin-RevId: 749111685
1 parent 6d24e2a commit 3339dc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lit_nlp/examples/prompt_debugging/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def _initialize_modeling_environment(
3030

3131
# NOTE: Imported here and not at the top of the file to avoid
3232
# initialization issues with the environment variables above.
33-
import keras # pylint: disable=g-import-not-at-top
33+
import keras # pylint: disable=g-import-not-at-top # pytype: disable=import-error
3434

3535
keras.config.set_floatx(precision)
3636
elif dl_runtime == "torch":

0 commit comments

Comments
 (0)