Open
Description
Steps to reproduce
astroid.node_classes.Keyword
does not seem to have a populated lineno
. Its repr
does show a line number though. Is this a bug?
#!/usr/bin/env python3
import astroid
ast = astroid.parse('foo(keyword="bar")')
expr = ast.body[0]
call = next(expr.get_children())
name, keyword = tuple(call.get_children())
print(repr(keyword), 'lineno is', keyword.lineno)
Current behavior
<Keyword l.1 at 0x10fb71898> lineno is None
Expected behavior
<Keyword l.1 at 0x10fb71898> lineno is 1
python -c "from astroid import __pkginfo__; print(__pkginfo__.version)"
output
2.0.4 (on Python 3.7.0)