Some Names in the 'torch' global scope don't work with pylint

Say you have the following file.

import torch

and run it through pylint

> pylint

You get

************* Module testpylint C0111: Missing module docstring (missing-docstring) W0104: Statement seems to have no effect (pointless-statement) 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 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.