polishing docs: error fixes for clarity (#39042)
* fix duplicate deprecate_models.py * fix duplicate modular_model_converter.py
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user