blender-python-stubs 5.1.0.0__tar.gz → 5.1.0.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/PKG-INFO +3 -2
  2. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/README.md +2 -1
  3. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/bmesh/types/__init__.pyi +154 -127
  4. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/bpy/__init__.pyi +1 -0
  5. blender_python_stubs-5.1.0.1/bpy/msgbus/__init__.pyi +30 -0
  6. blender_python_stubs-5.1.0.1/bpy/ops/__init__.pyi +81726 -0
  7. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/bpy/types/__init__.pyi +1100 -956
  8. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/bpy_extras/anim_utils/__init__.pyi +2 -0
  9. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/freestyle/types/__init__.pyi +9 -4
  10. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/gpu/types/__init__.pyi +23 -8
  11. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/idprop/types/__init__.pyi +13 -0
  12. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/mathutils/__init__.pyi +103 -81
  13. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/pyproject.toml +1 -1
  14. blender_python_stubs-5.1.0.0/bpy/ops/__init__.pyi +0 -195
  15. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/.gitignore +0 -0
  16. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/.python-version +0 -0
  17. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/LICENSE +0 -0
  18. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/aud/__init__.pyi +0 -0
  19. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/aud/py.typed +0 -0
  20. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/bl_math/__init__.pyi +0 -0
  21. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/bl_math/py.typed +0 -0
  22. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/blf/__init__.pyi +0 -0
  23. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/blf/py.typed +0 -0
  24. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/bmesh/__init__.pyi +0 -0
  25. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/bmesh/geometry/__init__.pyi +0 -0
  26. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/bmesh/ops/__init__.pyi +0 -0
  27. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/bmesh/py.typed +0 -0
  28. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/bmesh/utils/__init__.pyi +0 -0
  29. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/bpy/app/__init__.pyi +0 -0
  30. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/bpy/path/__init__.pyi +0 -0
  31. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/bpy/props/__init__.pyi +0 -0
  32. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/bpy/py.typed +0 -0
  33. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/bpy/utils/__init__.pyi +0 -0
  34. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/bpy/utils/previews/__init__.pyi +0 -0
  35. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/bpy/utils/toolsystem/__init__.pyi +0 -0
  36. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/bpy_extras/__init__.pyi +0 -0
  37. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/bpy_extras/asset_utils/__init__.pyi +0 -0
  38. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/bpy_extras/bmesh_utils/__init__.pyi +0 -0
  39. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/bpy_extras/id_map_utils/__init__.pyi +0 -0
  40. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/bpy_extras/image_utils/__init__.pyi +0 -0
  41. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/bpy_extras/io_utils/__init__.pyi +0 -0
  42. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/bpy_extras/keyconfig_utils/__init__.pyi +0 -0
  43. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/bpy_extras/mesh_utils/__init__.pyi +0 -0
  44. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/bpy_extras/node_shader_utils/__init__.pyi +0 -0
  45. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/bpy_extras/node_utils/__init__.pyi +0 -0
  46. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/bpy_extras/object_utils/__init__.pyi +0 -0
  47. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/bpy_extras/py.typed +0 -0
  48. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/bpy_extras/view3d_utils/__init__.pyi +0 -0
  49. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/freestyle/__init__.pyi +0 -0
  50. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/freestyle/chainingiterators/__init__.pyi +0 -0
  51. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/freestyle/functions/__init__.pyi +0 -0
  52. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/freestyle/predicates/__init__.pyi +0 -0
  53. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/freestyle/py.typed +0 -0
  54. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/freestyle/shaders/__init__.pyi +0 -0
  55. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/freestyle/utils/__init__.pyi +0 -0
  56. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/gpu/__init__.pyi +0 -0
  57. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/gpu/capabilities/__init__.pyi +0 -0
  58. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/gpu/compute/__init__.pyi +0 -0
  59. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/gpu/matrix/__init__.pyi +0 -0
  60. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/gpu/platform/__init__.pyi +0 -0
  61. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/gpu/py.typed +0 -0
  62. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/gpu/select/__init__.pyi +0 -0
  63. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/gpu/shader/__init__.pyi +0 -0
  64. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/gpu/state/__init__.pyi +0 -0
  65. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/gpu/texture/__init__.pyi +0 -0
  66. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/gpu_extras/__init__.pyi +0 -0
  67. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/gpu_extras/batch/__init__.pyi +0 -0
  68. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/gpu_extras/presets/__init__.pyi +0 -0
  69. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/gpu_extras/py.typed +0 -0
  70. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/idprop/__init__.pyi +0 -0
  71. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/idprop/py.typed +0 -0
  72. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/imbuf/__init__.pyi +0 -0
  73. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/imbuf/py.typed +0 -0
  74. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/imbuf/types/__init__.pyi +0 -0
  75. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/mathutils/bvhtree/__init__.pyi +0 -0
  76. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/mathutils/geometry/__init__.pyi +0 -0
  77. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/mathutils/interpolate/__init__.pyi +0 -0
  78. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/mathutils/kdtree/__init__.pyi +0 -0
  79. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/mathutils/noise/__init__.pyi +0 -0
  80. {blender_python_stubs-5.1.0.0 → blender_python_stubs-5.1.0.1}/mathutils/py.typed +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: blender-python-stubs
