Skip to content

Commit f832c34

Browse files
author
yunjinqi
committed
fix: add __name__ attributes to PlotLineObj for Sphinx compatibility
1 parent 1307cac commit f832c34

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

backtrader/lineiterator.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,10 @@ class PlotLineObj:
582582
have explicit configuration.
583583
"""
584584

585+
__name__ = 'PlotLineObj'
586+
__qualname__ = 'PlotLinesObj.PlotLineObj'
587+
__module__ = 'backtrader.lineiterator'
588+
585589
def _get(self, key, default=None):
586590
"""Get plotline attribute value.
587591

backtrader/lineseries.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1177,6 +1177,10 @@ class PlotLineObj:
11771177
have explicit configuration.
11781178
"""
11791179

1180+
__name__ = 'PlotLineObj'
1181+
__qualname__ = 'PlotLinesObj.PlotLineObj'
1182+
__module__ = 'backtrader.lineseries'
1183+
11801184
def _get(self, key, default=None):
11811185
"""Get plotline attribute value.
11821186

0 commit comments

Comments
 (0)