You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, an object with either lineno or endlineno being None will return the whole module lines as source. This only makes sense for modules (modules don't have "line numbers", so their lineno and endlineno attributes are None). For classes, functions and attributes, it really feels wrong to return the whole module's code. Instead, we should return an empty list.
Currently, an object with either
lineno
orendlineno
beingNone
will return the whole module lines as source. This only makes sense for modules (modules don't have "line numbers", so theirlineno
andendlineno
attributes areNone
). For classes, functions and attributes, it really feels wrong to return the whole module's code. Instead, we should return an empty list.So instead of this:
...we should do this:
This would have at least prevented mkdocstrings/python#163.
The text was updated successfully, but these errors were encountered: