fake-bpy-module 20240210__py3-none-any.whl → 20240326__py3-none-any.whl

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.

Potentially problematic release.


This version of fake-bpy-module might be problematic. Click here for more details.

Files changed (309) hide show
  1. addon_utils/__init__.pyi +54 -11
  2. animsys_refactor/__init__.pyi +36 -7
  3. aud/__init__.pyi +307 -321
  4. bgl/__init__.pyi +2926 -865
  5. bl_app_override/__init__.pyi +14 -4
  6. bl_app_override/helpers/__init__.pyi +24 -3
  7. bl_app_template_utils/__init__.pyi +19 -5
  8. bl_console_utils/__init__.pyi +0 -1
  9. bl_console_utils/autocomplete/__init__.pyi +2 -3
  10. bl_console_utils/autocomplete/complete_calltip/__init__.pyi +24 -6
  11. bl_console_utils/autocomplete/complete_import/__init__.pyi +14 -4
  12. bl_console_utils/autocomplete/complete_namespace/__init__.pyi +24 -6
  13. bl_console_utils/autocomplete/intellisense/__init__.pyi +9 -3
  14. bl_i18n_utils/__init__.pyi +2 -3
  15. bl_i18n_utils/bl_extract_messages/__init__.pyi +74 -16
  16. bl_i18n_utils/merge_po/__init__.pyi +4 -2
  17. bl_i18n_utils/settings/__init__.pyi +53 -7
  18. bl_i18n_utils/utils/__init__.pyi +332 -45
  19. bl_i18n_utils/utils_cli/__init__.pyi +29 -7
  20. bl_i18n_utils/utils_languages_menu/__init__.pyi +4 -2
  21. bl_i18n_utils/utils_rtl/__init__.pyi +9 -3
  22. bl_keymap_utils/__init__.pyi +2 -3
  23. bl_keymap_utils/io/__init__.pyi +44 -10
  24. bl_keymap_utils/keymap_from_toolbar/__init__.pyi +4 -2
  25. bl_keymap_utils/keymap_hierarchy/__init__.pyi +4 -2
  26. bl_keymap_utils/platform_helpers/__init__.pyi +9 -3
  27. bl_keymap_utils/versioning/__init__.pyi +4 -2
  28. bl_math/__init__.pyi +21 -22
  29. bl_operators/__init__.pyi +30 -24
  30. bl_operators/add_mesh_torus/__init__.pyi +171 -38
  31. bl_operators/anim/__init__.pyi +1065 -227
  32. bl_operators/assets/__init__.pyi +427 -93
  33. bl_operators/bmesh/__init__.pyi +0 -1
  34. bl_operators/bmesh/find_adjacent/__init__.pyi +44 -10
  35. bl_operators/clip/__init__.pyi +1342 -288
  36. bl_operators/console/__init__.pyi +647 -141
  37. bl_operators/constraint/__init__.pyi +524 -113
  38. bl_operators/file/__init__.pyi +396 -85
  39. bl_operators/freestyle/__init__.pyi +532 -114
  40. bl_operators/geometry_nodes/__init__.pyi +2412 -597
  41. bl_operators/image/__init__.pyi +380 -83
  42. bl_operators/mesh/__init__.pyi +401 -86
  43. bl_operators/node/__init__.pyi +1756 -385
  44. bl_operators/object/__init__.pyi +2022 -553
  45. bl_operators/object_align/__init__.pyi +145 -32
  46. bl_operators/object_quick_effects/__init__.pyi +555 -125
  47. bl_operators/object_randomize_transform/__init__.pyi +136 -33
  48. bl_operators/presets/__init__.pyi +3516 -709
  49. bl_operators/rigidbody/__init__.pyi +401 -86
  50. bl_operators/screen_play_rendered_anim/__init__.pyi +129 -30
  51. bl_operators/sequencer/__init__.pyi +731 -150
  52. bl_operators/spreadsheet/__init__.pyi +145 -31
  53. bl_operators/userpref/__init__.pyi +3416 -825
  54. bl_operators/uvcalc_follow_active/__init__.pyi +149 -33
  55. bl_operators/uvcalc_lightmap/__init__.pyi +187 -35
  56. bl_operators/uvcalc_transform/__init__.pyi +344 -74
  57. bl_operators/vertexpaint_dirt/__init__.pyi +140 -31
  58. bl_operators/view3d/__init__.pyi +697 -147
  59. bl_operators/wm/__init__.pyi +6287 -1534
  60. bl_previews_utils/__init__.pyi +0 -1
  61. bl_previews_utils/bl_previews_render/__init__.pyi +34 -8
  62. bl_rna_utils/__init__.pyi +0 -1
  63. bl_rna_utils/data_path/__init__.pyi +12 -3
  64. bl_text_utils/__init__.pyi +0 -1
  65. bl_text_utils/external_editor/__init__.pyi +4 -2
  66. bl_ui/__init__.pyi +567 -170
  67. bl_ui/anim/__init__.pyi +164 -34
  68. bl_ui/asset_shelf/__init__.pyi +146 -32
  69. bl_ui/generic_ui_list/__init__.pyi +471 -100
  70. bl_ui/node_add_menu/__init__.pyi +196 -41
  71. bl_ui/node_add_menu_compositor/__init__.pyi +3017 -622
  72. bl_ui/node_add_menu_geometry/__init__.pyi +8075 -1592
  73. bl_ui/node_add_menu_shader/__init__.pyi +1709 -349
  74. bl_ui/node_add_menu_texture/__init__.pyi +1502 -306
  75. bl_ui/properties_animviz/__init__.pyi +32 -3
  76. bl_ui/properties_collection/__init__.pyi +787 -180
  77. bl_ui/properties_constraint/__init__.pyi +28635 -5524
  78. bl_ui/properties_data_armature/__init__.pyi +1905 -449
  79. bl_ui/properties_data_bone/__init__.pyi +1560 -337
  80. bl_ui/properties_data_camera/__init__.pyi +2269 -495
  81. bl_ui/properties_data_curve/__init__.pyi +2362 -535
  82. bl_ui/properties_data_curves/__init__.pyi +951 -204
  83. bl_ui/properties_data_empty/__init__.pyi +317 -70
  84. bl_ui/properties_data_gpencil/__init__.pyi +2924 -735
  85. bl_ui/properties_data_grease_pencil/__init__.pyi +1631 -189
  86. bl_ui/properties_data_lattice/__init__.pyi +472 -105
  87. bl_ui/properties_data_light/__init__.pyi +1570 -338
  88. bl_ui/properties_data_lightprobe/__init__.pyi +938 -209
  89. bl_ui/properties_data_mesh/__init__.pyi +3205 -768
  90. bl_ui/properties_data_metaball/__init__.pyi +774 -171
  91. bl_ui/properties_data_modifier/__init__.pyi +1554 -329
  92. bl_ui/properties_data_pointcloud/__init__.pyi +821 -195
  93. bl_ui/properties_data_shaderfx/__init__.pyi +154 -35
  94. bl_ui/properties_data_speaker/__init__.pyi +782 -169
  95. bl_ui/properties_data_volume/__init__.pyi +1243 -282
  96. bl_ui/properties_freestyle/__init__.pyi +4071 -1031
  97. bl_ui/properties_grease_pencil_common/__init__.pyi +2399 -484
  98. bl_ui/properties_mask_common/__init__.pyi +1256 -250
  99. bl_ui/properties_material/__init__.pyi +2351 -543
  100. bl_ui/properties_material_gpencil/__init__.pyi +1590 -366
  101. bl_ui/properties_object/__init__.pyi +2179 -513
  102. bl_ui/properties_output/__init__.pyi +2956 -706
  103. bl_ui/properties_paint_common/__init__.pyi +947 -141
  104. bl_ui/properties_particle/__init__.pyi +8322 -1971
  105. bl_ui/properties_physics_cloth/__init__.pyi +2254 -509
  106. bl_ui/properties_physics_common/__init__.pyi +200 -45
  107. bl_ui/properties_physics_dynamicpaint/__init__.pyi +4454 -966
  108. bl_ui/properties_physics_field/__init__.pyi +1695 -365
  109. bl_ui/properties_physics_fluid/__init__.pyi +6127 -1281
  110. bl_ui/properties_physics_geometry_nodes/__init__.pyi +157 -33
  111. bl_ui/properties_physics_rigidbody/__init__.pyi +1254 -279
  112. bl_ui/properties_physics_rigidbody_constraint/__init__.pyi +2053 -484
  113. bl_ui/properties_physics_softbody/__init__.pyi +2394 -543
  114. bl_ui/properties_render/__init__.pyi +8312 -1934
  115. bl_ui/properties_scene/__init__.pyi +2211 -540
  116. bl_ui/properties_texture/__init__.pyi +4185 -1014
  117. bl_ui/properties_view_layer/__init__.pyi +2803 -665
  118. bl_ui/properties_workspace/__init__.pyi +626 -149
  119. bl_ui/properties_world/__init__.pyi +1092 -235
  120. bl_ui/space_clip/__init__.pyi +11475 -2806
  121. bl_ui/space_console/__init__.pyi +967 -203
  122. bl_ui/space_dopesheet/__init__.pyi +4260 -967
  123. bl_ui/space_filebrowser/__init__.pyi +4852 -1188
  124. bl_ui/space_graph/__init__.pyi +3251 -703
  125. bl_ui/space_image/__init__.pyi +12218 -2968
  126. bl_ui/space_info/__init__.pyi +964 -201
  127. bl_ui/space_nla/__init__.pyi +2756 -585
  128. bl_ui/space_node/__init__.pyi +5661 -1266
  129. bl_ui/space_outliner/__init__.pyi +2294 -479
  130. bl_ui/space_properties/__init__.pyi +417 -93
  131. bl_ui/space_sequencer/__init__.pyi +12436 -3010
  132. bl_ui/space_spreadsheet/__init__.pyi +184 -37
  133. bl_ui/space_statusbar/__init__.pyi +135 -31
  134. bl_ui/space_text/__init__.pyi +2556 -543
  135. bl_ui/space_time/__init__.pyi +1151 -244
  136. bl_ui/space_toolsystem_common/__init__.pyi +368 -67
  137. bl_ui/space_toolsystem_toolbar/__init__.pyi +1378 -229
  138. bl_ui/space_topbar/__init__.pyi +4214 -888
  139. bl_ui/space_userpref/__init__.pyi +13920 -3468
  140. bl_ui/space_view3d/__init__.pyi +42751 -9613
  141. bl_ui/space_view3d_toolbar/__init__.pyi +16379 -3860
  142. bl_ui/utils/__init__.pyi +42 -5
  143. bl_ui_utils/__init__.pyi +0 -1
  144. bl_ui_utils/bug_report_url/__init__.pyi +4 -2
  145. bl_ui_utils/layout/__init__.pyi +4 -2
  146. blend_render_info/__init__.pyi +13 -4
  147. blf/__init__.pyi +15 -18
  148. bmesh/__init__.pyi +18 -18
  149. bmesh/geometry/__init__.pyi +5 -6
  150. bmesh/ops/__init__.pyi +1337 -1158
  151. bmesh/types/__init__.pyi +464 -374
  152. bmesh/utils/__init__.pyi +64 -70
  153. bpy/__init__.pyi +6 -7
  154. bpy/app/__init__.pyi +36 -38
  155. bpy/app/handlers/__init__.pyi +37 -38
  156. bpy/app/icons/__init__.pyi +8 -11
  157. bpy/app/timers/__init__.pyi +18 -17
  158. bpy/app/translations/__init__.pyi +32 -30
  159. bpy/msgbus/__init__.pyi +25 -20
  160. bpy/ops/__init__.pyi +63 -64
  161. bpy/ops/action/__init__.pyi +408 -436
  162. bpy/ops/anim/__init__.pyi +459 -577
  163. bpy/ops/armature/__init__.pyi +396 -498
  164. bpy/ops/asset/__init__.pyi +187 -213
  165. bpy/ops/boid/__init__.pyi +50 -68
  166. bpy/ops/brush/__init__.pyi +72 -97
  167. bpy/ops/buttons/__init__.pyi +202 -193
  168. bpy/ops/cachefile/__init__.pyi +198 -188
  169. bpy/ops/camera/__init__.pyi +24 -31
  170. bpy/ops/clip/__init__.pyi +1021 -1082
  171. bpy/ops/cloth/__init__.pyi +11 -15
  172. bpy/ops/collection/__init__.pyi +36 -51
  173. bpy/ops/console/__init__.pyi +155 -209
  174. bpy/ops/constraint/__init__.pyi +286 -254
  175. bpy/ops/curve/__init__.pyi +597 -659
  176. bpy/ops/curves/__init__.pyi +191 -225
  177. bpy/ops/cycles/__init__.pyi +21 -30
  178. bpy/ops/dpaint/__init__.pyi +34 -47
  179. bpy/ops/ed/__init__.pyi +160 -176
  180. bpy/ops/export_anim/__init__.pyi +51 -34
  181. bpy/ops/export_mesh/__init__.pyi +47 -45
  182. bpy/ops/export_scene/__init__.pyi +659 -504
  183. bpy/ops/file/__init__.pyi +469 -474
  184. bpy/ops/fluid/__init__.pyi +89 -119
  185. bpy/ops/font/__init__.pyi +325 -361
  186. bpy/ops/geometry/__init__.pyi +86 -114
  187. bpy/ops/gizmogroup/__init__.pyi +22 -28
  188. bpy/ops/gpencil/__init__.pyi +1900 -1976
  189. bpy/ops/graph/__init__.pyi +875 -894
  190. bpy/ops/grease_pencil/__init__.pyi +572 -508
  191. bpy/ops/image/__init__.pyi +805 -855
  192. bpy/ops/import_anim/__init__.pyi +66 -46
  193. bpy/ops/import_curve/__init__.pyi +7 -11
  194. bpy/ops/import_mesh/__init__.pyi +19 -25
  195. bpy/ops/import_scene/__init__.pyi +164 -147
  196. bpy/ops/info/__init__.pyi +88 -85
  197. bpy/ops/lattice/__init__.pyi +86 -90
  198. bpy/ops/marker/__init__.pyi +135 -146
  199. bpy/ops/mask/__init__.pyi +372 -436
  200. bpy/ops/material/__init__.pyi +18 -25
  201. bpy/ops/mball/__init__.pyi +93 -99
  202. bpy/ops/mesh/__init__.pyi +2525 -2664
  203. bpy/ops/nla/__init__.pyi +398 -455
  204. bpy/ops/node/__init__.pyi +1015 -1207
  205. bpy/ops/object/__init__.pyi +3423 -3390
  206. bpy/ops/outliner/__init__.pyi +667 -685
  207. bpy/ops/paint/__init__.pyi +719 -672
  208. bpy/ops/paintcurve/__init__.pyi +64 -85
  209. bpy/ops/palette/__init__.pyi +48 -67
  210. bpy/ops/particle/__init__.pyi +323 -367
  211. bpy/ops/pose/__init__.pyi +569 -474
  212. bpy/ops/poselib/__init__.pyi +77 -100
  213. bpy/ops/preferences/__init__.pyi +460 -512
  214. bpy/ops/ptcache/__init__.pyi +46 -63
  215. bpy/ops/render/__init__.pyi +121 -155
  216. bpy/ops/rigidbody/__init__.pyi +148 -143
  217. bpy/ops/scene/__init__.pyi +336 -380
  218. bpy/ops/screen/__init__.pyi +454 -530
  219. bpy/ops/script/__init__.pyi +19 -28
  220. bpy/ops/sculpt/__init__.pyi +734 -587
  221. bpy/ops/sculpt_curves/__init__.pyi +51 -56
  222. bpy/ops/sequencer/__init__.pyi +1617 -1500
  223. bpy/ops/sound/__init__.pyi +392 -315
  224. bpy/ops/spreadsheet/__init__.pyi +31 -42
  225. bpy/ops/surface/__init__.pyi +198 -163
  226. bpy/ops/text/__init__.pyi +479 -545
  227. bpy/ops/text_editor/__init__.pyi +11 -15
  228. bpy/ops/texture/__init__.pyi +26 -36
  229. bpy/ops/transform/__init__.pyi +825 -941
  230. bpy/ops/ui/__init__.pyi +246 -295
  231. bpy/ops/uilist/__init__.pyi +34 -38
  232. bpy/ops/uv/__init__.pyi +912 -824
  233. bpy/ops/view2d/__init__.pyi +157 -197
  234. bpy/ops/view3d/__init__.pyi +777 -878
  235. bpy/ops/wm/__init__.pyi +4102 -3595
  236. bpy/ops/workspace/__init__.pyi +42 -58
  237. bpy/ops/world/__init__.pyi +6 -9
  238. bpy/path/__init__.pyi +166 -109
  239. bpy/props/__init__.pyi +478 -395
  240. bpy/types/__init__.pyi +87194 -81467
  241. bpy/utils/__init__.pyi +325 -169
  242. bpy/utils/previews/__init__.pyi +108 -21
  243. bpy/utils/units/__init__.pyi +37 -39
  244. bpy_extras/__init__.pyi +4 -9
  245. bpy_extras/anim_utils/__init__.pyi +25 -55
  246. bpy_extras/asset_utils/__init__.pyi +3 -13
  247. bpy_extras/id_map_utils/__init__.pyi +1 -4
  248. bpy_extras/image_utils/__init__.pyi +33 -23
  249. bpy_extras/io_utils/__init__.pyi +116 -66
  250. bpy_extras/keyconfig_utils/__init__.pyi +5 -3
  251. bpy_extras/mesh_utils/__init__.pyi +42 -34
  252. bpy_extras/node_utils/__init__.pyi +4 -4
  253. bpy_extras/object_utils/__init__.pyi +58 -43
  254. bpy_extras/view3d_utils/__init__.pyi +64 -63
  255. bpy_restrict_state/__init__.pyi +14 -2
  256. bpy_types/__init__.pyi +3873 -998
  257. console_python/__init__.pyi +41 -8
  258. console_shell/__init__.pyi +24 -6
  259. {fake_bpy_module-20240210.dist-info → fake_bpy_module-20240326.dist-info}/METADATA +1 -1
  260. fake_bpy_module-20240326.dist-info/RECORD +343 -0
  261. {fake_bpy_module-20240210.dist-info → fake_bpy_module-20240326.dist-info}/WHEEL +1 -1
  262. freestyle/__init__.pyi +4 -5
  263. freestyle/chainingiterators/__init__.pyi +229 -73
  264. freestyle/functions/__init__.pyi +624 -402
  265. freestyle/predicates/__init__.pyi +381 -169
  266. freestyle/shaders/__init__.pyi +424 -155
  267. freestyle/types/__init__.pyi +1572 -726
  268. freestyle/utils/ContextFunctions/__init__.pyi +54 -43
  269. freestyle/utils/__init__.pyi +67 -31
  270. gpu/__init__.pyi +3 -4
  271. gpu/capabilities/__init__.pyi +57 -37
  272. gpu/matrix/__init__.pyi +14 -17
  273. gpu/platform/__init__.pyi +5 -6
  274. gpu/select/__init__.pyi +2 -5
  275. gpu/shader/__init__.pyi +14 -12
  276. gpu/state/__init__.pyi +48 -62
  277. gpu/texture/__init__.pyi +7 -7
  278. gpu/types/__init__.pyi +670 -229
  279. gpu_extras/__init__.pyi +1 -2
  280. gpu_extras/batch/__init__.pyi +27 -6
  281. gpu_extras/presets/__init__.pyi +67 -27
  282. graphviz_export/__init__.pyi +9 -3
  283. idprop/__init__.pyi +0 -1
  284. idprop/types/__init__.pyi +42 -13
  285. imbuf/__init__.pyi +6 -10
  286. imbuf/types/__init__.pyi +8 -16
  287. keyingsets_builtins/__init__.pyi +3149 -702
  288. keyingsets_utils/__init__.pyi +69 -15
  289. mathutils/__init__.pyi +951 -876
  290. mathutils/bvhtree/__init__.pyi +47 -48
  291. mathutils/geometry/__init__.pyi +237 -242
  292. mathutils/interpolate/__init__.pyi +3 -6
  293. mathutils/kdtree/__init__.pyi +23 -26
  294. mathutils/noise/__init__.pyi +50 -51
  295. nodeitems_builtins/__init__.pyi +50 -11
  296. nodeitems_utils/__init__.pyi +58 -11
  297. rna_info/__init__.pyi +230 -27
  298. rna_keymap_ui/__init__.pyi +29 -7
  299. rna_prop_ui/__init__.pyi +69 -13
  300. rna_xml/__init__.pyi +29 -7
  301. sys_info/__init__.pyi +4 -2
  302. bpy_extras/bmesh_utils/__init__.pyi +0 -7
  303. bpy_extras/extensions/__init__.pyi +0 -5
  304. bpy_extras/extensions/junction_module/__init__.pyi +0 -13
  305. bpy_extras/node_shader_utils/__init__.pyi +0 -132
  306. bpy_extras/wm_utils/__init__.pyi +0 -5
  307. bpy_extras/wm_utils/progress_report/__init__.pyi +0 -30
  308. fake_bpy_module-20240210.dist-info/RECORD +0 -349
  309. {fake_bpy_module-20240210.dist-info → fake_bpy_module-20240326.dist-info}/top_level.txt +0 -0
