my docstring:
def some_f():
"""
1. First story
>>> str(5)
if you want to see the value:
>>> print(str(5))
2. Another story
bla bla
"""
When using doctest, I'm getting:
ValueError: line 6 of the docstring for File.Class.some_f has inconsistent leading whitespace: '2. Another story'
I've read (here and here) that this problem may occur when one use \n
or other special character in the docstring, but it's not the case here. No idea why this is happenning and how to fix that. In fact it expects me to move the second point to the right, since this is working properly:
def some_f():
"""
1. First story
>>> str(5)
if you want to see the value:
>>> print(str(5))
2. Another story
bla bla
"""
But it's not what I want.