polishing docs: error fixes for clarity (#39042)

* fix duplicate deprecate_models.py

* fix duplicate modular_model_converter.py
This commit is contained in:
emmmm
2025-06-26 07:56:31 -04:00
committed by GitHub
parent 3abeaba7e5
commit ae15715df1
2 changed files with 2 additions and 2 deletions

View File

@@ -1490,7 +1490,7 @@ class ModularFileMapper(ModuleMapper):
suffix = common_partial_suffix(class_name, modeling_bases[0])
if len(suffix) > 0 and suffix[0].isupper():
cased_model_name = class_name.replace(suffix, "")
# If both the old model and new model share the last part of their name, is is detected as a common
# If both the old model and new model share the last part of their name, is detected as a common
# suffix, but it should not be the case -> use the full name in this case
if len(cased_model_name) < len(cased_default_name) and cased_default_name in class_name:
cased_model_name = cased_default_name