naming Functions

This commit is contained in:
Steffen Illium
2023-10-30 10:08:40 +01:00
parent 115a79e930
commit fbbf8d6f6e
3 changed files with 27 additions and 4 deletions

View File

@ -232,3 +232,15 @@ def locate_and_import_class(class_name, folder_path: Union[str, PurePath] = ''):
except AttributeError:
continue
raise AttributeError(f'Class "{class_name}" was not found in "{folder_path.name}"', list(set(all_found_modules)))
def add_bound_name(name_str, bound_e):
return f'{name_str}({bound_e.identifier})'
def add_pos_name(name_str, bound_e):
if bound_e.var_has_pos:
return f'{name_str}({bound_e.pos})'
return name_str