Applies the rest of the init refactor except to modular files (#35238)

* [test_all] Applies the rest of the init refactor except to modular files

* Revert modular that doesn't work

* [test_all] TFGPT2Tokenizer
This commit is contained in:
Lysandre Debut
2025-01-05 18:30:08 +01:00
committed by GitHub
parent e5fd865eba
commit b2f2977533
999 changed files with 5236 additions and 13244 deletions

View File

@@ -1107,7 +1107,7 @@ def check_public_method_exists(documented_methods_map):
try:
obj_class = getattr(submodule, class_name)
except AttributeError:
failures.append(f"Could not parse {submodule_name}. Are the required dependencies installed?")
failures.append(f"Could not parse {class_name}. Are the required dependencies installed?")
continue
# Checks that all explicitly documented methods are defined in the class