Skip to content

Commit

Permalink
Fix the "Hello Astroid" example in index.rst (pylint-dev#662)
Browse files Browse the repository at this point in the history
  • Loading branch information
zapstar authored and PCManticore committed Apr 9, 2019
1 parent 6313b5a commit 4c60efc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@ Python constructs, as seen in the following example::
def func(first, second):
return first + second

func(first, second)
arg_1 = 2
arg_2 = 3
func(arg_1, arg_2)
''')
>>> module.body[-1]
<Expr l.3 at 0x10ab46f28>
>>> inferred = next(a.body[-1].value.infer())
>>> inferred = next(module.body[-1].value.infer())
>>> inferred
<Const.int l.None at 0x10ab00588>
>>> inferred.value
Expand Down

0 comments on commit 4c60efc

Please sign in to comment.