message: Use generated-members machanism in pylint.ini instead of ignoring NumPy
diff: -[MASTER]
  -
  -# A comma-separated list of package or module names from where C extensions may
  -# be loaded. Extensions are loading into the active Python interpreter and may
  -# run arbitrary code
  -# See also: https://stackoverflow.com/questions/20553551/how-do-i-get-pylint-to-recognize-numpy-members
  -extension-pkg-whitelist=numpy
  -
  [MESSAGES CONTROL]
  # C0103: Invalid constant name (invalid-name)
  @@ -17,14 +9,8 @@ extension-pkg-whitelist=numpy
  disable=C0103,C0111,C0330,C0412,E0401,W0511,R0903,R0801
  [TYPECHECK]
  -
  -# List of module names for which member attributes should not be checked
  -# (useful for modules/projects where namespaces are manipulated during runtime
  -# and thus existing member attributes cannot be deduced by static analysis. It
  -# supports qualified module names, as well as Unix pattern matching.
  -ignored-modules=numpy
  -
  -# List of classes names for which member attributes should not be checked
  -# (useful for classes with attributes dynamically set). This supports can work
  -# with qualified names.
  -ignored-classes=numpy
  +# List of members which are set dynamically and missed by pylint inference
  +# system, and so shouldn't trigger E1101 when accessed. Python regular
  +# expressions are accepted.
  +# See: https://github.com/pytorch/pytorch/issues/701#issuecomment-378048755
  +generated-members=numpy.*,torch.*
  