bmesh/utils/__init__.pyi CHANGED
@@ -1,199 +1,193 @@
1
- import sys
2
1
  import typing
3
2
  import bmesh.types
4
3
 
5
4
  GenericType = typing.TypeVar("GenericType")
6
5
 
7
- def edge_rotate(edge: "bmesh.types.BMEdge", ccw: bool = False) -> "bmesh.types.BMEdge":
8
- """Rotate the edge and return the newly created edge. If rotating the edge fails, None will be returned.
6
+ def edge_rotate(edge: bmesh.types.BMEdge, ccw: bool = False) -> bmesh.types.BMEdge:
7
+ """Rotate the edge and return the newly created edge.
8
+ If rotating the edge fails, None will be returned.
9
9
 
10
- :param edge: The edge to rotate.
11
- :type edge: 'bmesh.types.BMEdge'
12
- :param ccw: When True the edge will be rotated counter clockwise.
13
- :type ccw: bool
14
- :rtype: 'bmesh.types.BMEdge'
15
- :return: The newly rotated edge.
10
+ :param edge: The edge to rotate.
11
+ :type edge: bmesh.types.BMEdge
12
+ :param ccw: When True the edge will be rotated counter clockwise.
13
+ :type ccw: bool
14
+ :return: The newly rotated edge.
15
+ :rtype: bmesh.types.BMEdge
16
16
  """
17
17
 
18
18
  ...
19
19
 
20
20
  def edge_split(
21
- edge: "bmesh.types.BMEdge", vert: "bmesh.types.BMVert", fac: float
21
+ edge: bmesh.types.BMEdge, vert: bmesh.types.BMVert, fac: float
22
22
  ) -> typing.Tuple:
23
23
  """Split an edge, return the newly created data.
24
24
 
25
25
  :param edge: The edge to split.
26
- :type edge: 'bmesh.types.BMEdge'
26
+ :type edge: bmesh.types.BMEdge
27
27
  :param vert: One of the verts on the edge, defines the split direction.
28
- :type vert: 'bmesh.types.BMVert'
28
+ :type vert: bmesh.types.BMVert
29
29
  :param fac: The point on the edge where the new vert will be created [0 - 1].
30
30
  :type fac: float
31
- :rtype: typing.Tuple
32
31
  :return: The newly created (edge, vert) pair.
32
+ :rtype: typing.Tuple
33
33
  """
34
34
 
35
35
  ...
36
36
 
37
37
  def face_flip(faces):
38
- """Flip the faces direction.
39
-
40
- :param face: Face to flip.
41
- :type face: 'bmesh.types.BMFace'
42
- """
38
+ """Flip the faces direction."""
43
39
 
44
40
  ...
45
41
 
46
- def face_join(faces: "bmesh.types.BMFace", remove: bool = True) -> "bmesh.types.BMFace":
42
+ def face_join(faces: bmesh.types.BMFace, remove: bool = True) -> bmesh.types.BMFace:
47
43
  """Joins a sequence of faces.
48
44
 
49
45
  :param faces: Sequence of faces.
50
- :type faces: 'bmesh.types.BMFace'
46
+ :type faces: bmesh.types.BMFace
51
47
  :param remove: Remove the edges and vertices between the faces.
52
48
  :type remove: bool
53
- :rtype: 'bmesh.types.BMFace'
54
49
  :return: The newly created face or None on failure.
50
+ :rtype: bmesh.types.BMFace
55
51
  """
56
52
 
57
53
  ...
58
54
 
59
55
  def face_split(
60
- face: "bmesh.types.BMFace",
61
- vert_a: "bmesh.types.BMVert",
62
- vert_b: "bmesh.types.BMVert",
56
+ face: bmesh.types.BMFace,
57
+ vert_a: bmesh.types.BMVert,
58
+ vert_b: bmesh.types.BMVert,
63
59
  coords: typing.List[float] = (),
64
60
  use_exist: bool = True,
65
- example: "bmesh.types.BMEdge" = None,
66
- ) -> typing.Tuple["bmesh.types.BMFace", "bmesh.types.BMLoop"]:
61
+ example: bmesh.types.BMEdge = None,
62
+ ) -> typing.Tuple[bmesh.types.BMFace, bmesh.types.BMLoop]:
67
63
  """Face split with optional intermediate points.
68
64
 
69
65
  :param face: The face to cut.
70
- :type face: 'bmesh.types.BMFace'
66
+ :type face: bmesh.types.BMFace
71
67
  :param vert_a: First vertex to cut in the face (face must contain the vert).
72
- :type vert_a: 'bmesh.types.BMVert'
68
+ :type vert_a: bmesh.types.BMVert
73
69
  :param vert_b: Second vertex to cut in the face (face must contain the vert).
74
- :type vert_b: 'bmesh.types.BMVert'
75
- :param coords: Optional argument to define points in between *vert_a* and *vert_b*.
70
+ :type vert_b: bmesh.types.BMVert
71
+ :param coords: Optional argument to define points in between vert_a and vert_b.
76
72
  :type coords: typing.List[float]
77
- :param use_exist: .Use an existing edge if it exists (Only used when *coords* argument is empty or omitted)
73
+ :param use_exist: .Use an existing edge if it exists (Only used when coords argument is empty or omitted)
78
74
  :type use_exist: bool
79
75
  :param example: Newly created edge will copy settings from this one.
80
- :type example: 'bmesh.types.BMEdge'
81
- :rtype: typing.Tuple['bmesh.types.BMFace', 'bmesh.types.BMLoop']
76
+ :type example: bmesh.types.BMEdge
82
77
  :return: The newly created face or None on failure.
78
+ :rtype: typing.Tuple[bmesh.types.BMFace, bmesh.types.BMLoop]
83
79
  """
84
80
 
85
81
  ...
86
82
 
87
83
  def face_split_edgenet(
88
- face: "bmesh.types.BMFace", edgenet: "bmesh.types.BMEdge"
89
- ) -> typing.Tuple:
84
+ face: typing.Union[bmesh.types.BMFace, bmesh.types.BMFace],
85
+ edgenet: bmesh.types.BMEdge,
86
+ ):
90
87
  """Splits a face into any number of regions defined by an edgenet.
91
88
 
92
- :param face: The face to split. The face to split.
93
- :type face: 'bmesh.types.BMFace'
94
- :param face: The face to split. The face to split.
95
- :type face: 'bmesh.types.BMFace'
89
+ :param face: The face to split.The face to split.
90
+ :type face: typing.Union[bmesh.types.BMFace, bmesh.types.BMFace]
96
91
  :param edgenet: Sequence of edges.
97
- :type edgenet: 'bmesh.types.BMEdge'
98
- :rtype: typing.Tuple
92
+ :type edgenet: bmesh.types.BMEdge
99
93
  :return: The newly created faces.
100
94
  """
101
95
 
102
96
  ...
103
97
 
104
98
  def face_vert_separate(
105
- face: "bmesh.types.BMFace", vert: "bmesh.types.BMVert"
106
- ) -> "bmesh.types.BMVert":
99
+ face: bmesh.types.BMFace, vert: bmesh.types.BMVert
100
+ ) -> bmesh.types.BMVert:
107
101
  """Rip a vertex in a face away and add a new vertex.
108
102
 
109
103
  :param face: The face to separate.
110
- :type face: 'bmesh.types.BMFace'
104
+ :type face: bmesh.types.BMFace
111
105
  :param vert: A vertex in the face to separate.
112
- :type vert: 'bmesh.types.BMVert'
113
- :rtype: 'bmesh.types.BMVert'
106
+ :type vert: bmesh.types.BMVert
114
107
  :return: The newly created vertex or None on failure.
108
+ :rtype: bmesh.types.BMVert
115
109
  """
116
110
 
117
111
  ...
118
112
 
119
- def loop_separate(loop: "bmesh.types.BMLoop") -> "bmesh.types.BMVert":
113
+ def loop_separate(loop: bmesh.types.BMLoop) -> bmesh.types.BMVert:
120
114
  """Rip a vertex in a face away and add a new vertex.
121
115
 
122
116
  :param loop: The loop to separate.
123
- :type loop: 'bmesh.types.BMLoop'
124
- :rtype: 'bmesh.types.BMVert'
117
+ :type loop: bmesh.types.BMLoop
125
118
  :return: The newly created vertex or None on failure.
119
+ :rtype: bmesh.types.BMVert
126
120
  """
127
121
 
128
122
  ...
129
123
 
130
124
  def vert_collapse_edge(
131
- vert: "bmesh.types.BMVert", edge: "bmesh.types.BMEdge"
132
- ) -> "bmesh.types.BMEdge":
125
+ vert: bmesh.types.BMVert, edge: bmesh.types.BMEdge
126
+ ) -> bmesh.types.BMEdge:
133
127
  """Collapse a vertex into an edge.
134
128
 
135
129
  :param vert: The vert that will be collapsed.
136
- :type vert: 'bmesh.types.BMVert'
130
+ :type vert: bmesh.types.BMVert
137
131
  :param edge: The edge to collapse into.
138
- :type edge: 'bmesh.types.BMEdge'
139
- :rtype: 'bmesh.types.BMEdge'
132
+ :type edge: bmesh.types.BMEdge
140
133
  :return: The resulting edge from the collapse operation.
134
+ :rtype: bmesh.types.BMEdge
141
135
  """
142
136
 
143
137
  ...
144
138
 
145
139
  def vert_collapse_faces(
146
- vert: "bmesh.types.BMVert", edge: "bmesh.types.BMEdge", fac: float, join_faces: bool
147
- ) -> "bmesh.types.BMEdge":
140
+ vert: bmesh.types.BMVert, edge: bmesh.types.BMEdge, fac: float, join_faces: bool
141
+ ) -> bmesh.types.BMEdge:
148
142
  """Collapses a vertex that has only two manifold edges onto a vertex it shares an edge with.
149
143
 
150
144
  :param vert: The vert that will be collapsed.
151
- :type vert: 'bmesh.types.BMVert'
145
+ :type vert: bmesh.types.BMVert
152
146
  :param edge: The edge to collapse into.
153
- :type edge: 'bmesh.types.BMEdge'
147
+ :type edge: bmesh.types.BMEdge
154
148
  :param fac: The factor to use when merging customdata [0 - 1].
155
149
  :type fac: float
156
150
  :param join_faces: When true the faces around the vertex will be joined otherwise collapse the vertex by merging the 2 edges this vertex connects to into one.
157
151
  :type join_faces: bool
158
- :rtype: 'bmesh.types.BMEdge'
159
152
  :return: The resulting edge from the collapse operation.
153
+ :rtype: bmesh.types.BMEdge
160
154
  """
161
155
 
162
156
  ...
163
157
 
164
- def vert_dissolve(vert: "bmesh.types.BMVert") -> bool:
158
+ def vert_dissolve(vert: bmesh.types.BMVert) -> bool:
165
159
  """Dissolve this vertex (will be removed).
166
160
 
167
161
  :param vert: The vert to be dissolved.
168
- :type vert: 'bmesh.types.BMVert'
169
- :rtype: bool
162
+ :type vert: bmesh.types.BMVert
170
163
  :return: True when the vertex dissolve is successful.
164
+ :rtype: bool
171
165
  """
172
166
 
173
167
  ...
174
168
 
175
169
  def vert_separate(
176
- vert: "bmesh.types.BMVert", edges: "bmesh.types.BMEdge"
177
- ) -> typing.Tuple["bmesh.types.BMVert"]:
170
+ vert: bmesh.types.BMVert, edges: bmesh.types.BMEdge
171
+ ) -> typing.Tuple[bmesh.types.BMVert]:
178
172
  """Separate this vertex at every edge.
179
173
 
180
174
  :param vert: The vert to be separated.
181
- :type vert: 'bmesh.types.BMVert'
175
+ :type vert: bmesh.types.BMVert
182
176
  :param edges: The edges to separated.
183
- :type edges: 'bmesh.types.BMEdge'
184
- :rtype: typing.Tuple['bmesh.types.BMVert']
177
+ :type edges: bmesh.types.BMEdge
185
178
  :return: The newly separated verts (including the vertex passed).
179
+ :rtype: typing.Tuple[bmesh.types.BMVert]
186
180
  """
187
181
 
188
182
  ...
189
183
 
190
- def vert_splice(vert: "bmesh.types.BMVert", vert_target: "bmesh.types.BMVert"):
184
+ def vert_splice(vert: bmesh.types.BMVert, vert_target: bmesh.types.BMVert):
191
185
  """Splice vert into vert_target.
192
186
 
193
187
  :param vert: The vertex to be removed.
194
- :type vert: 'bmesh.types.BMVert'
188
+ :type vert: bmesh.types.BMVert
195
189
  :param vert_target: The vertex to use.
196
- :type vert_target: 'bmesh.types.BMVert'
190
+ :type vert_target: bmesh.types.BMVert
197
191
  """
198
192
 
199
193
  ...
bpy/__init__.pyi CHANGED
@@ -1,18 +1,17 @@
1
- import sys
2
1
  import typing
3
2
  import bpy.types
4
3
 
5
- from . import types
6
- from . import ops
7
- from . import utils
8
4
  from . import app
9
- from . import props
10
5
  from . import msgbus
6
+ from . import ops
11
7
  from . import path
8
+ from . import props
9
+ from . import types
10
+ from . import utils
12
11
 
13
12
  GenericType = typing.TypeVar("GenericType")
14
- context: "bpy.types.Context"
13
+ context: bpy.types.Context
15
14
 
16
- data: "bpy.types.BlendData"
15
+ data: bpy.types.BlendData
17
16
  """ Access to Blender's internal data
18
17
  """
bpy/app/__init__.pyi CHANGED
@@ -1,46 +1,44 @@
1
- import sys
2
1
  import typing
3
- from . import timers
4
- from . import translations
5
2
  from . import handlers
6
3
  from . import icons
4
+ from . import timers
5
+ from . import translations
7
6
 
8
7
  GenericType = typing.TypeVar("GenericType")
9
8
 
10
- def help_text(all: typing.Optional[bool] = False):
9
+ def help_text(all: bool = False):
11
10
  """Return the help text as a string.
12
11
 
13
12
  :param all: Return all arguments, even those which aren't available for the current platform.
14
- :type all: typing.Optional[bool]
13
+ :type all: bool
15
14
  """
16
15
 
17
16
  ...
18
17
 
19
- def is_job_running(job_type: typing.Optional[str]) -> typing.Any:
18
+ def is_job_running(job_type: str):
20
19
  """Check whether a job of the given type is running.
21
20
 
22
- :param job_type: `rna_enum_wm_job_type_items`.
23
- :type job_type: typing.Optional[str]
24
- :rtype: typing.Any
21
+ :param job_type: job type in `rna_enum_wm_job_type_items`.
22
+ :type job_type: str
25
23
  :return: Whether a job of the given type is currently running.
26
24
  """
27
25
 
28
26
  ...
29
27
 
30
28
  alembic: typing.Any
31
- """ Constant value bpy.app.alembic(supported=True, version=(1, 8, 3), version_string=' 1, 8, 3')
29
+ """ Constant value bpy.app.alembic(supported=True, version=(1, 8, 3), version_string=' 1, 8, 3')
32
30
  """
