Flag similar to @DynamicAttrs but for imported modules
Brought to you by:
fabioz
if a module has dynamic functions then it would be useful to be able to use a flag similar to @DynamicAttrs after its import on another module. Example (maya.cmds has dynamically generated functions not available during code analysis):
import maya.cmds as cmds @DynamicMembers
# This will not throw an "Undefined Variable" error:
sphere = cmds.sphere()
Alternatively (probably an even better solution): to add a blacklist of modules to the code analysis configuration. In the example I used maya.cmds would be added to the blacklist and there would be no code analysis operated on any reference to this module....