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.
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
gpu_extras/__init__.pyi CHANGED
@@ -1,6 +1,5 @@
1
- import sys
2
1
  import typing
3
- from . import presets
4
2
  from . import batch
3
+ from . import presets
5
4
 
6
5
  GenericType = typing.TypeVar("GenericType")
@@ -1,22 +1,43 @@
1
- import sys
2
1
  import typing
3
2
  import gpu.types
4
3
 
5
4
  GenericType = typing.TypeVar("GenericType")
6
5
 
7
6
  def batch_for_shader(
8
- shader: "gpu.types.GPUShader", type: str, content: typing.Dict, *, indices=None
9
- ) -> "gpu.types.GPUBatch":
7
+ shader: gpu.types.GPUShader, type: str, content: dict, indices=None
8
+ ) -> gpu.types.GPUBatch:
10
9
  """Return a batch already configured and compatible with the shader.
11
10
 
12
11
  :param shader: shader for which a compatible format will be computed.
13
- :type shader: 'gpu.types.GPUShader'
12
+ :type shader: gpu.types.GPUShader
14
13
  :param type: "'POINTS', 'LINES', 'TRIS' or 'LINES_ADJ'".
15
14
  :type type: str
16
15
  :param content: Maps the name of the shader attribute with the data to fill the vertex buffer.
17
- :type content: typing.Dict
18
- :rtype: 'gpu.types.GPUBatch'
16
+ :type content: dict
19
17
  :return: compatible batch
18
+ :rtype: gpu.types.GPUBatch
20
19
  """
21
20
 
22
21
  ...
22
+
23
+ def batch_for_shader(
24
+ shader: gpu.types.GPUShader, type: str, content: dict, indices=None
25
+ ) -> gpu.types.GPUBatch:
26
+ """Return a batch already configured and compatible with the shader.
27
+
28
+ :param shader: shader for which a compatible format will be computed.
29
+ :type shader: gpu.types.GPUShader
30
+ :param type: "'POINTS', 'LINES', 'TRIS' or 'LINES_ADJ'".
31
+ :type type: str
32
+ :param content: Maps the name of the shader attribute with the data to fill the vertex buffer.
33
+ :type content: dict
34
+ :return: compatible batch
35
+ :rtype: gpu.types.GPUBatch
36
+ """
37
+
38
+ ...
39
+
40
+ def batch_for_shader(shader, type, content, indices):
41
+ """ """
42
+
43
+ ...
@@ -1,47 +1,87 @@
1
- import sys
2
1
  import typing
3
- import mathutils
4
2
  import gpu.types
3
+ import mathutils
5
4
 
6
5
  GenericType = typing.TypeVar("GenericType")
7
6
 
8
- def draw_circle_2d(
9
- position: "mathutils.Vector",
10
- color: typing.Tuple,
11
- radius: float,
12
- *,
13
- segments: typing.Optional[int] = None,
14
- ):
7
+ def draw_circle_2d(position: mathutils.Vector, color, radius: float, segments=None):
15
8
  """Draw a circle.
16
9
 
17
- :param position: Position where the circle will be drawn.
18
- :type position: 'mathutils.Vector'
19
- :param color: Color of the circle. To use transparency GL_BLEND has to be enabled.
20
- :type color: typing.Tuple
21
- :param radius: Radius of the circle.
22
- :type radius: float
23
- :param segments: How many segments will be used to draw the circle. Higher values give better results but the drawing will take longer. If None or not specified, an automatic value will be calculated.
24
- :type segments: typing.Optional[int]
10
+ :param position: Position where the circle will be drawn.
11
+ :type position: mathutils.Vector
12
+ :param color: Color of the circle. To use transparency GL_BLEND has to be enabled.
13
+ :param radius: Radius of the circle.
14
+ :type radius: float
15
+ :param segments: How many segments will be used to draw the circle.
16
+ Higher values give better results but the drawing will take longer.
17
+ If None or not specified, an automatic value will be calculated.
25
18
  """
26
19
 
27
20
  ...
28
21
 
22
+ def draw_circle_2d(position: mathutils.Vector, color, radius: float, segments=None):
23
+ """Draw a circle.
24
+
25
+ :param position: Position where the circle will be drawn.
26
+ :type position: mathutils.Vector
27
+ :param color: Color of the circle. To use transparency GL_BLEND has to be enabled.
28
+ :param radius: Radius of the circle.
29
+ :type radius: float
30
+ :param segments: How many segments will be used to draw the circle.
31
+ Higher values give better results but the drawing will take longer.
32
+ If None or not specified, an automatic value will be calculated.
33
+ """
34
+
35
+ ...
36
+
37
+ def draw_circle_2d(position, color, radius, segments):
38
+ """ """
39
+
40
+ ...
41
+
29
42
  def draw_texture_2d(
30
- texture: "gpu.types.GPUTexture",
31
- position: "mathutils.Vector",
43
+ texture: gpu.types.GPUTexture,
44
+ position: mathutils.Vector,
32
45
  width: float,
33
46
  height: float,
34
47
  ):
35
48
  """Draw a 2d texture.
36
49
 
37
- :param texture: `bpy.types.Image`).
38
- :type texture: 'gpu.types.GPUTexture'
39
- :param position: Position of the lower left corner.
40
- :type position: 'mathutils.Vector'
41
- :param width: Width of the image when drawn (not necessarily the original width of the texture).
42
- :type width: float
43
- :param height: Height of the image when drawn.
44
- :type height: float
50
+ :param texture: GPUTexture to draw (e.g. gpu.texture.from_image(image) for `bpy.types.Image`).
51
+ :type texture: gpu.types.GPUTexture
52
+ :param position: Position of the lower left corner.
53
+ :type position: mathutils.Vector
54
+ :param width: Width of the image when drawn (not necessarily
55
+ the original width of the texture).
56
+ :type width: float
57
+ :param height: Height of the image when drawn.
58
+ :type height: float
45
59
  """
46
60
 
47
61
  ...
62
+
63
+ def draw_texture_2d(
64
+ texture: gpu.types.GPUTexture,
65
+ position: mathutils.Vector,
66
+ width: float,
67
+ height: float,
68
+ ):
69
+ """Draw a 2d texture.
70
+
71
+ :param texture: GPUTexture to draw (e.g. gpu.texture.from_image(image) for `bpy.types.Image`).
72
+ :type texture: gpu.types.GPUTexture
73
+ :param position: Position of the lower left corner.
74
+ :type position: mathutils.Vector
75
+ :param width: Width of the image when drawn (not necessarily
76
+ the original width of the texture).
77
+ :type width: float
78
+ :param height: Height of the image when drawn.
79
+ :type height: float
80
+ """
81
+
82
+ ...
83
+
84
+ def draw_texture_2d(texture, position, width, height):
85
+ """ """
86
+
87
+ ...
@@ -1,7 +1,13 @@
1
- import sys
2
1
  import typing
3
2
 
4
3
  GenericType = typing.TypeVar("GenericType")
5
4
 
6
- def compat_str(text, line_length): ...
7
- def graph_armature(obj, filepath, FAKE_PARENT, CONSTRAINTS, DRIVERS, XTRA_INFO): ...
5
+ def compat_str(text, line_length):
6
+ """ """
7
+
8
+ ...
9
+
10
+ def graph_armature(obj, filepath, FAKE_PARENT, CONSTRAINTS, DRIVERS, XTRA_INFO):
11
+ """ """
12
+
13
+ ...
idprop/__init__.pyi CHANGED
@@ -1,4 +1,3 @@
1
- import sys
2
1
  import typing
3
2
  from . import types
4
3
 
idprop/types/__init__.pyi CHANGED
@@ -1,9 +1,10 @@
1
- import sys
2
1
  import typing
3
2
 
4
3
  GenericType = typing.TypeVar("GenericType")
5
4
 
6
5
  class IDPropertyArray:
6
+ """ """
7
+
7
8
  typecode: typing.Any
8
9
  """ The type of the data in the array {'f': float, 'd': double, 'i': int, 'b': bool}."""
9
10
 
@@ -12,6 +13,8 @@ class IDPropertyArray:
12
13
  ...
13
14
 
14
15
  class IDPropertyGroup:
16
+ """ """
17
+
15
18
  name: typing.Any
16
19
  """ The name of this Group."""
17
20
 
@@ -20,7 +23,11 @@ class IDPropertyGroup:
20
23
  ...
21
24
 
22
25
  def get(self, key, default=None):
23
- """Return the value for key, if it exists, else default."""
26
+ """Return the value for key, if it exists, else default.
27
+
28
+ :param key:
29
+ :param default:
30
+ """
24
31
  ...
25
32
 
26
33
  def items(self):
@@ -31,13 +38,12 @@ class IDPropertyGroup:
31
38
  """Return the keys associated with this group as a list of strings."""
32
39
  ...
33
40
 
34
- def pop(self, key: str, default: typing.Any):
35
- """Remove an item from the group, returning a Python representation. :raises KeyError: When the item doesn't exist.
41
+ def pop(self, key: str, default):
42
+ """Remove an item from the group, returning a Python representation.
36
43
 
37
44
  :param key: Name of item to remove.
38
45
  :type key: str
39
46
  :param default: Value to return when key isn't found, otherwise raise an exception.
40
- :type default: typing.Any
41
47
  """
42
48
  ...
43
49
 
@@ -45,11 +51,11 @@ class IDPropertyGroup:
45
51
  """Return a purely Python version of the group."""
46
52
  ...
47
53
 
48
- def update(self, other: typing.Union["IDPropertyGroup", typing.Dict]):
54
+ def update(self, other: typing.Union[IDPropertyGroup, dict]):
49
55
  """Update key, values.
50
56
 
51
57
  :param other: Updates the values in the group with this.
