Update trailmap.py (#4301)

This commit is contained in:
teh_coderer
2023-02-20 09:54:18 -06:00
committed by GitHub
parent 8dff6b1f20
commit 02b7f4403a

View File

@@ -115,7 +115,7 @@ class FuncAttr:
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 })"