From e7747c0d93b171e4f1fef1beed147e70f6ba8d8b Mon Sep 17 00:00:00 2001 From: nutti Date: Wed, 9 Oct 2024 17:39:34 +1100 Subject: [PATCH] PyAPI: add type of bpy.types.NodeSocket.links Ref !128626 --- scripts/modules/bpy_types.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/modules/bpy_types.py b/scripts/modules/bpy_types.py index 42a746970e1..f859ee68f56 100644 --- a/scripts/modules/bpy_types.py +++ b/scripts/modules/bpy_types.py @@ -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))