52
- :type other: typing.Union['IDPropertyGroup', typing.Dict]
58
+ :type other: typing.Union[IDPropertyGroup, dict]
53
59
  """
54
60
  ...
55
61
 
@@ -57,9 +63,32 @@ class IDPropertyGroup:
57
63
  """Return the values associated with this group."""
58
64
  ...
59
65
 
60
- class IDPropertyGroupIterItems: ...
61
- class IDPropertyGroupIterKeys: ...
62
- class IDPropertyGroupIterValues: ...
63
- class IDPropertyGroupViewItems: ...
64
- class IDPropertyGroupViewKeys: ...
65
- class IDPropertyGroupViewValues: ...
66
+ class IDPropertyGroupIterItems:
67
+ """ """
68
+
69
+ ...
70
+
71
+ class IDPropertyGroupIterKeys:
72
+ """ """
73
+
74
+ ...
75
+
76
+ class IDPropertyGroupIterValues:
77
+ """ """
78
+
79
+ ...
80
+
81
+ class IDPropertyGroupViewItems:
82
+ """ """
83
+
84
+ ...
85
+
86
+ class IDPropertyGroupViewKeys:
87
+ """ """
88
+
89
+ ...
90
+
91
+ class IDPropertyGroupViewValues:
92
+ """ """
93
+
94
+ ...
imbuf/__init__.pyi CHANGED
@@ -1,4 +1,3 @@
1
- import sys
2
1
  import typing
3
2
  import imbuf.types
4
3
 
@@ -6,35 +5,32 @@ from . import types
6
5
 
7
6
  GenericType = typing.TypeVar("GenericType")
8
7
 
9
- def load(filepath: typing.Union[str, bytes]) -> "imbuf.types.ImBuf":
8
+ def load(filepath: typing.Union[str, bytes]) -> imbuf.types.ImBuf:
10
9
  """Load an image from a file.
11
10
 
12
11
  :param filepath: the filepath of the image.
13
12
  :type filepath: typing.Union[str, bytes]
14
- :rtype: 'imbuf.types.ImBuf'
15
13
  :return: the newly loaded image.
14
+ :rtype: imbuf.types.ImBuf
16
15
  """
17
16
 
18
17
  ...
19
18
 
20
- def new(size: typing.Any) -> "imbuf.types.ImBuf":
19
+ def new(size) -> imbuf.types.ImBuf:
21
20
  """Load a new image.
22
21
 
23
22
  :param size: The size of the image in pixels.
24
- :type size: typing.Any
25
- :rtype: 'imbuf.types.ImBuf'
26
23
  :return: the newly loaded image.
24
+ :rtype: imbuf.types.ImBuf
27
25
  """
28
26
 
29
27
  ...
30
28
 
31
- def write(
32
- image: "imbuf.types.ImBuf", filepath: typing.Union[str, bytes] = "image.filepath"
33
- ):
29
+ def write(image: imbuf.types.ImBuf, filepath: typing.Union[str, bytes] = None):
34
30
  """Write an image.
35
31
 
36
32
  :param image: the image to write.
37
- :type image: 'imbuf.types.ImBuf'
33
+ :type image: imbuf.types.ImBuf
38
34
  :param filepath: Optional filepath of the image (fallback to the images file path).
39
35
  :type filepath: typing.Union[str, bytes]
40
36
  """
imbuf/types/__init__.pyi CHANGED
@@ -1,9 +1,10 @@
1
- import sys
2
1
  import typing
3
2
 
4
3
  GenericType = typing.TypeVar("GenericType")
5
4
 
6
5
  class ImBuf:
6
+ """ """
7
+
7
8
  channels: int
8
9
  """ Number of bit-planes.
9
10
 
@@ -23,32 +24,24 @@ class ImBuf:
23
24
  """
24
25
 
25
26
  ppm: typing.Any
26
- """ pixels per meter.
27
-
28
- :type: typing.Any
29
- """
27
+ """ pixels per meter."""
30
28
 
31
29
  size: typing.Any
32
- """ size of the image in pixels.
33
-
34
- :type: typing.Any
35
- """
30
+ """ size of the image in pixels."""
36
31
 
37
- def copy(self) -> "ImBuf":
32
+ def copy(self):
38
33
  """
39
34
 
40
- :rtype: 'ImBuf'
41
35
  :return: A copy of the image.
36
+ :rtype: ImBuf
42
37
  """
43
38
  ...
44
39
 
45
- def crop(self, min: typing.Any, max: typing.Any):
40
+ def crop(self, min, max):
46
41
  """Crop the image.
47
42
 
48
43
  :param min: X, Y minimum.
49
- :type min: typing.Any
50
44
  :param max: X, Y maximum.
51
- :type max: typing.Any
52
45
  """
53
46
  ...
54
47
 
@@ -56,11 +49,10 @@ class ImBuf:
56
49
  """Clear image data immediately (causing an error on re-use)."""
57
50
  ...
58
51
 
59
- def resize(self, size: typing.Any, method: str = "FAST"):
52
+ def resize(self, size, method: str = "FAST"):
60
53
  """Resize the image.
61
54
 
62
55
  :param size: New size.
63
- :type size: typing.Any
64
56
  :param method: Method of resizing ('FAST', 'BILINEAR')
65
57
  :type method: str
66
58
  """