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
Thanks for submitting an issue! The problem was caused by typed_ast which we use to parse the source code for retrieving type comments. Unfortunately whenever it finds an invalid type comment, it fails with a SyntaxError. In your example it was treating the # type: comments as type comments.
Steps to reproduce
tensorflow_core/python/ops/gen_resource_variable_ops.py
Alternatively the code that triggers this:
Current behavior
Exception thrown (SyntaxError)
Expected behavior
Exception/Error ignored (as there is none)
python -c "from astroid import __pkginfo__; print(__pkginfo__.version)"
output2.3.1
Note that this happens when parsing tensorflow e.g. for pylint, so this is a real use case, although with presumptly generated code.
The text was updated successfully, but these errors were encountered: