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
@@ -1,11 +1,12 @@
1
- import sys
2
1
  import typing
3
2
  import bpy.types
4
3
 
5
4
  GenericType = typing.TypeVar("GenericType")
6
5
 
7
6
  class ImagePreviewCollection:
8
- """Dictionary-like class of previews. This is a subclass of Python's built-in dict type, used to store multiple image previews."""
7
+ """Dictionary-like class of previews.This is a subclass of Python's built-in dict type,
8
+ used to store multiple image previews.
9
+ """
9
10
 
10
11
  def clear(self):
11
12
  """Clear all previews."""
@@ -17,50 +18,136 @@ class ImagePreviewCollection:
17
18
 
18
19
  def load(
19
20
  self,
20
- name: typing.Optional[str],
21
- filepath: typing.Optional[typing.Union[str, bytes]],
22
- filetype: typing.Optional[str],
23
- force_reload: typing.Optional[bool] = False,
24
- ) -> "bpy.types.ImagePreview":
25
- """Generate a new preview from given file path. :raises KeyError: if ``name`` already exists.
21
+ name: str,
22
+ filepath: typing.Union[str, bytes],
23
+ filetype: str,
24
+ force_reload: bool = False,
25
+ ) -> bool:
26
+ """Generate a new preview from given file path.
26
27
 
27
28
  :param name: The name (unique id) identifying the preview.
28
- :type name: typing.Optional[str]
29
+ :type name: str
29
30
  :param filepath: The file path to generate the preview from.
30
- :type filepath: typing.Optional[typing.Union[str, bytes]]
31
+ :type filepath: typing.Union[str, bytes]
31
32
  :param filetype: The type of file, needed to generate the preview in ['IMAGE', 'MOVIE', 'BLEND', 'FONT'].
32
- :type filetype: typing.Optional[str]
33
+ :type filetype: str
33
34
  :param force_reload: If True, force running thumbnail manager even if preview already exists in cache.
34
- :type force_reload: typing.Optional[bool]
35
- :rtype: 'bpy.types.ImagePreview'
35
+ :type force_reload: bool
36
36
  :return: The Preview matching given name, or a new empty one.
37
+ :rtype: bpy.types.ImagePreview
37
38
  """
38
39
  ...
39
40
 
40
- def new(self, name: typing.Optional[str]) -> "bpy.types.ImagePreview":
41
- """Generate a new empty preview. :raises KeyError: if ``name`` already exists.
41
+ def new(self, name: str) -> str:
42
+ """Generate a new empty preview.
42
43
 
43
44
  :param name: The name (unique id) identifying the preview.
44
- :type name: typing.Optional[str]
45
- :rtype: 'bpy.types.ImagePreview'
45
+ :type name: str
46
46
  :return: The Preview matching given name, or a new empty one.
47
+ :rtype: bpy.types.ImagePreview
48
+ """
49
+ ...
50
+
51
+ class ImagePreviewCollection:
52
+ """ """
53
+
54
+ def clear(self):
55
+ """ """
56
+ ...
57
+
58
+ def close(self):
59
+ """ """
60
+ ...
61
+
62
+ def copy(self):
63
+ """ """
64
+ ...
65
+
66
+ def fromkeys(self):
67
+ """ """
68
+ ...
69
+
70
+ def get(self, key, default):
47
71
  """
72
+
73
+ :param key:
74
+ :param default:
75
+ """
76
+ ...
77
+
78
+ def items(self):
79
+ """ """
48
80
  ...
49
81
 
