PyAPI: add type of bpy.types.NodeSocket.links

Ref !128626
This commit is contained in:
nutti
2024-10-09 17:39:34 +11:00
committed by Campbell Barton
parent 933fb1978f
commit e7747c0d93

View File

@@ -1276,6 +1276,8 @@ class NodeSocket(_StructRNA, metaclass=_RNAMetaPropGroup):
"""
List of node links from or to this socket.
:type: :class:`NodeLinks`
.. note:: Takes ``O(len(nodetree.links))`` time."""
links = (link for link in self.id_data.links
if self in (link.from_socket, link.to_socket))