33
31
 
34
32
  autoexec_fail: typing.Any
35
- """ Undocumented, consider `contributing <https://developer.blender.org/>`__.
33
+ """ Undocumented, consider contributing.
36
34
  """
37
35
 
38
36
  autoexec_fail_message: typing.Any
39
- """ Undocumented, consider `contributing <https://developer.blender.org/>`__.
37
+ """ Undocumented, consider contributing.
40
38
  """
41
39
 
42
40
  autoexec_fail_quiet: typing.Any
43
- """ Undocumented, consider `contributing <https://developer.blender.org/>`__.
41
+ """ Undocumented, consider contributing.
44
42
  """
45
43
 
46
44
  background: typing.Any
@@ -88,7 +86,7 @@ build_linkflags: typing.Any
88
86
  """
89
87
 
90
88
  build_options: typing.Any
91
- """ Constant value bpy.app.build_options(bullet=True, codec_avi=True, codec_ffmpeg=True, codec_sndfile=True, compositor_cpu=True, cycles=True, cycles_osl=True, freestyle=True, image_cineon=True, image_dds=True, image_hdr=True, image_openexr=True, image_openjpeg=True, image_tiff=True, input_ndof=True, audaspace=True, international=True, openal=True, opensubdiv=True, sdl=True, sdl_dynload=False, coreaudio=False, jack=False, pulseaudio=False, wasapi=False, libmv=True, mod_oceansim=True, mod_remesh=True, collada=True, io_wavefront_obj=True, io_ply=True, io_stl=True, io_gpencil=True, opencolorio=True, openmp=True, openvdb=True, alembic=True, usd=True, fluid=True, xr_openxr=True, potrace=True, pugixml=True, haru=True)
89
+ """ Constant value bpy.app.build_options(bullet=True, codec_avi=False, codec_ffmpeg=True, codec_sndfile=True, compositor_cpu=True, cycles=True, cycles_osl=True, freestyle=True, image_cineon=True, image_dds=True, image_hdr=True, image_openexr=True, image_openjpeg=True, image_tiff=True, input_ndof=True, audaspace=True, international=True, openal=True, opensubdiv=True, sdl=True, sdl_dynload=False, coreaudio=False, jack=False, pulseaudio=False, wasapi=False, libmv=True, mod_oceansim=True, mod_remesh=True, collada=True, io_wavefront_obj=True, io_ply=True, io_stl=True, io_gpencil=True, opencolorio=True, openmp=True, openvdb=True, alembic=True, usd=True, fluid=True, xr_openxr=True, potrace=True, pugixml=True, haru=True)
92
90
  """
93
91
 
94
92
  build_platform: typing.Any
@@ -108,59 +106,59 @@ build_type: typing.Any
108
106
  """
109
107
 
110
108
  debug: typing.Any
111
- """ Boolean, for debug info (started with ``--debug`` / ``--debug-*`` matching this attribute name)
109
+ """ Boolean, for debug info (started with --debug / --debug-* matching this attribute name)
112
110
  """
113
111
 
114
112
  debug_depsgraph: typing.Any
115
- """ Boolean, for debug info (started with ``--debug`` / ``--debug-*`` matching this attribute name)
113
+ """ Boolean, for debug info (started with --debug / --debug-* matching this attribute name)
116
114
  """
117
115
 
118
116
  debug_depsgraph_build: typing.Any
119
- """ Boolean, for debug info (started with ``--debug`` / ``--debug-*`` matching this attribute name)
117
+ """ Boolean, for debug info (started with --debug / --debug-* matching this attribute name)
120
118
  """
121
119
 
122
120
  debug_depsgraph_eval: typing.Any
123
- """ Boolean, for debug info (started with ``--debug`` / ``--debug-*`` matching this attribute name)
121
+ """ Boolean, for debug info (started with --debug / --debug-* matching this attribute name)
124
122
  """
125
123
 
126
124
  debug_depsgraph_pretty: typing.Any
127
- """ Boolean, for debug info (started with ``--debug`` / ``--debug-*`` matching this attribute name)
125
+ """ Boolean, for debug info (started with --debug / --debug-* matching this attribute name)
128
126
  """
129
127
 
130
128
  debug_depsgraph_tag: typing.Any
131
- """ Boolean, for debug info (started with ``--debug`` / ``--debug-*`` matching this attribute name)
129
+ """ Boolean, for debug info (started with --debug / --debug-* matching this attribute name)
132
130
  """
133
131
 
134
132
  debug_depsgraph_time: typing.Any
135
- """ Boolean, for debug info (started with ``--debug`` / ``--debug-*`` matching this attribute name)
133
+ """ Boolean, for debug info (started with --debug / --debug-* matching this attribute name)
136
134
  """
137
135
 
138
136
  debug_events: typing.Any
139
- """ Boolean, for debug info (started with ``--debug`` / ``--debug-*`` matching this attribute name)
137
+ """ Boolean, for debug info (started with --debug / --debug-* matching this attribute name)
140
138
  """
141
139
 
142
140
  debug_ffmpeg: typing.Any
143
- """ Boolean, for debug info (started with ``--debug`` / ``--debug-*`` matching this attribute name)
141
+ """ Boolean, for debug info (started with --debug / --debug-* matching this attribute name)
144
142
  """
145
143
 
146
144
  debug_freestyle: typing.Any
147
- """ Boolean, for debug info (started with ``--debug`` / ``--debug-*`` matching this attribute name)
145
+ """ Boolean, for debug info (started with --debug / --debug-* matching this attribute name)
148
146
  """
149
147
 
150
148
  debug_handlers: typing.Any
151
- """ Boolean, for debug info (started with ``--debug`` / ``--debug-*`` matching this attribute name)
149
+ """ Boolean, for debug info (started with --debug / --debug-* matching this attribute name)
152
150
  """
153
151
 
154
152
  debug_io: typing.Any
155
- """ Boolean, for debug info (started with ``--debug`` / ``--debug-*`` matching this attribute name)
153
+ """ Boolean, for debug info (started with --debug / --debug-* matching this attribute name)
156
154
  """
157
155
 
158
156
  debug_python: typing.Any