50
- def new() -> "ImagePreviewCollection":
82
+ def keys(self):
83
+ """ """
84
+ ...
85
+
86
+ def load(self, name, path, path_type, force_reload):
87
+ """
88
+
89
+ :param name:
90
+ :param path:
91
+ :param path_type:
92
+ :param force_reload:
93
+ """
94
+ ...
95
+
96
+ def new(self, name):
97
+ """
98
+
99
+ :param name:
100
+ """
101
+ ...
102
+
103
+ def pop(self):
104
+ """ """
105
+ ...
106
+
107
+ def popitem(self):
108
+ """ """
109
+ ...
110
+
111
+ def setdefault(self, key, default):
112
+ """
113
+
114
+ :param key:
115
+ :param default:
116
+ """
117
+ ...
118
+
119
+ def update(self):
120
+ """ """
121
+ ...
122
+
123
+ def values(self):
124
+ """ """
125
+ ...
126
+
127
+ def new() -> ImagePreviewCollection:
51
128
  """
52
129
 
53
- :rtype: 'ImagePreviewCollection'
54
130
  :return: a new preview collection.
131
+ :rtype: ImagePreviewCollection
55
132
  """
56
133
 
57
134
  ...
58
135
 
59
- def remove(pcoll: typing.Optional["ImagePreviewCollection"]):
136
+ def new():
137
+ """ """
138
+
139
+ ...
140
+
141
+ def remove(pcoll: ImagePreviewCollection):
60
142
  """Remove the specified previews collection.
61
143
 
62
144
  :param pcoll: Preview collection to close.
63
- :type pcoll: typing.Optional['ImagePreviewCollection']
145
+ :type pcoll: ImagePreviewCollection
64
146
  """
65
147
 
66
148
  ...
149
+
150
+ def remove(pcoll):
151
+ """ """
152
+
153
+ ...
@@ -1,54 +1,52 @@
1
- import sys
2
1
  import typing
3
2
 
4
3
  GenericType = typing.TypeVar("GenericType")
5
4
 
6
5
  def to_string(
7
- unit_system: typing.Optional[str],
8
- unit_category: typing.Optional[str],
9
- value: typing.Optional[float],
10
- precision: typing.Optional[int] = 3,
11
- split_unit: typing.Optional[bool] = False,
12
- compatible_unit: typing.Optional[bool] = False,
6
+ unit_system: str,
7
+ unit_category: str,
8
+ value: float,
9
+ precision: int = 3,
10
+ split_unit: bool = False,
11
+ compatible_unit: bool = False,
13
12
  ) -> str:
14
- """Convert a given input float value into a string with units. :raises ValueError: if conversion fails to generate a valid Python string.
15
-
16
- :param unit_system: `bpy.utils.units.systems`.
17
- :type unit_system: typing.Optional[str]
18
- :param unit_category: The category of data we are converting (length, area, rotation, etc.), from :attr:`bpy.utils.units.categories`.
19
- :type unit_category: typing.Optional[str]
20
- :param value: The value to convert to a string.
21
- :type value: typing.Optional[float]
22
- :param precision: Number of digits after the comma.
23
- :type precision: typing.Optional[int]
24
- :param split_unit: Whether to use several units if needed (1m1cm), or always only one (1.01m).
25
- :type split_unit: typing.Optional[bool]
26
- :param compatible_unit: Whether to use keyboard-friendly units (1m2) or nicer utf-8 ones (1m²).
27
- :type compatible_unit: typing.Optional[bool]
28
- :rtype: str
29
- :return: The converted string.
13
+ """Convert a given input float value into a string with units.
14
+
15
+ :param unit_system: The unit system, from `bpy.utils.units.systems`.
16
+ :type unit_system: str
17
+ :param unit_category: The category of data we are converting (length, area, rotation, etc.),
18
+ from `bpy.utils.units.categories`.
19
+ :type unit_category: str
20
+ :param value: The value to convert to a string.
21
+ :type value: float
22
+ :param precision: Number of digits after the comma.
23
+ :type precision: int
24
+ :param split_unit: Whether to use several units if needed (1m1cm), or always only one (1.01m).
25
+ :type split_unit: bool
26
+ :param compatible_unit: Whether to use keyboard-friendly units (1m2) or nicer utf-8 ones (1m²).
27
+ :type compatible_unit: bool
28
+ :return: The converted string.
29
+ :rtype: str
30
30
  """
31
31
 
32
32
  ...
33
33
 
34
34
  def to_value(
35
- unit_system: typing.Optional[str],
36
- unit_category: typing.Optional[str],
37
- str_input: typing.Optional[str],
38
- str_ref_unit: typing.Optional[str] = None,
35
+ unit_system: str, unit_category: str, str_input: str, str_ref_unit: str = None
39
36
  ) -> float:
40
- """Convert a given input string into a float value. :raises ValueError: if conversion fails to generate a valid Python float value.
41
-
42
- :param unit_system: `bpy.utils.units.systems`.
43
- :type unit_system: typing.Optional[str]
44
- :param unit_category: The category of data we are converting (length, area, rotation, etc.), from :attr:`bpy.utils.units.categories`.
45
- :type unit_category: typing.Optional[str]
46
- :param str_input: The string to convert to a float value.
47
- :type str_input: typing.Optional[str]
48
- :param str_ref_unit: A reference string from which to extract a default unit, if none is found in ``str_input``.
49
- :type str_ref_unit: typing.Optional[str]
50
- :rtype: float
51
- :return: The converted/interpreted value.
37
+ """Convert a given input string into a float value.
38
+
39
+ :param unit_system: The unit system, from `bpy.utils.units.systems`.
40
+ :type unit_system: str
41
+ :param unit_category: The category of data we are converting (length, area, rotation, etc.),
42
+ from `bpy.utils.units.categories`.
43
+ :type unit_category: str
44
+ :param str_input: The string to convert to a float value.
45
+ :type str_input: str
46
+ :param str_ref_unit: A reference string from which to extract a default unit, if none is found in str_input.
47
+ :type str_ref_unit: str
48
+ :return: The converted/interpreted value.
49
+ :rtype: float
52
50
  """
