blender-python-stubs 5.0.1.0__tar.gz → 5.0.1.2__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 (81) hide show
  1. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/PKG-INFO +8 -5
  2. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/README.md +6 -3
  3. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/bmesh/types/__init__.pyi +182 -138
  4. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/bpy/__init__.pyi +1 -0
  5. blender_python_stubs-5.0.1.2/bpy/msgbus/__init__.pyi +16 -0
  6. blender_python_stubs-5.0.1.2/bpy/ops/__init__.pyi +81166 -0
  7. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/bpy/types/__init__.pyi +3870 -1402
  8. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/bpy_extras/anim_utils/__init__.pyi +2 -0
  9. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/freestyle/types/__init__.pyi +109 -52
  10. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/gpu/types/__init__.pyi +9 -7
  11. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/idprop/types/__init__.pyi +13 -0
  12. blender_python_stubs-5.0.1.2/mathutils/__init__.pyi +3180 -0
  13. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/pyproject.toml +2 -2
  14. blender_python_stubs-5.0.1.0/bpy/ops/__init__.pyi +0 -176
  15. blender_python_stubs-5.0.1.0/mathutils/__init__.pyi +0 -2140
  16. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/.gitignore +0 -0
  17. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/.python-version +0 -0
  18. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/LICENSE +0 -0
  19. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/aud/__init__.pyi +0 -0
  20. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/aud/py.typed +0 -0
  21. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/bl_math/__init__.pyi +0 -0
  22. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/bl_math/py.typed +0 -0
  23. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/blf/__init__.pyi +0 -0
  24. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/blf/py.typed +0 -0
  25. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/bmesh/__init__.pyi +0 -0
  26. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/bmesh/geometry/__init__.pyi +0 -0
  27. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/bmesh/ops/__init__.pyi +0 -0
  28. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/bmesh/py.typed +0 -0
  29. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/bmesh/utils/__init__.pyi +0 -0
  30. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/bpy/app/__init__.pyi +0 -0
  31. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/bpy/path/__init__.pyi +0 -0
  32. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/bpy/props/__init__.pyi +0 -0
  33. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/bpy/py.typed +0 -0
  34. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/bpy/utils/__init__.pyi +0 -0
  35. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/bpy/utils/previews/__init__.pyi +0 -0
  36. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/bpy/utils/toolsystem/__init__.pyi +0 -0
  37. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/bpy_extras/__init__.pyi +0 -0
  38. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/bpy_extras/asset_utils/__init__.pyi +0 -0
  39. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/bpy_extras/bmesh_utils/__init__.pyi +0 -0
  40. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/bpy_extras/id_map_utils/__init__.pyi +0 -0
  41. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/bpy_extras/image_utils/__init__.pyi +0 -0
  42. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/bpy_extras/io_utils/__init__.pyi +0 -0
  43. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/bpy_extras/keyconfig_utils/__init__.pyi +0 -0
  44. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/bpy_extras/mesh_utils/__init__.pyi +0 -0
  45. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/bpy_extras/node_shader_utils/__init__.pyi +0 -0
  46. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/bpy_extras/node_utils/__init__.pyi +0 -0
  47. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/bpy_extras/object_utils/__init__.pyi +0 -0
  48. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/bpy_extras/py.typed +0 -0
  49. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/bpy_extras/view3d_utils/__init__.pyi +0 -0
  50. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/freestyle/__init__.pyi +0 -0
  51. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/freestyle/chainingiterators/__init__.pyi +0 -0
  52. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/freestyle/functions/__init__.pyi +0 -0
  53. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/freestyle/predicates/__init__.pyi +0 -0
  54. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/freestyle/py.typed +0 -0
  55. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/freestyle/shaders/__init__.pyi +0 -0
  56. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/freestyle/utils/__init__.pyi +0 -0
  57. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/gpu/__init__.pyi +0 -0
  58. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/gpu/capabilities/__init__.pyi +0 -0
  59. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/gpu/compute/__init__.pyi +0 -0
  60. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/gpu/matrix/__init__.pyi +0 -0
  61. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/gpu/platform/__init__.pyi +0 -0
  62. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/gpu/py.typed +0 -0
  63. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/gpu/select/__init__.pyi +0 -0
  64. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/gpu/shader/__init__.pyi +0 -0
  65. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/gpu/state/__init__.pyi +0 -0
  66. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/gpu/texture/__init__.pyi +0 -0
  67. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/gpu_extras/__init__.pyi +0 -0
  68. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/gpu_extras/batch/__init__.pyi +0 -0
  69. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/gpu_extras/presets/__init__.pyi +0 -0
  70. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/gpu_extras/py.typed +0 -0
  71. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/idprop/__init__.pyi +0 -0
  72. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/idprop/py.typed +0 -0
  73. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/imbuf/__init__.pyi +0 -0
  74. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/imbuf/py.typed +0 -0
  75. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/imbuf/types/__init__.pyi +0 -0
  76. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/mathutils/bvhtree/__init__.pyi +0 -0
  77. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/mathutils/geometry/__init__.pyi +0 -0
  78. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/mathutils/interpolate/__init__.pyi +0 -0
  79. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/mathutils/kdtree/__init__.pyi +0 -0
  80. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/mathutils/noise/__init__.pyi +0 -0
  81. {blender_python_stubs-5.0.1.0 → blender_python_stubs-5.0.1.2}/mathutils/py.typed +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: blender-python-stubs
