ranaroussi / quantstats

if statements can be merged PTC-W0048
Anti-pattern
Major
3 occurrences in this check
Consider merging collapsible if statements
 689            color="gray",
 690        )
 691
 692    if hline is not None: 693        if not isinstance(hline, _pd.Series):
 694            if grayscale:
 695                hlcolor = "black"
Consider merging collapsible if statements
 347    # use a more precise date string for the x axis locations in the toolbar
 348    # ax.fmt_xdata = _mdates.DateFormatter('%Y-%m-%d')
 349
 350    if hline is not None: 351        if not isinstance(hline, _pd.Series):
 352            if grayscale:
 353                hlcolor = "black"
Consider merging collapsible if statements
 188    # rotate and align the tick labels so they look better
 189    fig.autofmt_xdate()
 190
 191    if hline is not None: 192        if not isinstance(hline, _pd.Series):
 193            if grayscale:
 194                hlcolor = "gray"