53
51
 
54
52
  ...
bpy_extras/__init__.pyi CHANGED
@@ -1,18 +1,13 @@
1
- import sys
2
1
  import typing
2
+ from . import anim_utils
3
3
  from . import asset_utils
4
4
  from . import id_map_utils
5
- from . import node_utils
6
5
  from . import image_utils
6
+ from . import io_utils
7
+ from . import keyconfig_utils
7
8
  from . import mesh_utils
9
+ from . import node_utils
8
10
  from . import object_utils
9
- from . import io_utils
10
11
  from . import view3d_utils
11
- from . import anim_utils
12
- from . import keyconfig_utils
13
- from . import node_shader_utils
14
- from . import extensions
15
- from . import bmesh_utils
16
- from . import wm_utils
17
12
 
18
13
  GenericType = typing.TypeVar("GenericType")
@@ -1,85 +1,55 @@
1
- import sys
2
1
  import typing
3
2
  import bpy.types
4
3
 
5
4
  GenericType = typing.TypeVar("GenericType")
6
5
 
7
- class BakeOptions: ...
8
-
9
- class KeyframesCo:
10
- keyframes_from_fcurve: typing.Any
11
-
12
- def add_paths(self, rna_path, total_indices): ...
13
- def extend_co_value(self, rna_path, frame, value): ...
14
- def extend_co_values(self, rna_path, total_indices, frame, values): ...
15
- def insert_keyframes_into_existing_action(
16
- self, lookup_fcurves, total_new_keys, action, action_group_name
17
- ): ...
18
- def insert_keyframes_into_new_action(
19
- self, total_new_keys, action, action_group_name
20
- ): ...
21
-
22
6
  def bake_action(
23
- obj: "bpy.types.Object",
24
- *,
25
- action: typing.Optional["bpy.types.Action"],
26
- frames: int,
27
- bake_o,
28
- ) -> "bpy.types.Action":
7
+ obj: bpy.types.Object, action, frames, bake_options
8
+ ) -> bpy.types.Action:
29
9
  """
30
10
 
31
- :param obj: Object to bake.
32
- :type obj: 'bpy.types.Object'
33
- :param action: An action to bake the data into, or None for a new action to be created.
34
- :type action: typing.Optional['bpy.types.Action']
35
- :param frames: Frames to bake.
36
- :type frames: int
37
- :rtype: 'bpy.types.Action'
38
- :return: an action or None
11
+ :param obj: Object to bake.
12
+ :type obj: bpy.types.Object
13
+ :param action: An action to bake the data into, or None for a new action
14
+ to be created.
15
+ :param frames: Frames to bake.
16
+ :return: an action or None
17
+ :rtype: bpy.types.Action
39
18
  """