3
- Version: 5.1.0.0
3
+ Version: 5.1.0.1
4
4
  Summary: Type stubs for Blender 5.1 Python API
5
5
  Project-URL: Homepage, https://git.autourdeminuit.com/autour_de_minuit/blender-python-stubs
6
6
  Project-URL: Issues, https://git.autourdeminuit.com/autour_de_minuit/blender-python-stubs/issues
@@ -47,7 +47,8 @@ pip install "blender-python-stubs>=5.1,<5.2"
47
47
  ```python
48
48
  import bpy
49
49
 
50
- obj: bpy.types.Object = bpy.context.active_object
50
+ obj = bpy.context.active_object
51
+ assert obj is not None
51
52
  obj.location.x = 1.0
52
53
 
53
54
  bpy.data.objects.new("Cube", bpy.data.meshes.new("Mesh"))
@@ -26,7 +26,8 @@ pip install "blender-python-stubs>=5.1,<5.2"
26
26
  ```python
27
27
  import bpy
28
28
 
29
- obj: bpy.types.Object = bpy.context.active_object
29
+ obj = bpy.context.active_object
30
+ assert obj is not None
30
31
  obj.location.x = 1.0
31
32
 
32
33
  bpy.data.objects.new("Cube", bpy.data.meshes.new("Mesh"))
@@ -84,46 +84,51 @@ class BMEdge:
84
84
 
85
85
  To ensure the value is up to date - see :meth:`BMElemSeq.index_update`."""
86
86
 
87
- is_boundary: bool
88
- """True when this edge is at the boundary of a face (read-only).
87
+ @property
88
+ def is_boundary(self) -> bool:
89
+ """True when this edge is at the boundary of a face (read-only).
89
90
 
90
- :type: bool"""
91
-
92
- is_contiguous: bool
93
- """True when this edge is manifold, between two faces with the same winding (read-only).
91
+ :type: bool"""
94
92
 
95
- :type: bool"""
93
+ @property
94
+ def is_contiguous(self) -> bool:
95
+ """True when this edge is manifold, between two faces with the same winding (read-only).
96
96
 
97
- is_convex: bool
98
- """True when this edge joins two convex faces, depends on a valid face normal (read-only).
97
+ :type: bool"""
99
98
 
100
- :type: bool"""
99
+ @property
100
+ def is_convex(self) -> bool:
101
+ """True when this edge joins two convex faces, depends on a valid face normal (read-only).
101
102
 
102
- is_manifold: bool
103
- """True when this edge is manifold (read-only).
103
+ :type: bool"""
104
104
 
105
- :type: bool"""
105
+ @property
106
+ def is_manifold(self) -> bool:
107
+ """True when this edge is manifold (read-only).
106
108
 