159
- """ Boolean, for debug info (started with ``--debug`` / ``--debug-*`` matching this attribute name)
157
+ """ Boolean, for debug info (started with --debug / --debug-* matching this attribute name)
160
158
  """
161
159
 
162
160
  debug_simdata: typing.Any
163
- """ Boolean, for debug info (started with ``--debug`` / ``--debug-*`` matching this attribute name)
161
+ """ Boolean, for debug info (started with --debug / --debug-* matching this attribute name)
164
162
  """
165
163
 
166
164
  debug_value: typing.Any
@@ -168,11 +166,11 @@ debug_value: typing.Any
168
166
  """
169
167
 
170
168
  debug_wm: typing.Any
171
- """ Boolean, for debug info (started with ``--debug`` / ``--debug-*`` matching this attribute name)
169
+ """ Boolean, for debug info (started with --debug / --debug-* matching this attribute name)
172
170
  """
173
171
 
174
172
  driver_namespace: typing.Any
175
- """ Dictionary for drivers namespace, editable in-place, reset on file load (read-only) File Loading & Order of Initialization Since drivers may be evaluated immediately after loading a blend-file it is necessary to ensure the driver name-space is initialized beforehand. This can be done by registering text data-blocks to execute on startup, which executes the scripts before drivers are evaluated. See *Text -> Register* from Blender's text editor. .. hint:: You may prefer to use external files instead of Blender's text-blocks. This can be done using a text-block which executes an external file. This example runs ``driver_namespace.py`` located in the same directory as the text-blocks blend-file: .. code-block:: import os import bpy blend_dir = os.path.normalize(os.path.join(__file__, "..", "..")) bpy.utils.execfile(os.path.join(blend_dir, "driver_namespace.py")) Using ``__file__`` ensures the text resolves to the expected path even when library-linked from another file. Other methods of populating the drivers name-space can be made to work but tend to be error prone: Using The ``--python`` command line argument to populate name-space often fails to achieve the desired goal because the initial evaluation will lookup a function that doesn't exist yet, marking the driver as invalid - preventing further evaluation. Populating the driver name-space before the blend-file loads also doesn't work since opening a file clears the name-space. It is possible to run a script via the ``--python`` command line argument, before the blend file. This can register a load-post handler (:mod:`bpy.app.handlers.load_post`) that initialized the name-space. While this works for background tasks it has the downside that opening the file from the file selector won't setup the name-space.
173
+ """ Dictionary for drivers namespace, editable in-place, reset on file load (read-only)
176
174
  """
177
175
 
178
176
  factory_startup: typing.Any
@@ -180,23 +178,23 @@ factory_startup: typing.Any
180
178
  """
181
179
 
182
180
  ffmpeg: typing.Any
183
- """ Constant value bpy.app.ffmpeg(supported=True, avcodec_version=(60, 31, 102), avcodec_version_string='60, 31, 102', avdevice_version=(60, 3, 100), avdevice_version_string='60, 3, 100', avformat_version=(60, 16, 100), avformat_version_string='60, 16, 100', avutil_version=(58, 29, 100), avutil_version_string='58, 29, 100', swscale_version=(7, 5, 100), swscale_version_string=' 7, 5, 100')
181
+ """ Constant value bpy.app.ffmpeg(supported=True, avcodec_version=(60, 31, 102), avcodec_version_string='60, 31, 102', avdevice_version=(60, 3, 100), avdevice_version_string='60, 3, 100', avformat_version=(60, 16, 100), avformat_version_string='60, 16, 100', avutil_version=(58, 29, 100), avutil_version_string='58, 29, 100', swscale_version=(7, 5, 100), swscale_version_string=' 7, 5, 100')
184
182
  """
185
183
 
186
184
  ocio: typing.Any
187
- """ Constant value bpy.app.ocio(supported=True, version=(2, 3, 2), version_string=' 2, 3, 2')
185
+ """ Constant value bpy.app.ocio(supported=True, version=(2, 3, 2), version_string=' 2, 3, 2')
188
186
  """
189
187
 
190
188
  oiio: typing.Any
191
- """ Constant value bpy.app.oiio(supported=True, version=(2, 5, 6), version_string=' 2, 5, 6')
189
+ """ Constant value bpy.app.oiio(supported=True, version=(2, 5, 6), version_string=' 2, 5, 6')
192
190
  """
193
191
 
194
192
  opensubdiv: typing.Any
195
- """ Constant value bpy.app.opensubdiv(supported=True, version=(3, 6, 0), version_string=' 3, 6, 0')
193
+ """ Constant value bpy.app.opensubdiv(supported=True, version=(3, 6, 0), version_string=' 3, 6, 0')
196
194
  """
197
195
 
198
196
  openvdb: typing.Any
199
- """ Constant value bpy.app.openvdb(supported=True, version=(11, 0, 0), version_string='11, 0, 0')
197
+ """ Constant value bpy.app.openvdb(supported=True, version=(11, 0, 0), version_string='11, 0, 0')
200
198
  """
201
199
 
202
200
  render_icon_size: typing.Any
@@ -220,11 +218,11 @@ usd: typing.Any
220
218
  """
221
219
 
222
220
  use_event_simulate: typing.Any
223
- """ Boolean, for application behavior (started with ``--enable-*`` matching this attribute name)
221
+ """ Boolean, for application behavior (started with --enable-* matching this attribute name)
224
222
  """
225
223
 
226
224
  use_userpref_skip_save_on_exit: typing.Any
227
- """ Boolean, for application behavior (started with ``--enable-*`` matching this attribute name)
225
+ """ Boolean, for application behavior (started with --enable-* matching this attribute name)
228
226
  """
229
227
 
230
228
  version: typing.Any
@@ -236,7 +234,7 @@ version_cycle: typing.Any
236
234
  """
237
235
 
238
236
  version_file: typing.Any
239
- """ The Blender version, as a tuple, last used to save a .blend file, compatible with ``bpy.data.version``. This value should be used for handling compatibility changes between Blender versions
237
+ """ The Blender version, as a tuple, last used to save a .blend file, compatible with bpy.data.version. This value should be used for handling compatibility changes between Blender versions
240
238
  """
241
239
 
242
240
  version_string: typing.Any