40
19
 
41
20
  ...
42
21
 
43
- def bake_action_iter(
44
- obj: "bpy.types.Object", *, action: typing.Optional["bpy.types.Action"], bake_o
45
- ) -> "bpy.types.Action":
22
+ def bake_action_iter(obj: bpy.types.Object, action, bake_options) -> bpy.types.Action:
46
23
  """An coroutine that bakes action for a single object.
47
24
 
48
- :param obj: Object to bake.
49
- :type obj: 'bpy.types.Object'
50
- :param action: An action to bake the data into, or None for a new action to be created.
51
- :type action: typing.Optional['bpy.types.Action']
52
- :param bake_options: Boolean options of what to include into the action bake.
53
- :type bake_options: typing.Any
54
- :rtype: 'bpy.types.Action'
55
- :return: an action or None
25
+ :param obj: Object to bake.
26
+ :type obj: bpy.types.Object
27
+ :param action: An action to bake the data into, or None for a new action
28
+ to be created.
29
+ :param bake_options: Boolean options of what to include into the action bake.
30
+ :return: an action or None
31
+ :rtype: bpy.types.Action
56
32
  """
57
33
 
58
34
  ...
59
35
 
60
36
  def bake_action_objects(
61
- object_action_pairs, *, frames: int, bake_o
62
- ) -> typing.Iterable["bpy.types.Action"]:
63
- """A version of :func:`bake_action_objects_iter` that takes frames and returns the output.
37
+ object_action_pairs, frames, bake_options
38
+ ) -> typing.Iterable[bpy.types.Action]:
39
+ """A version of `bake_action_objects_iter` that takes frames and returns the output.
64
40
 
65
41
  :param frames: Frames to bake.
66
- :type frames: int
67
- :rtype: typing.Iterable['bpy.types.Action']
68
- :return: A sequence of Action or None types (aligned with `object_action_pairs`)
42
+ :return: A sequence of Action or None types (aligned with object_action_pairs)
43
+ :rtype: typing.Iterable[bpy.types.Action]
69
44
  """
70
45
 
71
46
  ...
72
47
 
73
- def bake_action_objects_iter(
74
- object_action_pairs: typing.Union[
75
- "bpy.types.Action", "bpy.types.Sequence", "bpy.types.Object"
76
- ],
77
- bake_o,
78
- ):
48
+ def bake_action_objects_iter(object_action_pairs, bake_options):
79
49
  """An coroutine that bakes actions for multiple objects.
80
50
 