109
+ :type: bool"""
107
110
  is_valid: bool
108
111
  """True when this element is valid (hasn't been freed or removed).
109
112
 
110
113
  :type: bool"""
111
114
 
112
- is_wire: bool
113
- """True when this edge is not connected to any faces (read-only).
115
+ @property
116
+ def is_wire(self) -> bool:
117
+ """True when this edge is not connected to any faces (read-only).
114
118
 
115
- :type: bool"""
119
+ :type: bool"""
116
120
 
117
- link_faces: BMElemSeq[BMFace]
118
- """Faces connected to this edge, (read-only).
121
+ @property
122
+ def link_faces(self) -> BMElemSeq[BMFace]:
123
+ """Faces connected to this edge, (read-only).
119
124
 
120
- :type: :class:`BMElemSeq`\\ [:class:`BMFace`]"""
125
+ :type: :class:`BMElemSeq`\\ [:class:`BMFace`]"""
121
126
 
122
- link_loops: BMElemSeq[BMLoop]
123
- """Loops connected to this edge, (read-only).
124
-
125
- :type: :class:`BMElemSeq`\\ [:class:`BMLoop`]"""
127
+ @property
128
+ def link_loops(self) -> BMElemSeq[BMLoop]:
129
+ """Loops connected to this edge, (read-only).
126
130
 
131
+ :type: :class:`BMElemSeq`\\ [:class:`BMLoop`]"""
127
132
  seam: bool
128
133
  """Seam for UV unwrapping.
129
134
 
@@ -144,10 +149,11 @@ class BMEdge:
144
149
 
145
150
  :type: bool"""
146
151
 
147
- verts: BMElemSeq[BMVert]
148
- """Verts this edge uses (always 2), (read-only).
152
+ @property
153
+ def verts(self) -> BMElemSeq[BMVert]:
154
+ """Verts this edge uses (always 2), (read-only).
149
155
 
150
- :type: :class:`BMElemSeq`\\ [:class:`BMVert`]"""
156
+ :type: :class:`BMElemSeq`\\ [:class:`BMVert`]"""
151
157
 
152
158
  def __delitem__(self, key: int | slice) -> None:
153
159
  """Delete self[key]."""
@@ -214,10 +220,11 @@ class BMEdge:
214
220
  def __iter__(self) -> Iterator[object]: ...
215
221
 
216
222
  class BMEdgeSeq:
217
- layers: BMLayerAccessEdge
218
- """custom-data layers (read-only).
223
+ @property
224
+ def layers(self) -> BMLayerAccessEdge:
225
+ """custom-data layers (read-only).
219
226
 
220
- :type: :class:`BMLayerAccessEdge`"""
227
+ :type: :class:`BMLayerAccessEdge`"""
221
228
 
222
229
  def __contains__(self, key: object, /) -> bool:
223
230
  """Return bool(key in self)."""
@@ -280,10 +287,11 @@ class BMEditSelIter:
280
287
  """Implement iter(self)."""
281
288
 
282
289
  class BMEditSelSeq:
283
- active: BMVert | BMEdge | BMFace | None
284
- """The last selected element or None (read-only).
290
+ @property
291
+ def active(self) -> BMVert | BMEdge | BMFace | None:
292
+ """The last selected element or None (read-only).
285
293
 
286
- :type: :class:`BMVert` | :class:`BMEdge` | :class:`BMFace` | None"""
294
+ :type: :class:`BMVert` | :class:`BMEdge` | :class:`BMFace` | None"""
287
295
 
288
296
  def __contains__(self, key: object, /) -> bool:
289
297
  """Return bool(key in self)."""
@@ -352,11 +360,11 @@ class BMElemSeq(Generic[_T]):
352
360
  class BMFace:
353
361
  """The BMesh face with 3 or more sides"""
354
362
 
355
- edges: BMElemSeq[BMEdge]
356
- """Edges of this face, (read-only).
357
-
358
- :type: :class:`BMElemSeq`\\ [:class:`BMEdge`]"""
363
+ @property
364
+ def edges(self) -> BMElemSeq[BMEdge]:
365
+ """Edges of this face, (read-only).
359
366
 
367
+ :type: :class:`BMElemSeq`\\ [:class:`BMEdge`]"""
360
368
  hide: bool
361
369
  """Hidden state of this element.
362
370
 
@@ -380,11 +388,11 @@ class BMFace:
380
388
 
381
389
  :type: bool"""
382
390
 
383
- loops: BMElemSeq[BMLoop]
384
- """Loops of this face, (read-only).
385
-
386
- :type: :class:`BMElemSeq`\\ [:class:`BMLoop`]"""
391
+ @property
392
+ def loops(self) -> BMElemSeq[BMLoop]:
393
+ """Loops of this face, (read-only).
387
394
 
395
+ :type: :class:`BMElemSeq`\\ [:class:`BMLoop`]"""
388
396
  material_index: int
389
397
  """The face's material index.
390
398
 
@@ -415,10 +423,11 @@ class BMFace:
415
423
 
416
424
  :type: bool"""
417
425
 
418
- verts: BMElemSeq[BMVert]
419
- """Verts of this face, (read-only).
426
+ @property
427
+ def verts(self) -> BMElemSeq[BMVert]:
428
+ """Verts of this face, (read-only).
420
429
 
421
- :type: :class:`BMElemSeq`\\ [:class:`BMVert`]"""
430
+ :type: :class:`BMElemSeq`\\ [:class:`BMVert`]"""
422
431
 
423
432
  def __delitem__(self, key: int | slice) -> None:
424
433
  """Delete self[key]."""
@@ -515,10 +524,11 @@ class BMFaceSeq:
515
524
 
516
525
  :type: :class:`BMFace` | None"""
517
526
 
518
- layers: BMLayerAccessFace
519
- """custom-data layers (read-only).
527
+ @property
528
+ def layers(self) -> BMLayerAccessFace:
529
+ """custom-data layers (read-only).
520
530
 
521
- :type: :class:`BMLayerAccessFace`"""
531
+ :type: :class:`BMLayerAccessFace`"""
522
532
 
523
533
  def __contains__(self, key: object, /) -> bool:
524
534
  """Return bool(key in self)."""
@@ -759,15 +769,17 @@ class BMLayerAccessVert:
759
769
  class BMLayerCollection(Generic[_T]):
760
770
  """Gives access to a collection of custom-data layers of the same type and behaves like Python dictionaries, except for the ability to do list like index access."""
761
771
 
762
- active: BMLayerItem | None
763
- """The active layer of this type (read-only).
772
+ @property
773
+ def active(self) -> BMLayerItem | None:
774
+ """The active layer of this type (read-only).
764
775
 
765
- :type: :class:`BMLayerItem` | None"""
776
+ :type: :class:`BMLayerItem` | None"""
766
777
 
767
- is_singleton: bool
768
- """True if there can exist only one layer of this type (read-only).
778
+ @property
779
+ def is_singleton(self) -> bool:
780
+ """True if there can exist only one layer of this type (read-only).
769
781
 
770
- :type: bool"""
782
+ :type: bool"""
771
783
 
772
784
  def __contains__(self, key: object, /) -> bool:
773
785
  """Return bool(key in self)."""
@@ -821,10 +833,11 @@ class BMLayerCollection(Generic[_T]):
821
833
  class BMLayerItem:
822
834
  """Exposes a single custom data layer, its main purpose is for use as an item accessor to custom-data when used with vert/edge/face/loop data."""
823
835
 
824
- name: str
825
- """The layer's unique name (read-only).
836
+ @property
837
+ def name(self) -> str:
838
+ """The layer's unique name (read-only).
826
839
 
827
- :type: str"""
840
+ :type: str"""
828
841
 
829
842
  def copy_from(self, other: BMLayerItem, /) -> None:
830
843
  """Copy data from another layer.
@@ -835,16 +848,17 @@ class BMLayerItem:
835
848
  class BMLoop:
836
849
  """This is normally accessed from :class:`BMFace.loops` where each face loop represents a corner of the face."""
837
850
 
838
- edge: BMEdge
839
- """The loop's edge (between this loop and the next), (read-only).
840
-
841
- :type: :class:`BMEdge`"""
851
+ @property
852
+ def edge(self) -> BMEdge:
853
+ """The loop's edge (between this loop and the next), (read-only).
842
854
 
843
- face: BMFace
844
- """The face this loop belongs to (read-only).
855
+ :type: :class:`BMEdge`"""
845
856
 
846
- :type: :class:`BMFace`"""
857
+ @property
858
+ def face(self) -> BMFace:
859
+ """The face this loop belongs to (read-only).
847
860
 
861
+ :type: :class:`BMFace`"""
848
862
  index: int
849
863
  """Index of this element.
850
864
 
@@ -858,41 +872,45 @@ class BMLoop:
858
872
 
859
873
  To ensure the value is up to date - see :meth:`BMElemSeq.index_update`."""
860
874
 
861
- is_convex: bool
862
- """True when this loop is at the convex corner of a face, depends on a valid face normal (read-only).
863
-
864
- :type: bool"""
875
+ @property
876
+ def is_convex(self) -> bool:
877
+ """True when this loop is at the convex corner of a face, depends on a valid face normal (read-only).
865
878
 
879
+ :type: bool"""
866
880
  is_valid: bool
867
881
  """True when this element is valid (hasn't been freed or removed).
868
882
 
869
883
  :type: bool"""
870
884
 
871
- link_loop_next: BMLoop
872
- """The next face corner (read-only).
873
-
874
- :type: :class:`BMLoop`"""
885
+ @property
886
+ def link_loop_next(self) -> BMLoop:
887
+ """The next face corner (read-only).
875
888
 
876
- link_loop_prev: BMLoop
877
- """The previous face corner (read-only).
889
+ :type: :class:`BMLoop`"""
878
890
 
879
- :type: :class:`BMLoop`"""
891
+ @property
892
+ def link_loop_prev(self) -> BMLoop:
893
+ """The previous face corner (read-only).
880
894
 
881
- link_loop_radial_next: BMLoop
882
- """The next loop around the edge (read-only).
895
+ :type: :class:`BMLoop`"""
883
896
 
884
- :type: :class:`BMLoop`"""
897
+ @property
898
+ def link_loop_radial_next(self) -> BMLoop:
899
+ """The next loop around the edge (read-only).
885
900
 
886
- link_loop_radial_prev: BMLoop
887
- """The previous loop around the edge (read-only).
901
+ :type: :class:`BMLoop`"""
888
902
 
889
- :type: :class:`BMLoop`"""
903
+ @property
904
+ def link_loop_radial_prev(self) -> BMLoop:
905
+ """The previous loop around the edge (read-only).
890
906
 
891
- link_loops: BMElemSeq[BMLoop]
892
- """Loops connected to this loop, (read-only).
907
+ :type: :class:`BMLoop`"""
893
908
 
894
- :type: :class:`BMElemSeq`\\ [:class:`BMLoop`]"""
909
+ @property
910
+ def link_loops(self) -> BMElemSeq[BMLoop]:
911
+ """Loops connected to this loop, (read-only).
895
912
 
913
+ :type: :class:`BMElemSeq`\\ [:class:`BMLoop`]"""
896
914
  tag: bool
897
915
  """Generic attribute scripts can use for own logic
898
916
 
@@ -908,10 +926,11 @@ class BMLoop:
908
926
 
909
927
  :type: bool"""
910
928
 
911
- vert: BMVert
912
- """The loop's vertex (read-only).
929
+ @property
930
+ def vert(self) -> BMVert:
931
+ """The loop's vertex (read-only).
913
932
 
914
- :type: :class:`BMVert`"""
933
+ :type: :class:`BMVert`"""
915
934
 
916
935
  def __delitem__(self, key: int | slice) -> None:
917
936
  """Delete self[key]."""
@@ -966,10 +985,11 @@ class BMLoop:
966
985
  def __iter__(self) -> Iterator[object]: ...
967
986
 
968
987
  class BMLoopSeq:
969
- layers: BMLayerAccessLoop
970
- """custom-data layers (read-only).
988
+ @property
989
+ def layers(self) -> BMLayerAccessLoop:
990
+ """custom-data layers (read-only).
971
991
 
972
- :type: :class:`BMLayerAccessLoop`"""
992
+ :type: :class:`BMLayerAccessLoop`"""
973
993
 
974
994
  class BMLoopUV:
975
995
  pin_uv: bool
@@ -1008,41 +1028,45 @@ class BMVert:
1008
1028
 
1009
1029
  To ensure the value is up to date - see :meth:`BMElemSeq.index_update`."""
1010
1030
 
1011
- is_boundary: bool
1012
- """True when this vertex is connected to boundary edges (read-only).
1031
+ @property
1032
+ def is_boundary(self) -> bool:
1033
+ """True when this vertex is connected to boundary edges (read-only).
1013
1034
 
1014
- :type: bool"""
1015
-
1016
- is_manifold: bool
1017
- """True when this vertex is manifold (read-only).
1035
+ :type: bool"""
1018
1036
 
1019
- :type: bool"""
1037
+ @property
1038
+ def is_manifold(self) -> bool:
1039
+ """True when this vertex is manifold (read-only).
1020
1040
 
1041
+ :type: bool"""
1021
1042
  is_valid: bool
1022
1043
  """True when this element is valid (hasn't been freed or removed).
1023
1044
 
1024
1045
  :type: bool"""
1025
1046
 
1026
- is_wire: bool
1027
- """True when this vertex is not connected to any faces (read-only).
1047
+ @property
1048
+ def is_wire(self) -> bool:
1049
+ """True when this vertex is not connected to any faces (read-only).
1028
1050
 
1029
- :type: bool"""
1030
-
1031
- link_edges: BMElemSeq[BMEdge]
1032
- """Edges connected to this vertex (read-only).
1051
+ :type: bool"""
1033
1052
 
1034
- :type: :class:`BMElemSeq`\\ [:class:`BMEdge`]"""
1053
+ @property
1054
+ def link_edges(self) -> BMElemSeq[BMEdge]:
1055
+ """Edges connected to this vertex (read-only).
1035
1056
 
1036
- link_faces: BMElemSeq[BMFace]
1037
- """Faces connected to this vertex (read-only).
1057
+ :type: :class:`BMElemSeq`\\ [:class:`BMEdge`]"""
1038
1058
 
1039
- :type: :class:`BMElemSeq`\\ [:class:`BMFace`]"""
1059
+ @property
1060
+ def link_faces(self) -> BMElemSeq[BMFace]:
1061
+ """Faces connected to this vertex (read-only).
1040
1062
 
1041
- link_loops: BMElemSeq[BMLoop]
1042
- """Loops that use this vertex (read-only).
1063
+ :type: :class:`BMElemSeq`\\ [:class:`BMFace`]"""
1043
1064
 
1044
- :type: :class:`BMElemSeq`\\ [:class:`BMLoop`]"""
1065
+ @property
1066
+ def link_loops(self) -> BMElemSeq[BMLoop]:
1067
+ """Loops that use this vertex (read-only).
1045
1068
 
1069
+ :type: :class:`BMElemSeq`\\ [:class:`BMLoop`]"""
1046
1070
  normal: mathutils.Vector | Sequence[float]
1047
1071
  """The normal for this vertex as a 3D, wrapped vector.
1048
1072
 
@@ -1120,10 +1144,11 @@ class BMVert:
1120
1144
  def __iter__(self) -> Iterator[object]: ...
1121
1145
 
1122
1146
  class BMVertSeq:
1123
- layers: BMLayerAccessVert
1124
- """custom-data layers (read-only).
1147
+ @property
1148
+ def layers(self) -> BMLayerAccessVert:
1149
+ """custom-data layers (read-only).
1125
1150
 
1126
- :type: :class:`BMLayerAccessVert`"""
1151
+ :type: :class:`BMLayerAccessVert`"""
1127
1152
 
1128
1153
  def __contains__(self, key: object, /) -> bool:
1129
1154
  """Return bool(key in self)."""
@@ -1180,16 +1205,17 @@ class BMVertSeq:
1180
1205
  class BMesh:
1181
1206
  """The BMesh data structure"""
1182
1207
 
1183
- edges: BMEdgeSeq
1184
- """This mesh's edge sequence (read-only).
1185
-
1186
- :type: :class:`BMEdgeSeq`"""
1208
+ @property
1209
+ def edges(self) -> BMEdgeSeq:
1210
+ """This mesh's edge sequence (read-only).
1187
1211
 
1188
- faces: BMFaceSeq
1189
- """This mesh's face sequence (read-only).
1212
+ :type: :class:`BMEdgeSeq`"""
1190
1213
 
1191
- :type: :class:`BMFaceSeq`"""
1214
+ @property
1215
+ def faces(self) -> BMFaceSeq:
1216
+ """This mesh's face sequence (read-only).
1192
1217
 
1218
+ :type: :class:`BMFaceSeq`"""
1193
1219
  is_valid: bool
1194
1220
  """True when this element is valid (hasn't been freed or removed).
1195
1221
 
@@ -1200,15 +1226,15 @@ class BMesh:
1200
1226
 
1201
1227
  :type: bool"""
1202
1228
 
1203
- loops: BMLoopSeq
1204
- """This mesh's loops (read-only).
1229
+ @property
1230
+ def loops(self) -> BMLoopSeq:
1231
+ """This mesh's loops (read-only).
1205
1232
 
1206
- :type: :class:`BMLoopSeq`
1207
-
1208
- .. note::
1233
+ :type: :class:`BMLoopSeq`
1209
1234
 
1210
- Loops must be accessed via faces, this is only exposed for layer access."""
1235
+ .. note::
1211
1236
 
1237
+ Loops must be accessed via faces, this is only exposed for layer access."""
1212
1238
  select_history: BMEditSelSeq
1213
1239
  """Sequence of selected items (the last is displayed as active).
1214
1240
 
@@ -1224,10 +1250,11 @@ class BMesh:
1224
1250
 
1225
1251
  :type: bool"""
1226
1252
 
1227
- verts: BMVertSeq
1228
- """This mesh's vert sequence (read-only).
1253
+ @property
1254
+ def verts(self) -> BMVertSeq:
1255
+ """This mesh's vert sequence (read-only).
1229
1256
 
1230
- :type: :class:`BMVertSeq`"""
1257
+ :type: :class:`BMVertSeq`"""
1231
1258
 
1232
1259
  def calc_loop_triangles(self) -> list[tuple[BMLoop, BMLoop, BMLoop]]:
1233
1260
  """Calculate triangle tessellation from quads/ngons."""
@@ -1,6 +1,7 @@
1
1
  """Give access to blender data and utility functions."""
2
2
 
3
3
  from . import app as app
4
+ from . import msgbus as msgbus
4
5
  from . import ops as ops
5
6
  from . import path as path
6
7
  from . import props as props
@@ -0,0 +1,30 @@
1
+ from collections.abc import Callable
2
+ from typing import Literal
3
+ import bpy.types
4
+
5
+ def clear_by_owner(owner: object, /) -> None:
6
+ """Clear all subscribers using this owner.
7
+
8
+ :param owner: The owner handle passed to :func:`subscribe_rna`.
9
+ """
10
+
11
+ def publish_rna(
12
+ *,
13
+ key: bpy.types.Property | bpy.types.Struct | tuple[bpy.types.Struct, str] | object,
14
+ ) -> None:
15
+ """:param key: Represents the type of data being subscribed to
16
+
17
+ Arguments include
18
+ - A property instance.
19
+ - A struct type.
20
+ - A tuple representing a (struct, property name) pair.
21
+ """
22
+
23
+ def subscribe_rna(
24
+ *,
25
+ key: bpy.types.Property | bpy.types.Struct | tuple[bpy.types.Struct, str] | object,
26
+ owner: object,
27
+ args: tuple[object, ...],
28
+ notify: Callable[..., None],
29
+ options: set[Literal["PERSISTENT"]] = ...,
30
+ ) -> None: ...