diff --git a/openbb_terminal/sdk_core/trailmap.py b/openbb_terminal/sdk_core/trailmap.py index 364c9daa462f..1fc0724d2f8c 100644 --- a/openbb_terminal/sdk_core/trailmap.py +++ b/openbb_terminal/sdk_core/trailmap.py @@ -115,7 +115,7 @@ def get_definition( trail = ".".join([t for t in location_path if t != ""]) sdk_name = class_attr if not view else f"{class_attr}_chart" - trail = trail.lstrip("root.") # pylint: disable=E1310 + trail = trail.replace("root.", "") sdk_path = f"{f'openbb.{trail}' if trail else 'openbb'}.{sdk_name}" return f"{sdk_path}({definition })"