Say you have the following file.
# test.py
import torch
torch.float32
and run it through pylint
> pylint test.py
You get
************* Module testpylint
testpylint.py:1:0: C0111: Missing module docstring (missing-docstring)
testpylint.py:3:0: W0104: Statement seems to have no effect (pointless-statement)
testpylint.py:3:0: E1101: Module 'torch' has no 'float32' member (no-member)
-----------------------------------------------------------------------
Your code has been rated at -25.00/10 (previous run: -15.00/10, -10.00)
See the last line E1101. I’m guessing that these names aren’t defined explicitly in __init__.py but are imported with 'from module import * ’
I didn’t know if I should have raised an issue on GitHub for this, since it’s a pretty minor thing but still slightly annoying.