Open bersbersbers opened 6 years ago
Thanks for the report! I presume tensorflow does some metaprogramming that pylint doesn't yet comprehend. This would be a perfect candidate for an astroid brain tip, which is the usual solution whenever we encounter a library that uses metaprogramming concepts that pylint is not capable of understanding.
This is slightly different than #2021: it raises the same error, but this time, the type of the variable appears to be correct. I myself wonder how this code runs without error, but it does. (This is where I got it from: https://github.com/keras-team/keras/issues/6692#issuecomment-372458636)
Steps to reproduce
Current behavior
Error E1101
Expected behavior
No error
pylint --version output
No config file found, using default configuration pylint 1.8.4, astroid 1.6.3 Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 17:00:18) [MSC v.1900 64 bit (AMD64)]
Tensorflow package used is tensorflow-gpu (1.8.0rc0)