3
- Version: 5.0.1.0
3
+ Version: 5.0.1.2
4
4
  Summary: Type stubs for Blender 5.0 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
@@ -10,7 +10,7 @@ Author-email: Autour de Minuit <tech@autourdeminuit.com>
10
10
  License-Expression: MIT
11
11
  License-File: LICENSE
12
12
  Keywords: autocomplete,blender,bpy,stubs,typing
13
- Classifier: Development Status :: 3 - Alpha
13
+ Classifier: Development Status :: 4 - Beta
14
14
  Classifier: Intended Audience :: Developers
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Topic :: Multimedia :: Graphics :: 3D Modeling
@@ -21,9 +21,11 @@ Description-Content-Type: text/markdown
21
21
 
22
22
  # blender-python-stubs
23
23
 
24
- Type stubs for Blender 5.0 Python API.
24
+ [![PyPI](https://img.shields.io/pypi/v/blender-python-stubs?logo=pypi&logoColor=white)](https://pypi.org/project/blender-python-stubs/)
25
25
 
26
- Provides autocomplete, type checking, and inline documentation for `bpy`, `mathutils`, `bmesh`, `gpu`, `freestyle`, and all other Blender Python modules.
26
+ Strict type stubs for Blender 5.0 Python API.
27
+
28
+ Provides autocomplete, type checking, and inline documentation for `bpy`, `mathutils`, `bmesh`, `gpu`, `freestyle`, and all other Blender Python modules. Generated stubs pass [basedpyright](https://docs.basedpyright.com) `all` mode with 0 errors and use zero `typing.Any`.
27
29
 
28
30
  ## Installation
29
31
 
@@ -47,7 +49,8 @@ pip install "blender-python-stubs>=5.0,<5.1"
47
49
  ```python
48
50
  import bpy
49
51
 
50
- obj: bpy.types.Object = bpy.context.active_object
52
+ obj = bpy.context.active_object
53
+ assert obj is not None
51
54
  obj.location.x = 1.0
52
55
 
53
56
  bpy.data.objects.new("Cube", bpy.data.meshes.new("Mesh"))
@@ -1,8 +1,10 @@
1
1
  # blender-python-stubs
2
2
 
3
- Type stubs for Blender 5.0 Python API.
3
+ [![PyPI](https://img.shields.io/pypi/v/blender-python-stubs?logo=pypi&logoColor=white)](https://pypi.org/project/blender-python-stubs/)
4
4
 
5
- Provides autocomplete, type checking, and inline documentation for `bpy`, `mathutils`, `bmesh`, `gpu`, `freestyle`, and all other Blender Python modules.
5
+ Strict type stubs for Blender 5.0 Python API.
6
+
7
+ Provides autocomplete, type checking, and inline documentation for `bpy`, `mathutils`, `bmesh`, `gpu`, `freestyle`, and all other Blender Python modules. Generated stubs pass [basedpyright](https://docs.basedpyright.com) `all` mode with 0 errors and use zero `typing.Any`.
6
8
 
7
9
  ## Installation
8
10
 
@@ -26,7 +28,8 @@ pip install "blender-python-stubs>=5.0,<5.1"
26
28
  ```python
27
29
  import bpy
28
30
 
29
- obj: bpy.types.Object = bpy.context.active_object
31
+ obj = bpy.context.active_object
32
+ assert obj is not None
30
33
  obj.location.x = 1.0
31
34
 
32
35
  bpy.data.objects.new("Cube", bpy.data.meshes.new("Mesh"))
@@ -77,46 +77,51 @@ class BMEdge:
77
77
 
78
78
  To ensure the value is up to date - see :class:`BMElemSeq.index_update`."""
79
79
 
80
- is_boundary: bool
81
- """True when this edge is at the boundary of a face (read-only).
80
+ @property
81
+ def is_boundary(self) -> bool:
82
+ """True when this edge is at the boundary of a face (read-only).
82
83
 
83
- :type: bool"""
84
+ :type: bool"""
84
85
 
85
- is_contiguous: bool
86
- """True when this edge is manifold, between two faces with the same winding (read-only).
86
+ @property
87
+ def is_contiguous(self) -> bool:
88
+ """True when this edge is manifold, between two faces with the same winding (read-only).
87
89
 
88
- :type: bool"""
90
+ :type: bool"""
89
91
 
90
- is_convex: bool
91
- """True when this edge joins two convex faces, depends on a valid face normal (read-only).
92
+ @property
93
+ def is_convex(self) -> bool:
94
+ """True when this edge joins two convex faces, depends on a valid face normal (read-only).
92
95
 
93
- :type: bool"""
96
+ :type: bool"""
94
97
 
95
- is_manifold: bool
96
- """True when this edge is manifold (read-only).
97
-
98
- :type: bool"""
98
+ @property
99
+ def is_manifold(self) -> bool:
100
+ """True when this edge is manifold (read-only).
99
101
 
102
+ :type: bool"""
100
103
  is_valid: bool
101
104
  """True when this element is valid (hasn't been removed).
102
105
 
103
106
  :type: bool"""
104
107
 
105
- is_wire: bool
106
- """True when this edge is not connected to any faces (read-only).
107
-
108
- :type: bool"""
108
+ @property
109
+ def is_wire(self) -> bool:
110
+ """True when this edge is not connected to any faces (read-only).
109
111
 
110
- link_faces: object
111
- """Faces connected to this edge, (read-only).
112
+ :type: bool"""
112
113
 
113
- :type: :class:`BMElemSeq` of :class:`BMFace`"""
114
+ @property
115
+ def link_faces(self) -> object:
116
+ """Faces connected to this edge, (read-only).
114
117
 
115
- link_loops: object
116
- """Loops connected to this edge, (read-only).
118
+ :type: :class:`BMElemSeq` of :class:`BMFace`"""
117
119
 
118
- :type: :class:`BMElemSeq` of :class:`BMLoop`"""
120
+ @property
121
+ def link_loops(self) -> object:
122
+ """Loops connected to this edge, (read-only).
119
123
 
124
+ :type: :class:`BMElemSeq` of :class:`BMLoop`"""
120
125
  seam: bool
121
126
  """Seam for UV unwrapping.
122
127
 
@@ -137,10 +142,11 @@ class BMEdge:
137
142
 
138
143
  :type: bool"""
139
144
 
140
- verts: object
141
- """Verts this edge uses (always 2), (read-only).
145
+ @property
146
+ def verts(self) -> object:
147
+ """Verts this edge uses (always 2), (read-only).
142
148
 
143
- :type: :class:`BMElemSeq` of :class:`BMVert`"""
149
+ :type: :class:`BMElemSeq` of :class:`BMVert`"""
144
150
 
145
151
  def __delitem__(self, key: int | slice) -> None:
146
152
  """Delete self[key]."""
@@ -181,10 +187,11 @@ class BMEdge:
181
187
  def __iter__(self) -> Iterator[object]: ...
182
188
 
183
189
  class BMEdgeSeq:
184
- layers: BMLayerAccessEdge
185
- """custom-data layers (read-only).
190
+ @property
191
+ def layers(self) -> BMLayerAccessEdge:
192
+ """custom-data layers (read-only).
186
193
 
187
- :type: :class:`BMLayerAccessEdge`"""
194
+ :type: :class:`BMLayerAccessEdge`"""
188
195
 
189
196
  def __contains__(self, key: object, /) -> bool:
190
197
  """Return key in self."""
@@ -232,10 +239,11 @@ class BMEdgeSeq:
232
239
  class BMEditSelIter: ...
233
240
 
234
241
  class BMEditSelSeq:
235
- active: BMVert | BMEdge | BMFace
236
- """The last selected element or None (read-only).
242
+ @property
243
+ def active(self) -> BMVert | BMEdge | BMFace:
244
+ """The last selected element or None (read-only).
237
245
 
238
- :type: :class:`BMVert`, :class:`BMEdge` or :class:`BMFace`"""
246
+ :type: :class:`BMVert`, :class:`BMEdge` or :class:`BMFace`"""
239
247
 
240
248
  def __contains__(self, key: object, /) -> bool:
241
249
  """Return key in self."""
@@ -296,11 +304,11 @@ class BMElemSeq:
296
304
  class BMFace:
297
305
  """The BMesh face with 3 or more sides"""
298
306
 
299
- edges: object
300
- """Edges of this face, (read-only).
301
-
302
- :type: :class:`BMElemSeq` of :class:`BMEdge`"""
307
+ @property
308
+ def edges(self) -> object:
309
+ """Edges of this face, (read-only).
303
310
 
311
+ :type: :class:`BMElemSeq` of :class:`BMEdge`"""
304
312
  hide: bool
305
313
  """Hidden state of this element.
306
314
 
@@ -324,20 +332,24 @@ class BMFace:
324
332
 
325
333
  :type: bool"""
326
334
 
327
- loops: object
328
- """Loops of this face, (read-only).
329
-
330
- :type: :class:`BMElemSeq` of :class:`BMLoop`"""
335
+ @property
336
+ def loops(self) -> object:
337
+ """Loops of this face, (read-only).
331
338
 
339
+ :type: :class:`BMElemSeq` of :class:`BMLoop`"""
332
340
  material_index: int
333
341
  """The face's material index.
334
342
 
335
343
  :type: int"""
336
344
 
337
- normal: mathutils.Vector | Sequence[float]
338
- """The normal for this face as a 3D, wrapped vector.
345
+ @property
346
+ def normal(self) -> mathutils.Vector:
347
+ """The normal for this face as a 3D, wrapped vector.
348
+
349
+ :type: :class:`mathutils.Vector`"""
339
350
 
340
- :type: :class:`mathutils.Vector`"""
351
+ @normal.setter
352
+ def normal(self, value: mathutils.Vector | Sequence[float]) -> None: ...
341
353
 
342
354
  select: bool
343
355
  """Selected state of this element.
@@ -359,10 +371,11 @@ class BMFace:
359
371
 
360
372
  :type: bool"""
361
373
 
362
- verts: object
363
- """Verts of this face, (read-only).
374
+ @property
375
+ def verts(self) -> object:
376
+ """Verts of this face, (read-only).
364
377
 
365
- :type: :class:`BMElemSeq` of :class:`BMVert`"""
378
+ :type: :class:`BMElemSeq` of :class:`BMVert`"""
366
379
 
367
380
  def __delitem__(self, key: int | slice) -> None:
368
381
  """Delete self[key]."""
@@ -443,10 +456,11 @@ class BMFaceSeq:
443
456
 
444
457
  :type: :class:`BMFace` | None"""
445
458
 
446
- layers: BMLayerAccessFace
447
- """custom-data layers (read-only).
459
+ @property
460
+ def layers(self) -> BMLayerAccessFace:
461
+ """custom-data layers (read-only).
448
462
 
449
- :type: :class:`BMLayerAccessFace`"""
463
+ :type: :class:`BMLayerAccessFace`"""
450
464
 
451
465
  def __contains__(self, key: object, /) -> bool:
452
466
  """Return key in self."""
@@ -674,15 +688,17 @@ class BMLayerAccessVert:
674
688
  class BMLayerCollection:
675
689
  """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."""
676
690
 
677
- active: BMLayerItem
678
- """The active layer of this type (read-only).
691
+ @property
692
+ def active(self) -> BMLayerItem:
693
+ """The active layer of this type (read-only).
679
694
 
680
- :type: :class:`BMLayerItem`"""
695
+ :type: :class:`BMLayerItem`"""
681
696
 
682
- is_singleton: bool
683
- """True if there can exists only one layer of this type (read-only).
697
+ @property
698
+ def is_singleton(self) -> bool:
699
+ """True if there can exists only one layer of this type (read-only).
684
700
 
685
- :type: bool"""
701
+ :type: bool"""
686
702
 
687
703
  def __contains__(self, key: object, /) -> bool:
688
704
  """Return key in self."""
@@ -728,10 +744,11 @@ class BMLayerCollection:
728
744
  class BMLayerItem:
729
745
  """Exposes a single custom data layer, their main purpose is for use as item accessors to custom-data when used with vert/edge/face/loop data."""
730
746
 
731
- name: str
732
- """The layers unique name (read-only).
747
+ @property
748
+ def name(self) -> str:
749
+ """The layers unique name (read-only).
733
750
 
734
- :type: str"""
751
+ :type: str"""
735
752
 
736
753
  def copy_from(self, other: BMLayerItem) -> None:
737
754
  """Return a copy of the layer"""
@@ -739,16 +756,17 @@ class BMLayerItem:
739
756
  class BMLoop:
740
757
  """This is normally accessed from :class:`BMFace.loops` where each face loop represents a corner of the face."""
741
758
 
742
- edge: BMEdge
743
- """The loop's edge (between this loop and the next), (read-only).
744
-
745
- :type: :class:`BMEdge`"""
759
+ @property
760
+ def edge(self) -> BMEdge:
761
+ """The loop's edge (between this loop and the next), (read-only).
746
762
 
747
- face: BMFace
748
- """The face this loop makes (read-only).
763
+ :type: :class:`BMEdge`"""
749
764
 
750
- :type: :class:`BMFace`"""
765
+ @property
766
+ def face(self) -> BMFace:
767
+ """The face this loop makes (read-only).
751
768
 
769
+ :type: :class:`BMFace`"""
752
770
  index: int
753
771
  """Index of this element.
754
772
 
@@ -762,41 +780,45 @@ class BMLoop:
762
780
 
763
781
  To ensure the value is up to date - see :class:`BMElemSeq.index_update`."""
764
782
 
765
- is_convex: bool
766
- """True when this loop is at the convex corner of a face, depends on a valid face normal (read-only).
767
-
768
- :type: bool"""
783
+ @property
784
+ def is_convex(self) -> bool:
785
+ """True when this loop is at the convex corner of a face, depends on a valid face normal (read-only).
769
786
 
787
+ :type: bool"""
770
788
  is_valid: bool
771
789
  """True when this element is valid (hasn't been removed).
772
790
 
773
791
  :type: bool"""
774
792
 
775
- link_loop_next: BMLoop
776
- """The next face corner (read-only).
777
-
778
- :type: :class:`BMLoop`"""
793
+ @property
794
+ def link_loop_next(self) -> BMLoop:
795
+ """The next face corner (read-only).
779
796
 
780
- link_loop_prev: BMLoop
781
- """The previous face corner (read-only).
797
+ :type: :class:`BMLoop`"""
782
798
 
783
- :type: :class:`BMLoop`"""
799
+ @property
800
+ def link_loop_prev(self) -> BMLoop:
801
+ """The previous face corner (read-only).
784
802
 
785
- link_loop_radial_next: BMLoop
786
- """The next loop around the edge (read-only).
803
+ :type: :class:`BMLoop`"""
787
804
 
788
- :type: :class:`BMLoop`"""
805
+ @property
806
+ def link_loop_radial_next(self) -> BMLoop:
807
+ """The next loop around the edge (read-only).
789
808
 
790
- link_loop_radial_prev: BMLoop
791
- """The previous loop around the edge (read-only).
809
+ :type: :class:`BMLoop`"""
792
810
 
793
- :type: :class:`BMLoop`"""
811
+ @property
812
+ def link_loop_radial_prev(self) -> BMLoop:
813
+ """The previous loop around the edge (read-only).
794
814
 
795
- link_loops: object
796
- """Loops connected to this loop, (read-only).
815
+ :type: :class:`BMLoop`"""
797
816
 
798
- :type: :class:`BMElemSeq` of :class:`BMLoop`"""
817
+ @property
818
+ def link_loops(self) -> object:
819
+ """Loops connected to this loop, (read-only).
799
820
 
821
+ :type: :class:`BMElemSeq` of :class:`BMLoop`"""
800
822
  tag: bool
801
823
  """Generic attribute scripts can use for own logic
802
824
 
@@ -812,10 +834,11 @@ class BMLoop:
812
834
 
813
835
  :type: bool"""
814
836
 
815
- vert: BMVert
816
- """The loop's vertex (read-only).
837
+ @property
838
+ def vert(self) -> BMVert:
839
+ """The loop's vertex (read-only).
817
840
 
818
- :type: :class:`BMVert`"""
841
+ :type: :class:`BMVert`"""
819
842
 
820
843
  def __delitem__(self, key: int | slice) -> None:
821
844
  """Delete self[key]."""
@@ -858,10 +881,11 @@ class BMLoop:
858
881
  def __iter__(self) -> Iterator[object]: ...
859
882
 
860
883
  class BMLoopSeq:
861
- layers: BMLayerAccessLoop
862
- """custom-data layers (read-only).
884
+ @property
885
+ def layers(self) -> BMLayerAccessLoop:
886
+ """custom-data layers (read-only).
863
887
 
864
- :type: :class:`BMLayerAccessLoop`"""
888
+ :type: :class:`BMLayerAccessLoop`"""
865
889
 
866
890
  class BMLoopUV:
867
891
  pin_uv: bool
@@ -869,18 +893,26 @@ class BMLoopUV:
869
893
 
870
894
  :type: bool"""
871
895
 
872
- uv: mathutils.Vector | Sequence[float]
873
- """Loops UV (as a 2D Vector).
896
+ @property
897
+ def uv(self) -> mathutils.Vector:
898
+ """Loops UV (as a 2D Vector).
899
+
900
+ :type: :class:`mathutils.Vector`"""
874
901
 
875
- :type: :class:`mathutils.Vector`"""
902
+ @uv.setter
903
+ def uv(self, value: mathutils.Vector | Sequence[float]) -> None: ...
876
904
 
877
905
  class BMVert:
878
906
  """The BMesh vertex type"""
879
907
 
880
- co: mathutils.Vector | Sequence[float]
881
- """The coordinates for this vertex as a 3D, wrapped vector.
908
+ @property
909
+ def co(self) -> mathutils.Vector:
910
+ """The coordinates for this vertex as a 3D, wrapped vector.
882
911
 
883
- :type: :class:`mathutils.Vector`"""
912
+ :type: :class:`mathutils.Vector`"""
913
+
914
+ @co.setter
915
+ def co(self, value: mathutils.Vector | Sequence[float]) -> None: ...
884
916
 
885
917
  hide: bool
886
918
  """Hidden state of this element.
@@ -900,45 +932,54 @@ class BMVert:
900
932
 
901
933
  To ensure the value is up to date - see :class:`BMElemSeq.index_update`."""
902
934
 
903
- is_boundary: bool
904
- """True when this vertex is connected to boundary edges (read-only).
905
-
906
- :type: bool"""
935
+ @property
936
+ def is_boundary(self) -> bool:
937
+ """True when this vertex is connected to boundary edges (read-only).
907
938
 
908
- is_manifold: bool
909
- """True when this vertex is manifold (read-only).
939
+ :type: bool"""
910
940
 
911
- :type: bool"""
941
+ @property
942
+ def is_manifold(self) -> bool:
943
+ """True when this vertex is manifold (read-only).
912
944
 
945
+ :type: bool"""
913
946
  is_valid: bool
914
947
  """True when this element is valid (hasn't been removed).
915
948
 
916
949
  :type: bool"""
917
950
 
918
- is_wire: bool
919
- """True when this vertex is not connected to any faces (read-only).
951
+ @property
952
+ def is_wire(self) -> bool:
953
+ """True when this vertex is not connected to any faces (read-only).
920
954
 
921
- :type: bool"""
955
+ :type: bool"""
956
+
957
+ @property
958
+ def link_edges(self) -> object:
959
+ """Edges connected to this vertex (read-only).
922
960
 
923
- link_edges: object
924
- """Edges connected to this vertex (read-only).
961
+ :type: :class:`BMElemSeq` of :class:`BMEdge`"""
925
962
 
926
- :type: :class:`BMElemSeq` of :class:`BMEdge`"""
963
+ @property
964
+ def link_faces(self) -> object:
965
+ """Faces connected to this vertex (read-only).
927
966
 
928
- link_faces: object
929
- """Faces connected to this vertex (read-only).
967
+ :type: :class:`BMElemSeq` of :class:`BMFace`"""
930
968
 
931
- :type: :class:`BMElemSeq` of :class:`BMFace`"""
969
+ @property
970
+ def link_loops(self) -> object:
971
+ """Loops that use this vertex (read-only).
932
972
 
933
- link_loops: object
934
- """Loops that use this vertex (read-only).
973
+ :type: :class:`BMElemSeq` of :class:`BMLoop`"""
935
974
 
936
- :type: :class:`BMElemSeq` of :class:`BMLoop`"""
975
+ @property
976
+ def normal(self) -> mathutils.Vector:
977
+ """The normal for this vertex as a 3D, wrapped vector.
937
978
 
938
- normal: mathutils.Vector | Sequence[float]
939
- """The normal for this vertex as a 3D, wrapped vector.
979
+ :type: :class:`mathutils.Vector`"""
940
980
 
941
- :type: :class:`mathutils.Vector`"""
981
+ @normal.setter
982
+ def normal(self, value: mathutils.Vector | Sequence[float]) -> None: ...
942
983
 
943
984
  select: bool
944
985
  """Selected state of this element.
@@ -995,10 +1036,11 @@ class BMVert:
995
1036
  def __iter__(self) -> Iterator[object]: ...
996
1037
 
997
1038
  class BMVertSeq:
998
- layers: BMLayerAccessVert
999
- """custom-data layers (read-only).
1039
+ @property
1040
+ def layers(self) -> BMLayerAccessVert:
1041
+ """custom-data layers (read-only).
1000
1042
 
1001
- :type: :class:`BMLayerAccessVert`"""
1043
+ :type: :class:`BMLayerAccessVert`"""
1002
1044
 
1003
1045
  def __contains__(self, key: object, /) -> bool:
1004
1046
  """Return key in self."""
@@ -1043,16 +1085,17 @@ class BMVertSeq:
1043
1085
  class BMesh:
1044
1086
  """The BMesh data structure"""
1045
1087
 
1046
- edges: BMEdgeSeq
1047
- """This meshes edge sequence (read-only).
1088
+ @property
1089
+ def edges(self) -> BMEdgeSeq:
1090
+ """This meshes edge sequence (read-only).
1048
1091
 
1049
- :type: :class:`BMEdgeSeq`"""
1092
+ :type: :class:`BMEdgeSeq`"""
1050
1093
 
1051
- faces: BMFaceSeq
1052
- """This meshes face sequence (read-only).
1053
-
1054
- :type: :class:`BMFaceSeq`"""
1094
+ @property
1095
+ def faces(self) -> BMFaceSeq:
1096
+ """This meshes face sequence (read-only).
1055
1097
 
1098
+ :type: :class:`BMFaceSeq`"""
1056
1099
  is_valid: bool
1057
1100
  """True when this element is valid (hasn't been removed).
1058
1101
 
@@ -1063,15 +1106,15 @@ class BMesh:
1063
1106
 
1064
1107
  :type: bool"""
1065
1108
 
1066
- loops: BMLoopSeq
1067
- """This meshes loops (read-only).
1068
-
1069
- :type: :class:`BMLoopSeq`
1109
+ @property
1110
+ def loops(self) -> BMLoopSeq:
1111
+ """This meshes loops (read-only).
1070
1112
 
1071
- .. note::
1113
+ :type: :class:`BMLoopSeq`
1072
1114
 
1073
- Loops must be accessed via faces, this is only exposed for layer access."""
1115
+ .. note::
1074
1116
 
1117
+ Loops must be accessed via faces, this is only exposed for layer access."""
1075
1118
  select_history: BMEditSelSeq
1076
1119
  """Sequence of selected items (the last is displayed as active).
1077
1120
 
@@ -1086,10 +1129,11 @@ class BMesh:
1086
1129
  """When true, the UV selection has been synchronized. Setting to False means the UV selection will be ignored. While setting to true is supported it is up to the script author to ensure a correct selection state before doing so.
1087
1130
  :type: bool"""
1088
1131
 
1089
- verts: BMVertSeq
1090
- """This meshes vert sequence (read-only).
1132
+ @property
1133
+ def verts(self) -> BMVertSeq:
1134
+ """This meshes vert sequence (read-only).
1091
1135
 
1092
- :type: :class:`BMVertSeq`"""
1136
+ :type: :class:`BMVertSeq`"""
1093
1137
 
1094
1138
  def calc_loop_triangles(self) -> list[tuple[BMLoop, BMLoop, BMLoop]]:
1095
1139
  """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,16 @@
1
+ import bpy.types
2
+
3
+ def clear_by_owner(owner: object) -> None:
4
+ """Clear all subscribers using this owner."""
5
+
6
+ def publish_rna(
7
+ key: bpy.types.Property | bpy.types.Struct | tuple[bpy.types.Struct, str] | object,
8
+ ) -> None: ...
9
+ def subscribe_rna(
10
+ key: bpy.types.Property | bpy.types.Struct | tuple[bpy.types.Struct, str] | object,
11
+ owner: object,
12
+ args: object,
13
+ notify: object,
14
+ *,
15
+ options: set[str] = ...
16
+ ) -> None: ...