Open PerchunPak opened 2 years ago
I found that error happens here. There is no parse_if
method so it is just ignoring if
block.
node.test.bool_value()
returning result of the statement (see docs).
So, you need to write method parse_if
, but what the logic should implement this method? There is two variants:
if
statements.if not node.test.bool_value() or node.test.bool_value() is "Uninferable":
ignore block. And if not, redef all what in statement.Before creating PR, I need to solve two problems: what I should return and how redef something. Would be nice if someone give some tip.
I make it work! In some time will make PR.
Especially it is raised when trying generate docs for
conf.py
in RTD, because RTD modifyconf.py
.Sample build from my prod.