Open Muream opened 1 year ago
A good example of this issue is listConnections which is currently stubbed as follows:
listConnections
def listConnections(*args: str, [...]) -> List[str]:
Instead of this:
def listConnections(*args: str, [...]) -> Optional[List[str]]:
Which leads to people writing this
connections = cmds.listConnections("myNode.myAttr") for connection in connections: # should warn that `"None" is not iterable` ...
connections = cmds.listConnections("myNode.myAttr") or [] for connection in connections: ...
Neither the docs or the synopsis have that information though so this might need stub In which case, this depends on #12
A good example of this issue is
listConnections
which is currently stubbed as follows:Instead of this:
Which leads to people writing this
Instead of this:
Neither the docs or the synopsis have that information though so this might need stub In which case, this depends on #12