81
- :param object_action_pairs: Sequence of object action tuples, action is the destination for the baked data. When None a new action will be created.
82
- :type object_action_pairs: typing.Union['bpy.types.Action', 'bpy.types.Sequence', 'bpy.types.Object']
51
+ :param object_action_pairs: Sequence of object action tuples,
52
+ action is the destination for the baked data. When None a new action will be created.
83
53
  """
84
54
 
85
55
  ...
@@ -1,18 +1,8 @@
1
- import sys
2
1
  import typing
3
2
 
4
3
  GenericType = typing.TypeVar("GenericType")
5
4
 
6
- class AssetBrowserPanel:
7
- bl_space_type: typing.Any
5
+ class SpaceAssetInfo:
6
+ """ """
8
7
 
9
- def asset_browser_panel_poll(self, context): ...
10
- def poll(self, context): ...
11
-
12
- class AssetMetaDataPanel:
13
- bl_region_type: typing.Any
14
- bl_space_type: typing.Any
15
-
16
- def poll(self, context): ...
17
-
18
- class SpaceAssetInfo: ...
8
+ ...
@@ -1,9 +1,8 @@
1
- import sys
2
1
  import typing
3
2
 
4
3
  GenericType = typing.TypeVar("GenericType")
5
4
 
6
- def get_all_referenced_ids(i, ref_m):
5
+ def get_all_referenced_ids(id, ref_map):
7
6
  """Return a set of IDs directly or indirectly referenced by id."""
8
7
 
9
8
  ...
@@ -12,5 +11,3 @@ def get_id_reference_map():
12
11
  """Return a dictionary of direct datablock references for every datablock in the blend file."""
13
12
 
14
13
  ...
15
-
16
- def recursive_get_referenced_ids(ref_map, id, referenced_ids, visited): ...
@@ -1,4 +1,3 @@
1
- import sys
2
1
  import typing
3
2
  import bpy.types
4
3
 
@@ -15,29 +14,40 @@ def load_image(
15
14
  relpath: str = None,
16
15
  check_existing: bool = False,
17
16
  force_reload: bool = False,
18
- ) -> "bpy.types.Image":
19
- """Return an image from the file path with options to search multiple paths and return a placeholder if its not found.
17
+ ) -> bpy.types.Image:
18
+ """Return an image from the file path with options to search multiple paths
19
+ and return a placeholder if its not found.
20
20
 
21
- :param filepath: The image filename If a path precedes it, this will be searched as well.
22
- :type filepath: str
23
- :param dirname: is the directory where the image may be located - any file at the end will be ignored.
24
- :type dirname: str
25
- :param place_holder: if True a new place holder image will be created. this is useful so later you can relink the image to its original data.
26
- :type place_holder: bool
27
- :param recursive: If True, directories will be recursively searched. Be careful with this if you have files in your root directory because it may take a long time.
28
- :type recursive: bool
29
- :param ncase_cmp: on non windows systems, find the correct case for the file.
30
- :type ncase_cmp: bool
31
- :param convert_callback: a function that takes an existing path and returns a new one. Use this when loading image formats blender may not support, the CONVERT_CALLBACK can take the path for a GIF (for example), convert it to a PNG and return the PNG's path. For formats blender can read, simply return the path that is given.
32
- :type convert_callback: typing.Any
33
- :param relpath: If not None, make the file relative to this path.
34
- :type relpath: str
35
- :param check_existing: If true, returns already loaded image datablock if possible (based on file path).
36
- :type check_existing: bool
37
- :param force_reload: If true, force reloading of image (only useful when `check_existing` is also enabled).
38
- :type force_reload: bool
39
- :rtype: 'bpy.types.Image'
40
- :return: an image or None
21
+ :param dirname: is the directory where the image may be located - any file at
22
+ the end will be ignored.
23
+ :type dirname: str
24
+ :param place_holder: if True a new place holder image will be created.
25
+ this is useful so later you can relink the image to its original data.
26
+ :type place_holder: bool
27
+ :param recursive: If True, directories will be recursively searched.
28
+ Be careful with this if you have files in your root directory because
29
+ it may take a long time.
30
+ :type recursive: bool
31
+ :param ncase_cmp: on non windows systems, find the correct case for the file.
32
+ :type ncase_cmp: bool
33
+ :param convert_callback: a function that takes an existing path and returns
34
+ a new one. Use this when loading image formats blender may not support,
35
+ the CONVERT_CALLBACK can take the path for a GIF (for example),
36
+ convert it to a PNG and return the PNG's path.
37
+ For formats blender can read, simply return the path that is given.
38
+ :type convert_callback: typing.Any
39
+ :param relpath: If not None, make the file relative to this path.
40
+ :type relpath: str
41
+ :param check_existing: If true,
42
+ returns already loaded image datablock if possible
43
+ (based on file path).
44
+ :type check_existing: bool
45
+ :param force_reload: If true,
46
+ force reloading of image (only useful when check_existing
47
+ is also enabled).
48
+ :type force_reload: bool
49
+ :return: an image or None
50
+ :rtype: bpy.types.Image
41
51
  """
42
52
 
43
53
  ...