fake-bpy-module 20240518__py3-none-any.whl → 20240520__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 (312) hide show
  1. _bpy_internal/__init__.pyi +3 -1
  2. _bpy_internal/freedesktop/__init__.pyi +3 -1
  3. addon_utils/__init__.pyi +3 -1
  4. animsys_refactor/__init__.pyi +3 -1
  5. aud/__init__.pyi +3 -1
  6. bgl/__init__.pyi +121 -146
  7. bl_app_override/__init__.pyi +3 -1
  8. bl_app_override/helpers/__init__.pyi +3 -1
  9. bl_app_template_utils/__init__.pyi +3 -1
  10. bl_console_utils/__init__.pyi +3 -1
  11. bl_console_utils/autocomplete/__init__.pyi +3 -1
  12. bl_console_utils/autocomplete/complete_calltip/__init__.pyi +3 -1
  13. bl_console_utils/autocomplete/complete_import/__init__.pyi +3 -1
  14. bl_console_utils/autocomplete/complete_namespace/__init__.pyi +3 -1
  15. bl_console_utils/autocomplete/intellisense/__init__.pyi +3 -1
  16. bl_i18n_utils/__init__.pyi +3 -1
  17. bl_i18n_utils/bl_extract_messages/__init__.pyi +3 -1
  18. bl_i18n_utils/merge_po/__init__.pyi +3 -1
  19. bl_i18n_utils/settings/__init__.pyi +3 -1
  20. bl_i18n_utils/utils/__init__.pyi +3 -1
  21. bl_i18n_utils/utils_cli/__init__.pyi +3 -1
  22. bl_i18n_utils/utils_languages_menu/__init__.pyi +3 -1
  23. bl_i18n_utils/utils_rtl/__init__.pyi +3 -1
  24. bl_keymap_utils/__init__.pyi +3 -1
  25. bl_keymap_utils/io/__init__.pyi +3 -1
  26. bl_keymap_utils/keymap_from_toolbar/__init__.pyi +3 -1
  27. bl_keymap_utils/keymap_hierarchy/__init__.pyi +3 -1
  28. bl_keymap_utils/platform_helpers/__init__.pyi +3 -1
  29. bl_keymap_utils/versioning/__init__.pyi +3 -1
  30. bl_math/__init__.pyi +3 -1
  31. bl_operators/__init__.pyi +3 -1
  32. bl_operators/add_mesh_torus/__init__.pyi +3 -1
  33. bl_operators/anim/__init__.pyi +3 -1
  34. bl_operators/assets/__init__.pyi +3 -1
  35. bl_operators/bmesh/__init__.pyi +3 -1
  36. bl_operators/bmesh/find_adjacent/__init__.pyi +3 -1
  37. bl_operators/clip/__init__.pyi +3 -1
  38. bl_operators/console/__init__.pyi +3 -1
  39. bl_operators/constraint/__init__.pyi +3 -1
  40. bl_operators/file/__init__.pyi +3 -1
  41. bl_operators/freestyle/__init__.pyi +3 -1
  42. bl_operators/geometry_nodes/__init__.pyi +3 -1
  43. bl_operators/image/__init__.pyi +3 -1
  44. bl_operators/mesh/__init__.pyi +3 -1
  45. bl_operators/node/__init__.pyi +3 -1
  46. bl_operators/object/__init__.pyi +3 -1
  47. bl_operators/object_align/__init__.pyi +3 -1
  48. bl_operators/object_quick_effects/__init__.pyi +3 -1
  49. bl_operators/object_randomize_transform/__init__.pyi +3 -1
  50. bl_operators/presets/__init__.pyi +3 -1
  51. bl_operators/rigidbody/__init__.pyi +3 -1
  52. bl_operators/screen_play_rendered_anim/__init__.pyi +3 -1
  53. bl_operators/sequencer/__init__.pyi +3 -1
  54. bl_operators/spreadsheet/__init__.pyi +3 -1
  55. bl_operators/userpref/__init__.pyi +3 -1
  56. bl_operators/uvcalc_follow_active/__init__.pyi +3 -1
  57. bl_operators/uvcalc_lightmap/__init__.pyi +3 -1
  58. bl_operators/uvcalc_transform/__init__.pyi +3 -1
  59. bl_operators/vertexpaint_dirt/__init__.pyi +3 -1
  60. bl_operators/view3d/__init__.pyi +3 -1
  61. bl_operators/wm/__init__.pyi +3 -1
  62. bl_operators/world/__init__.pyi +3 -1
  63. bl_previews_utils/__init__.pyi +3 -1
  64. bl_previews_utils/bl_previews_render/__init__.pyi +3 -1
  65. bl_rna_utils/__init__.pyi +3 -1
  66. bl_rna_utils/data_path/__init__.pyi +3 -1
  67. bl_text_utils/__init__.pyi +3 -1
  68. bl_text_utils/external_editor/__init__.pyi +3 -1
  69. bl_ui/__init__.pyi +3 -1
  70. bl_ui/anim/__init__.pyi +3 -1
  71. bl_ui/asset_shelf/__init__.pyi +3 -1
  72. bl_ui/generic_ui_list/__init__.pyi +3 -1
  73. bl_ui/node_add_menu/__init__.pyi +3 -1
  74. bl_ui/node_add_menu_compositor/__init__.pyi +3 -1
  75. bl_ui/node_add_menu_geometry/__init__.pyi +3 -1
  76. bl_ui/node_add_menu_shader/__init__.pyi +3 -1
  77. bl_ui/node_add_menu_texture/__init__.pyi +3 -1
  78. bl_ui/properties_animviz/__init__.pyi +3 -1
  79. bl_ui/properties_collection/__init__.pyi +3 -1
  80. bl_ui/properties_constraint/__init__.pyi +3 -1
  81. bl_ui/properties_data_armature/__init__.pyi +3 -1
  82. bl_ui/properties_data_bone/__init__.pyi +3 -1
  83. bl_ui/properties_data_camera/__init__.pyi +3 -1
  84. bl_ui/properties_data_curve/__init__.pyi +3 -1
  85. bl_ui/properties_data_curves/__init__.pyi +3 -1
  86. bl_ui/properties_data_empty/__init__.pyi +3 -1
  87. bl_ui/properties_data_gpencil/__init__.pyi +3 -1
  88. bl_ui/properties_data_grease_pencil/__init__.pyi +3 -1
  89. bl_ui/properties_data_lattice/__init__.pyi +3 -1
  90. bl_ui/properties_data_light/__init__.pyi +3 -1
  91. bl_ui/properties_data_lightprobe/__init__.pyi +3 -1
  92. bl_ui/properties_data_mesh/__init__.pyi +3 -1
  93. bl_ui/properties_data_metaball/__init__.pyi +3 -1
  94. bl_ui/properties_data_modifier/__init__.pyi +3 -1
  95. bl_ui/properties_data_pointcloud/__init__.pyi +3 -1
  96. bl_ui/properties_data_shaderfx/__init__.pyi +3 -1
  97. bl_ui/properties_data_speaker/__init__.pyi +3 -1
  98. bl_ui/properties_data_volume/__init__.pyi +3 -1
  99. bl_ui/properties_freestyle/__init__.pyi +3 -1
  100. bl_ui/properties_grease_pencil_common/__init__.pyi +3 -1
  101. bl_ui/properties_mask_common/__init__.pyi +3 -1
  102. bl_ui/properties_material/__init__.pyi +3 -1
  103. bl_ui/properties_material_gpencil/__init__.pyi +3 -1
  104. bl_ui/properties_object/__init__.pyi +3 -1
  105. bl_ui/properties_output/__init__.pyi +3 -1
  106. bl_ui/properties_paint_common/__init__.pyi +3 -1
  107. bl_ui/properties_particle/__init__.pyi +3 -1
  108. bl_ui/properties_physics_cloth/__init__.pyi +3 -1
  109. bl_ui/properties_physics_common/__init__.pyi +3 -1
  110. bl_ui/properties_physics_dynamicpaint/__init__.pyi +3 -1
  111. bl_ui/properties_physics_field/__init__.pyi +3 -1
  112. bl_ui/properties_physics_fluid/__init__.pyi +3 -1
  113. bl_ui/properties_physics_geometry_nodes/__init__.pyi +3 -1
  114. bl_ui/properties_physics_rigidbody/__init__.pyi +3 -1
  115. bl_ui/properties_physics_rigidbody_constraint/__init__.pyi +3 -1
  116. bl_ui/properties_physics_softbody/__init__.pyi +3 -1
  117. bl_ui/properties_render/__init__.pyi +3 -1
  118. bl_ui/properties_scene/__init__.pyi +3 -1
  119. bl_ui/properties_texture/__init__.pyi +3 -1
  120. bl_ui/properties_view_layer/__init__.pyi +3 -1
  121. bl_ui/properties_workspace/__init__.pyi +3 -1
  122. bl_ui/properties_world/__init__.pyi +3 -1
  123. bl_ui/space_clip/__init__.pyi +3 -1
  124. bl_ui/space_console/__init__.pyi +3 -1
  125. bl_ui/space_dopesheet/__init__.pyi +3 -1
  126. bl_ui/space_filebrowser/__init__.pyi +3 -1
  127. bl_ui/space_graph/__init__.pyi +3 -1
  128. bl_ui/space_image/__init__.pyi +3 -1
  129. bl_ui/space_info/__init__.pyi +3 -1
  130. bl_ui/space_nla/__init__.pyi +3 -1
  131. bl_ui/space_node/__init__.pyi +3 -1
  132. bl_ui/space_outliner/__init__.pyi +3 -1
  133. bl_ui/space_properties/__init__.pyi +3 -1
  134. bl_ui/space_sequencer/__init__.pyi +3 -1
  135. bl_ui/space_spreadsheet/__init__.pyi +3 -1
  136. bl_ui/space_statusbar/__init__.pyi +3 -1
  137. bl_ui/space_text/__init__.pyi +3 -1
  138. bl_ui/space_time/__init__.pyi +3 -1
  139. bl_ui/space_toolsystem_common/__init__.pyi +3 -1
  140. bl_ui/space_toolsystem_toolbar/__init__.pyi +3 -1
  141. bl_ui/space_topbar/__init__.pyi +3 -1
  142. bl_ui/space_userpref/__init__.pyi +3 -1
  143. bl_ui/space_view3d/__init__.pyi +3 -1
  144. bl_ui/space_view3d_toolbar/__init__.pyi +3 -1
  145. bl_ui/temp_anim_layers/__init__.pyi +3 -1
  146. bl_ui/utils/__init__.pyi +3 -1
  147. bl_ui_utils/__init__.pyi +3 -1
  148. bl_ui_utils/bug_report_url/__init__.pyi +3 -1
  149. bl_ui_utils/layout/__init__.pyi +3 -1
  150. blend_render_info/__init__.pyi +3 -1
  151. blf/__init__.pyi +3 -1
  152. bmesh/__init__.pyi +3 -1
  153. bmesh/geometry/__init__.pyi +3 -1
  154. bmesh/ops/__init__.pyi +39 -37
  155. bmesh/types/__init__.pyi +31 -28
  156. bmesh/utils/__init__.pyi +3 -1
  157. bpy/__init__.pyi +3 -1
  158. bpy/app/__init__.pyi +3 -1
  159. bpy/app/handlers/__init__.pyi +3 -1
  160. bpy/app/icons/__init__.pyi +3 -1
  161. bpy/app/timers/__init__.pyi +9 -15
  162. bpy/app/translations/__init__.pyi +3 -1
  163. bpy/msgbus/__init__.pyi +3 -1
  164. bpy/ops/__init__.pyi +3 -1
  165. bpy/ops/action/__init__.pyi +35 -33
  166. bpy/ops/anim/__init__.pyi +33 -31
  167. bpy/ops/armature/__init__.pyi +23 -21
  168. bpy/ops/asset/__init__.pyi +9 -7
  169. bpy/ops/bl_pkg/__init__.pyi +5 -3
  170. bpy/ops/boid/__init__.pyi +5 -3
  171. bpy/ops/brush/__init__.pyi +11 -9
  172. bpy/ops/buttons/__init__.pyi +11 -9
  173. bpy/ops/cachefile/__init__.pyi +13 -11
  174. bpy/ops/camera/__init__.pyi +3 -1
  175. bpy/ops/clip/__init__.pyi +41 -39
  176. bpy/ops/cloth/__init__.pyi +3 -1
  177. bpy/ops/collection/__init__.pyi +9 -7
  178. bpy/ops/console/__init__.pyi +9 -7
  179. bpy/ops/constraint/__init__.pyi +31 -29
  180. bpy/ops/curve/__init__.pyi +37 -35
  181. bpy/ops/curves/__init__.pyi +19 -17
  182. bpy/ops/cycles/__init__.pyi +3 -1
  183. bpy/ops/dpaint/__init__.pyi +7 -5
  184. bpy/ops/ed/__init__.pyi +7 -5
  185. bpy/ops/export_anim/__init__.pyi +5 -3
  186. bpy/ops/export_scene/__init__.pyi +41 -39
  187. bpy/ops/file/__init__.pyi +21 -19
  188. bpy/ops/fluid/__init__.pyi +3 -1
  189. bpy/ops/font/__init__.pyi +23 -21
  190. bpy/ops/geometry/__init__.pyi +23 -21
  191. bpy/ops/gizmogroup/__init__.pyi +3 -1
  192. bpy/ops/gpencil/__init__.pyi +135 -133
  193. bpy/ops/graph/__init__.pyi +57 -55
  194. bpy/ops/grease_pencil/__init__.pyi +45 -43
  195. bpy/ops/image/__init__.pyi +31 -29
  196. bpy/ops/import_anim/__init__.pyi +11 -9
  197. bpy/ops/import_curve/__init__.pyi +3 -1
  198. bpy/ops/import_scene/__init__.pyi +21 -19
  199. bpy/ops/info/__init__.pyi +7 -5
  200. bpy/ops/lattice/__init__.pyi +9 -7
  201. bpy/ops/marker/__init__.pyi +11 -9
  202. bpy/ops/mask/__init__.pyi +15 -13
  203. bpy/ops/material/__init__.pyi +3 -1
  204. bpy/ops/mball/__init__.pyi +9 -7
  205. bpy/ops/mesh/__init__.pyi +147 -145
  206. bpy/ops/nla/__init__.pyi +19 -17
  207. bpy/ops/node/__init__.pyi +35 -33
  208. bpy/ops/object/__init__.pyi +255 -253
  209. bpy/ops/outliner/__init__.pyi +43 -41
  210. bpy/ops/paint/__init__.pyi +75 -73
  211. bpy/ops/paintcurve/__init__.pyi +3 -1
  212. bpy/ops/palette/__init__.pyi +7 -5
  213. bpy/ops/particle/__init__.pyi +17 -15
  214. bpy/ops/pose/__init__.pyi +45 -43
  215. bpy/ops/poselib/__init__.pyi +3 -1
  216. bpy/ops/preferences/__init__.pyi +15 -13
  217. bpy/ops/ptcache/__init__.pyi +3 -1
  218. bpy/ops/render/__init__.pyi +5 -3
  219. bpy/ops/rigidbody/__init__.pyi +19 -17
  220. bpy/ops/scene/__init__.pyi +27 -25
  221. bpy/ops/screen/__init__.pyi +23 -21
  222. bpy/ops/script/__init__.pyi +3 -1
  223. bpy/ops/sculpt/__init__.pyi +69 -67
  224. bpy/ops/sculpt_curves/__init__.pyi +5 -3
  225. bpy/ops/sequencer/__init__.pyi +77 -75
  226. bpy/ops/sound/__init__.pyi +23 -21
  227. bpy/ops/spreadsheet/__init__.pyi +3 -1
  228. bpy/ops/surface/__init__.pyi +15 -13
  229. bpy/ops/text/__init__.pyi +25 -23
  230. bpy/ops/text_editor/__init__.pyi +3 -1
  231. bpy/ops/texture/__init__.pyi +5 -3
  232. bpy/ops/transform/__init__.pyi +91 -89
  233. bpy/ops/ui/__init__.pyi +9 -7
  234. bpy/ops/uilist/__init__.pyi +5 -3
  235. bpy/ops/uv/__init__.pyi +69 -67
  236. bpy/ops/view2d/__init__.pyi +3 -1
  237. bpy/ops/view3d/__init__.pyi +37 -35
  238. bpy/ops/wm/__init__.pyi +199 -197
  239. bpy/ops/workspace/__init__.pyi +3 -1
  240. bpy/ops/world/__init__.pyi +3 -1
  241. bpy/path/__init__.pyi +3 -1
  242. bpy/props/__init__.pyi +3 -1
  243. bpy/types/__init__.pyi +3448 -3370
  244. bpy/utils/__init__.pyi +3 -1
  245. bpy/utils/previews/__init__.pyi +3 -1
  246. bpy/utils/units/__init__.pyi +3 -1
  247. bpy_extras/__init__.pyi +3 -1
  248. bpy_extras/anim_utils/__init__.pyi +3 -1
  249. bpy_extras/asset_utils/__init__.pyi +3 -1
  250. bpy_extras/bmesh_utils/__init__.pyi +3 -1
  251. bpy_extras/extensions/__init__.pyi +3 -1
  252. bpy_extras/extensions/junction_module/__init__.pyi +3 -1
  253. bpy_extras/id_map_utils/__init__.pyi +3 -1
  254. bpy_extras/image_utils/__init__.pyi +3 -1
  255. bpy_extras/io_utils/__init__.pyi +3 -1
  256. bpy_extras/keyconfig_utils/__init__.pyi +3 -1
  257. bpy_extras/mesh_utils/__init__.pyi +3 -1
  258. bpy_extras/node_shader_utils/__init__.pyi +3 -1
  259. bpy_extras/node_utils/__init__.pyi +3 -1
  260. bpy_extras/object_utils/__init__.pyi +3 -1
  261. bpy_extras/view3d_utils/__init__.pyi +3 -1
  262. bpy_extras/wm_utils/__init__.pyi +3 -1
  263. bpy_extras/wm_utils/progress_report/__init__.pyi +3 -1
  264. bpy_restrict_state/__init__.pyi +3 -1
  265. bpy_types/__init__.pyi +3 -1
  266. console_python/__init__.pyi +3 -1
  267. console_shell/__init__.pyi +3 -1
  268. {fake_bpy_module-20240518.dist-info → fake_bpy_module-20240520.dist-info}/METADATA +1 -1
  269. fake_bpy_module-20240520.dist-info/RECORD +353 -0
  270. freestyle/__init__.pyi +3 -1
  271. freestyle/chainingiterators/__init__.pyi +3 -1
  272. freestyle/functions/__init__.pyi +3 -1
  273. freestyle/predicates/__init__.pyi +3 -1
  274. freestyle/shaders/__init__.pyi +3 -1
  275. freestyle/types/__init__.pyi +3 -1
  276. freestyle/utils/ContextFunctions/__init__.pyi +3 -1
  277. freestyle/utils/__init__.pyi +3 -1
  278. gpu/__init__.pyi +3 -1
  279. gpu/capabilities/__init__.pyi +3 -1
  280. gpu/matrix/__init__.pyi +3 -1
  281. gpu/platform/__init__.pyi +3 -1
  282. gpu/select/__init__.pyi +3 -1
  283. gpu/shader/__init__.pyi +3 -1
  284. gpu/state/__init__.pyi +3 -1
  285. gpu/texture/__init__.pyi +3 -1
  286. gpu/types/__init__.pyi +3 -1
  287. gpu_extras/__init__.pyi +3 -1
  288. gpu_extras/batch/__init__.pyi +3 -1
  289. gpu_extras/presets/__init__.pyi +3 -1
  290. graphviz_export/__init__.pyi +3 -1
  291. idprop/__init__.pyi +3 -1
  292. idprop/types/__init__.pyi +3 -1
  293. imbuf/__init__.pyi +3 -1
  294. imbuf/types/__init__.pyi +3 -1
  295. keyingsets_builtins/__init__.pyi +3 -1
  296. keyingsets_utils/__init__.pyi +3 -1
  297. mathutils/__init__.pyi +5 -2
  298. mathutils/bvhtree/__init__.pyi +3 -1
  299. mathutils/geometry/__init__.pyi +3 -1
  300. mathutils/interpolate/__init__.pyi +3 -1
  301. mathutils/kdtree/__init__.pyi +3 -1
  302. mathutils/noise/__init__.pyi +3 -1
  303. nodeitems_builtins/__init__.pyi +3 -1
  304. nodeitems_utils/__init__.pyi +3 -1
  305. rna_info/__init__.pyi +3 -1
  306. rna_keymap_ui/__init__.pyi +3 -1
  307. rna_prop_ui/__init__.pyi +3 -1
  308. rna_xml/__init__.pyi +3 -1
  309. sys_info/__init__.pyi +3 -1
  310. fake_bpy_module-20240518.dist-info/RECORD +0 -353
  311. {fake_bpy_module-20240518.dist-info → fake_bpy_module-20240520.dist-info}/WHEEL +0 -0
  312. {fake_bpy_module-20240518.dist-info → fake_bpy_module-20240520.dist-info}/top_level.txt +0 -0
bmesh/ops/__init__.pyi CHANGED
@@ -14,11 +14,13 @@ This script shows how operators can be used to model a link of a chain.
14
14
  """
15
15
 
16
16
  import typing
17
+ import collections.abc
17
18
  import bmesh.types
18
19
  import bpy.types
19
20
  import mathutils
20
21
 
21
- GenericType = typing.TypeVar("GenericType")
22
+ GenericType1 = typing.TypeVar("GenericType1")
23
+ GenericType2 = typing.TypeVar("GenericType2")
22
24
 
23
25
  def average_vert_facedata(bm: bmesh.types.BMesh, verts: list[bmesh.types.BMVert] = []):
24
26
  """Average Vertices Face-vert Data.Merge uv/vcols associated with the input vertices at
@@ -38,7 +40,7 @@ def beautify_fill(
38
40
  faces: list[bmesh.types.BMFace] = [],
39
41
  edges: list[bmesh.types.BMEdge] = [],
40
42
  use_restrict_tag: bool = False,
41
- method: str | int = "AREA",
43
+ method: str = "AREA",
42
44
  ) -> dict[str, typing.Any]:
43
45
  """Beautify Fill.Rotate edges to create more evenly spaced triangles.
44
46
 
@@ -51,7 +53,7 @@ def beautify_fill(
51
53
  :param use_restrict_tag: restrict edge rotation to mixed tagged vertices
52
54
  :type use_restrict_tag: bool
53
55
  :param method: method to define what is beautiful
54
- :type method: str | int
56
+ :type method: str
55
57
  :return: geom: new flipped faces and edges
56
58
 
57
59
  type list of (`bmesh.types.BMVert`, `bmesh.types.BMEdge`, `bmesh.types.BMFace`)
@@ -66,23 +68,23 @@ def bevel(
66
68
  | list[bmesh.types.BMEdge]
67
69
  | list[bmesh.types.BMFace] = [],
68
70
  offset: float = 0,
69
- offset_type: str | int = "OFFSET",
70
- profile_type: str | int = "SUPERELLIPSE",
71
+ offset_type: str = "OFFSET",
72
+ profile_type: str = "SUPERELLIPSE",
71
73
  segments: int = 0,
72
74
  profile: float = 0,
73
- affect: str | int = "VERTICES",
75
+ affect: str = "VERTICES",
74
76
  clamp_overlap: bool = False,
75
77
  material: int = 0,
76
78
  loop_slide: bool = False,
77
79
  mark_seam: bool = False,
78
80
  mark_sharp: bool = False,
79
81
  harden_normals: bool = False,
80
- face_strength_mode: str | int = "NONE",
81
- miter_outer: str | int = "SHARP",
82
- miter_inner: str | int = "SHARP",
82
+ face_strength_mode: str = "NONE",
83
+ miter_outer: str = "SHARP",
84
+ miter_inner: str = "SHARP",
83
85
  spread: float = 0,
84
86
  custom_profile: bpy.types.bpy_struct = None,
85
- vmesh_method: str | int = "ADJ",
87
+ vmesh_method: str = "ADJ",
86
88
  ) -> dict[str, typing.Any]:
87
89
  """Bevel.Bevels edges and vertices
88
90
 
@@ -93,15 +95,15 @@ def bevel(
93
95
  :param offset: amount to offset beveled edge
94
96
  :type offset: float
95
97
  :param offset_type: how to measure the offset
96
- :type offset_type: str | int
98
+ :type offset_type: str
97
99
  :param profile_type: The profile type to use for bevel.
98
- :type profile_type: str | int
100
+ :type profile_type: str
99
101
  :param segments: number of segments in bevel
100
102
  :type segments: int
101
103
  :param profile: profile shape, 0->1 (.5=>round)
102
104
  :type profile: float
103
105
  :param affect: Whether to bevel vertices or edges.
104
- :type affect: str | int
106
+ :type affect: str
105
107
  :param clamp_overlap: do not allow beveled edges/vertices to overlap each other
106
108
  :type clamp_overlap: bool
107
109
  :param material: material for bevel faces, -1 means get from adjacent faces
@@ -115,17 +117,17 @@ def bevel(
115
117
  :param harden_normals: harden normals
116
118
  :type harden_normals: bool
117
119
  :param face_strength_mode: whether to set face strength, and which faces to set if so
118
- :type face_strength_mode: str | int
120
+ :type face_strength_mode: str
119
121
  :param miter_outer: outer miter kind
120
- :type miter_outer: str | int
122
+ :type miter_outer: str
121
123
  :param miter_inner: outer miter kind
122
- :type miter_inner: str | int
124
+ :type miter_inner: str
123
125
  :param spread: amount to offset beveled edge
124
126
  :type spread: float
125
127
  :param custom_profile: CurveProfile, if None ignored
126
128
  :type custom_profile: bpy.types.bpy_struct
127
129
  :param vmesh_method: The method to use to create meshes at intersections.
128
- :type vmesh_method: str | int
130
+ :type vmesh_method: str
129
131
  :return: faces: output faces
130
132
 
131
133
  type list of (`bmesh.types.BMFace`)
@@ -679,7 +681,7 @@ def delete(
679
681
  geom: list[bmesh.types.BMVert]
680
682
  | list[bmesh.types.BMEdge]
681
683
  | list[bmesh.types.BMFace] = [],
682
- context: str | int = "VERTS",
684
+ context: str = "VERTS",
683
685
  ):
684
686
  """Delete Geometry.Utility operator to delete geometry.
685
687
 
@@ -688,7 +690,7 @@ def delete(
688
690
  :param geom: input geometry
689
691
  :type geom: list[bmesh.types.BMVert] | list[bmesh.types.BMEdge] | list[bmesh.types.BMFace]
690
692
  :param context: geometry types to delete
691
- :type context: str | int
693
+ :type context: str
692
694
  """
693
695
 
694
696
  ...
@@ -1287,7 +1289,7 @@ def mirror(
1287
1289
  | list[bmesh.types.BMFace] = [],
1288
1290
  matrix: typing.Sequence[float] | mathutils.Matrix = None(4),
1289
1291
  merge_dist: float = 0,
1290
- axis: str | int = "X",
1292
+ axis: str = "X",
1291
1293
  mirror_u: bool = False,
1292
1294
  mirror_v: bool = False,
1293
1295
  mirror_udim: bool = False,
@@ -1306,7 +1308,7 @@ def mirror(
1306
1308
  :param merge_dist: maximum distance for merging. does no merging if 0.
1307
1309
  :type merge_dist: float
1308
1310
  :param axis: the axis to use.
1309
- :type axis: str | int
1311
+ :type axis: str
1310
1312
  :param mirror_u: mirror UVs across the u axis
1311
1313
  :type mirror_u: bool
1312
1314
  :param mirror_v: mirror UVs across the v axis
@@ -1422,7 +1424,7 @@ def poke(
1422
1424
  bm: bmesh.types.BMesh,
1423
1425
  faces: list[bmesh.types.BMFace] = [],
1424
1426
  offset: float = 0,
1425
- center_mode: str | int = "MEAN_WEIGHTED",
1427
+ center_mode: str = "MEAN_WEIGHTED",
1426
1428
  use_relative_offset: bool = False,
1427
1429
  ) -> dict[str, typing.Any]:
1428
1430
  """Pokes a face.Splits a face into a triangle fan.
@@ -1434,7 +1436,7 @@ def poke(
1434
1436
  :param offset: center vertex offset along normal
1435
1437
  :type offset: float
1436
1438
  :param center_mode: calculation mode for center vertex
1437
- :type center_mode: str | int
1439
+ :type center_mode: str
1438
1440
  :param use_relative_offset: apply offset
1439
1441
  :type use_relative_offset: bool
1440
1442
  :return: verts: output verts
@@ -1860,10 +1862,10 @@ def split_edges(
1860
1862
  def subdivide_edgering(
1861
1863
  bm: bmesh.types.BMesh,
1862
1864
  edges: list[bmesh.types.BMEdge] = [],
1863
- interp_mode: str | int = "LINEAR",
1865
+ interp_mode: str = "LINEAR",
1864
1866
  smooth: float = 0,
1865
1867
  cuts: int = 0,
1866
- profile_shape: str | int = "SMOOTH",
1868
+ profile_shape: str = "SMOOTH",
1867
1869
  profile_shape_factor: float = 0,
1868
1870
  ) -> dict[str, typing.Any]:
1869
1871
  """Subdivide Edge-Ring.Take an edge-ring, and subdivide with interpolation options.
@@ -1873,13 +1875,13 @@ def subdivide_edgering(
1873
1875
  :param edges: input vertices
1874
1876
  :type edges: list[bmesh.types.BMEdge]
1875
1877
  :param interp_mode: interpolation method
1876
- :type interp_mode: str | int
1878
+ :type interp_mode: str
1877
1879
  :param smooth: smoothness factor
1878
1880
  :type smooth: float
1879
1881
  :param cuts: number of cuts
1880
1882
  :type cuts: int
1881
1883
  :param profile_shape: profile shape type
1882
- :type profile_shape: str | int
1884
+ :type profile_shape: str
1883
1885
  :param profile_shape_factor: how much intermediary new edges are shrunk/expanded
1884
1886
  :type profile_shape_factor: float
1885
1887
  :return: faces: output faces
@@ -1894,14 +1896,14 @@ def subdivide_edges(
1894
1896
  bm: bmesh.types.BMesh,
1895
1897
  edges: list[bmesh.types.BMEdge] = [],
1896
1898
  smooth: float = 0,
1897
- smooth_falloff: str | int = "SMOOTH",
1899
+ smooth_falloff: str = "SMOOTH",
1898
1900
  fractal: float = 0,
1899
1901
  along_normal: float = 0,
1900
1902
  cuts: int = 0,
1901
1903
  seed: int = 0,
1902
1904
  custom_patterns={},
1903
1905
  edge_percents={},
1904
- quad_corner_type: str | int = "STRAIGHT_CUT",
1906
+ quad_corner_type: str = "STRAIGHT_CUT",
1905
1907
  use_grid_fill: bool = False,
1906
1908
  use_single_edge: bool = False,
1907
1909
  use_only_quads: bool = False,
@@ -1918,7 +1920,7 @@ def subdivide_edges(
1918
1920
  :param smooth: smoothness factor
1919
1921
  :type smooth: float
1920
1922
  :param smooth_falloff: smooth falloff type
1921
- :type smooth_falloff: str | int
1923
+ :type smooth_falloff: str
1922
1924
  :param fractal: fractal randomness factor
1923
1925
  :type fractal: float
1924
1926
  :param along_normal: apply fractal displacement along normal only
@@ -1930,7 +1932,7 @@ def subdivide_edges(
1930
1932
  :param custom_patterns: uses custom pointers
1931
1933
  :param edge_percents: Undocumented.
1932
1934
  :param quad_corner_type: quad corner type
1933
- :type quad_corner_type: str | int
1935
+ :type quad_corner_type: str
1934
1936
  :param use_grid_fill: fill in fully-selected faces with a grid
1935
1937
  :type use_grid_fill: bool
1936
1938
  :param use_single_edge: tessellate the case of one edge selected in a quad or triangle
@@ -1962,7 +1964,7 @@ def symmetrize(
1962
1964
  input: list[bmesh.types.BMVert]
1963
1965
  | list[bmesh.types.BMEdge]
1964
1966
  | list[bmesh.types.BMFace] = [],
1965
- direction: str | int = "-X",
1967
+ direction: str = "-X",
1966
1968
  dist: float = 0,
1967
1969
  use_shapekey: bool = False,
1968
1970
  ) -> dict[str, typing.Any]:
@@ -1976,7 +1978,7 @@ def symmetrize(
1976
1978
  :param input: input geometry
1977
1979
  :type input: list[bmesh.types.BMVert] | list[bmesh.types.BMEdge] | list[bmesh.types.BMFace]
1978
1980
  :param direction: axis to use
1979
- :type direction: str | int
1981
+ :type direction: str
1980
1982
  :param dist: minimum distance
1981
1983
  :type dist: float
1982
1984
  :param use_shapekey: Transform shape keys too.
@@ -2066,8 +2068,8 @@ def triangle_fill(
2066
2068
  def triangulate(
2067
2069
  bm: bmesh.types.BMesh,
2068
2070
  faces: list[bmesh.types.BMFace] = [],
2069
- quad_method: str | int = "BEAUTY",
2070
- ngon_method: str | int = "BEAUTY",
2071
+ quad_method: str = "BEAUTY",
2072
+ ngon_method: str = "BEAUTY",
2071
2073
  ) -> dict[str, typing.Any]:
2072
2074
  """Triangulate.
2073
2075
 
@@ -2076,9 +2078,9 @@ def triangulate(
2076
2078
  :param faces: input faces
2077
2079
  :type faces: list[bmesh.types.BMFace]
2078
2080
  :param quad_method: method for splitting the quads into triangles
2079
- :type quad_method: str | int
2081
+ :type quad_method: str
2080
2082
  :param ngon_method: method for splitting the polygons into triangles
2081
- :type ngon_method: str | int
2083
+ :type ngon_method: str
2082
2084
  :return: edges:
2083
2085
 
2084
2086
  type list of (`bmesh.types.BMEdge`)
bmesh/types/__init__.pyi CHANGED
@@ -20,10 +20,12 @@
20
20
  """
21
21
 
22
22
  import typing
23
+ import collections.abc
23
24
  import bpy.types
24
25
  import mathutils
25
26
 
26
- GenericType = typing.TypeVar("GenericType")
27
+ GenericType1 = typing.TypeVar("GenericType1")
28
+ GenericType2 = typing.TypeVar("GenericType2")
27
29
 
28
30
  class BMDeformVert:
29
31
  def clear(self):
@@ -324,19 +326,19 @@ class BMEdgeSeq:
324
326
  """
325
327
  ...
326
328
 
327
- def __iter__(self) -> typing.Iterator[GenericType]:
329
+ def __iter__(self) -> typing.Iterator[GenericType1]:
328
330
  """
329
331
 
330
332
  :return:
331
- :rtype: typing.Iterator[GenericType]
333
+ :rtype: typing.Iterator[GenericType1]
332
334
  """
333
335
  ...
334
336
 
335
- def __next__(self) -> GenericType:
337
+ def __next__(self) -> GenericType1:
336
338
  """
337
339
 
338
340
  :return:
339
- :rtype: GenericType
341
+ :rtype: GenericType1
340
342
  """
341
343
  ...
342
344
 
@@ -396,49 +398,49 @@ class BMElemSeq:
396
398
  """Initialize the index values of this sequence.This is the equivalent of looping over all elements and assigning the index values."""
397
399
  ...
398
400
 
399
- def __getitem__(self, key: int) -> GenericType:
401
+ def __getitem__(self, key: int) -> GenericType1:
400
402
  """
401
403
 
402
404
  :param key:
403
405
  :type key: int
404
406
  :return:
405
- :rtype: GenericType
407
+ :rtype: GenericType1
406
408
  """
407
409
  ...
408
410
 
409
- def __setitem__(self, key: int, value: GenericType):
411
+ def __setitem__(self, key: int, value: GenericType1):
410
412
  """
411
413
 
412
414
  :param key:
413
415
  :type key: int
414
416
  :param value:
415
- :type value: GenericType
417
+ :type value: GenericType1
416
418
  """
417
419
  ...
418
420
 
419
- def __delitem__(self, key: int) -> GenericType:
421
+ def __delitem__(self, key: int) -> GenericType1:
420
422
  """
421
423
 
422
424
  :param key:
423
425
  :type key: int
424
426
  :return:
425
- :rtype: GenericType
427
+ :rtype: GenericType1
426
428
  """
427
429
  ...
428
430
 
429
- def __iter__(self) -> typing.Iterator[GenericType]:
431
+ def __iter__(self) -> typing.Iterator[GenericType1]:
430
432
  """
431
433
 
432
434
  :return:
433
- :rtype: typing.Iterator[GenericType]
435
+ :rtype: typing.Iterator[GenericType1]
434
436
  """
435
437
  ...
436
438
 
437
- def __next__(self) -> GenericType:
439
+ def __next__(self) -> GenericType1:
438
440
  """
439
441
 
440
442
  :return:
441
- :rtype: GenericType
443
+ :rtype: GenericType1
442
444
  """
443
445
  ...
444
446
 
@@ -740,19 +742,19 @@ class BMFaceSeq:
740
742
  """
741
743
  ...
742
744
 
743
- def __iter__(self) -> typing.Iterator[GenericType]:
745
+ def __iter__(self) -> typing.Iterator[GenericType1]:
744
746
  """
745
747
 
746
748
  :return:
747
- :rtype: typing.Iterator[GenericType]
749
+ :rtype: typing.Iterator[GenericType1]
748
750
  """
749
751
  ...
750
752
 
751
- def __next__(self) -> GenericType:
753
+ def __next__(self) -> GenericType1:
752
754
  """
753
755
 
754
756
  :return:
755
- :rtype: GenericType
757
+ :rtype: GenericType1
756
758
  """
757
759
  ...
758
760
 
@@ -1130,19 +1132,19 @@ class BMLoopSeq:
1130
1132
  """
1131
1133
  ...
1132
1134
 
1133
- def __iter__(self) -> typing.Iterator[GenericType]:
1135
+ def __iter__(self) -> typing.Iterator[GenericType1]:
1134
1136
  """
1135
1137
 
1136
1138
  :return:
1137
- :rtype: typing.Iterator[GenericType]
1139
+ :rtype: typing.Iterator[GenericType1]
1138
1140
  """
1139
1141
  ...
1140
1142
 
1141
- def __next__(self) -> GenericType:
1143
+ def __next__(self) -> GenericType1:
1142
1144
  """
1143
1145
 
1144
1146
  :return:
1145
- :rtype: GenericType
1147
+ :rtype: GenericType1
1146
1148
  """
1147
1149
  ...
1148
1150
 
@@ -1408,19 +1410,19 @@ class BMVertSeq:
1408
1410
  """
1409
1411
  ...
1410
1412
 
1411
- def __iter__(self) -> typing.Iterator[GenericType]:
1413
+ def __iter__(self) -> typing.Iterator[GenericType1]:
1412
1414
  """
1413
1415
 
1414
1416
  :return:
1415
- :rtype: typing.Iterator[GenericType]
1417
+ :rtype: typing.Iterator[GenericType1]
1416
1418
  """
1417
1419
  ...
1418
1420
 
1419
- def __next__(self) -> GenericType:
1421
+ def __next__(self) -> GenericType1:
1420
1422
  """
1421
1423
 
1422
1424
  :return:
1423
- :rtype: GenericType
1425
+ :rtype: GenericType1
1424
1426
  """
1425
1427
  ...
1426
1428
 
@@ -1583,10 +1585,11 @@ class BMesh:
1583
1585
  """
1584
1586
  ...
1585
1587
 
1586
- def transform(self, matrix, filter: set = None):
1588
+ def transform(self, matrix: mathutils.Matrix, filter: set = None):
1587
1589
  """Transform the mesh (optionally filtering flagged data only).
1588
1590
 
1589
1591
  :param matrix: transform matrix.
1592
+ :type matrix: mathutils.Matrix
1590
1593
  :param filter: set of values in ('SELECT', 'HIDE', 'SEAM', 'SMOOTH', 'TAG').
1591
1594
  :type filter: set
1592
1595
  """
bmesh/utils/__init__.pyi CHANGED
@@ -4,9 +4,11 @@ This module provides access to blenders bmesh data structures.
4
4
  """
5
5
 
6
6
  import typing
7
+ import collections.abc
7
8
  import bmesh.types
8
9
 
9
- GenericType = typing.TypeVar("GenericType")
10
+ GenericType1 = typing.TypeVar("GenericType1")
11
+ GenericType2 = typing.TypeVar("GenericType2")
10
12
 
11
13
  def edge_rotate(edge: bmesh.types.BMEdge, ccw: bool = False) -> bmesh.types.BMEdge:
12
14
  """Rotate the edge and return the newly created edge.
bpy/__init__.pyi CHANGED
@@ -6,6 +6,7 @@ This module is used for all Blender/Python access.
6
6
  """
7
7
 
8
8
  import typing
9
+ import collections.abc
9
10
  import bpy.types
10
11
 
11
12
  from . import app
@@ -16,7 +17,8 @@ from . import props
16
17
  from . import types
17
18
  from . import utils
18
19
 
19
- GenericType = typing.TypeVar("GenericType")
20
+ GenericType1 = typing.TypeVar("GenericType1")
21
+ GenericType2 = typing.TypeVar("GenericType2")
20
22
  context: bpy.types.Context
21
23
 
22
24
  data: bpy.types.BlendData
bpy/app/__init__.pyi CHANGED
@@ -12,12 +12,14 @@ bpy.app.timers.rst
12
12
  """
13
13
 
14
14
  import typing
15
+ import collections.abc
15
16
  from . import handlers
16
17
  from . import icons
17
18
  from . import timers
18
19
  from . import translations
19
20
 
20
- GenericType = typing.TypeVar("GenericType")
21
+ GenericType1 = typing.TypeVar("GenericType1")
22
+ GenericType2 = typing.TypeVar("GenericType2")
21
23
 
22
24
  def help_text(all: bool | None = False):
23
25
  """Return the help text as a string.
@@ -40,9 +40,11 @@ Below is an example of a mesh that is altered from a handler:
40
40
  """
41
41
 
42
42
  import typing
43
+ import collections.abc
43
44
  import bpy.types
44
45
 
45
- GenericType = typing.TypeVar("GenericType")
46
+ GenericType1 = typing.TypeVar("GenericType1")
47
+ GenericType2 = typing.TypeVar("GenericType2")
46
48
  animation_playback_post: list[typing.Callable[[bpy.types.Scene, None]]]
47
49
  """ on ending animation playback
48
50
  """
@@ -1,6 +1,8 @@
1
1
  import typing
2
+ import collections.abc
2
3
 
3
- GenericType = typing.TypeVar("GenericType")
4
+ GenericType1 = typing.TypeVar("GenericType1")
5
+ GenericType2 = typing.TypeVar("GenericType2")
4
6
 
5
7
  def new_triangles(
6
8
  range: tuple | None,
@@ -31,25 +31,23 @@ Pythons queue.Queue can be used here, because it implements the required locking
31
31
  """
32
32
 
33
33
  import typing
34
+ import collections.abc
34
35
 
35
- GenericType = typing.TypeVar("GenericType")
36
+ GenericType1 = typing.TypeVar("GenericType1")
37
+ GenericType2 = typing.TypeVar("GenericType2")
36
38
 
37
- def is_registered(function: int | None) -> bool:
39
+ def is_registered(function: typing.Callable[[], float]) -> bool:
38
40
  """Check if this function is registered as a timer.
39
41
 
40
42
  :param function: Function to check.
41
- :type function: int | None
43
+ :type function: typing.Callable[[], float]
42
44
  :return: True when this function is registered, otherwise False.
43
45
  :rtype: bool
44
46
  """
45
47
 
46
48
  ...
47
49
 
48
- def register(
49
- function: typing.Callable | None,
50
- first_interval: float | None = 0,
51
- persistent: bool | None = False,
52
- ):
50
+ def register(function: typing.Callable[[], float]):
53
51
  """Add a new function that will be called after the specified amount of seconds.
54
52
  The function gets no arguments and is expected to return either None or a float.
55
53
  If None is returned, the timer will be unregistered.
@@ -57,20 +55,16 @@ def register(
57
55
  functools.partial can be used to assign some parameters.
58
56
 
59
57
  :param function: The function that should called.
60
- :type function: typing.Callable | None
61
- :param first_interval: Seconds until the callback should be called the first time.
62
- :type first_interval: float | None
63
- :param persistent: Don't remove timer when a new file is loaded.
64
- :type persistent: bool | None
58
+ :type function: typing.Callable[[], float]
65
59
  """
66
60
 
67
61
  ...
68
62
 
69
- def unregister(function: typing.Any | None):
63
+ def unregister(function: typing.Callable[[], float]):
70
64
  """Unregister timer.
71
65
 
72
66
  :param function: Function to unregister.
73
- :type function: typing.Any | None
67
+ :type function: typing.Callable[[], float]
74
68
  """
75
69
 
76
70
  ...
@@ -57,8 +57,10 @@ for more info.
57
57
  """
58
58
 
59
59
  import typing
60
+ import collections.abc
60
61
 
61
- GenericType = typing.TypeVar("GenericType")
62
+ GenericType1 = typing.TypeVar("GenericType1")
63
+ GenericType2 = typing.TypeVar("GenericType2")
62
64
 
63
65
  def locale_explode(locale):
64
66
  """Return all components and their combinations of the given ISO locale string.For non-complete locales, missing elements will be None.
bpy/msgbus/__init__.pyi CHANGED
@@ -45,8 +45,10 @@ see bpy.app.handlers.load_post.
45
45
  """
46
46
 
47
47
  import typing
48
+ import collections.abc
48
49
 
49
- GenericType = typing.TypeVar("GenericType")
50
+ GenericType1 = typing.TypeVar("GenericType1")
51
+ GenericType2 = typing.TypeVar("GenericType2")
50
52
 
51
53
  def clear_by_owner(owner):
52
54
  """Clear all subscribers using this owner."""
bpy/ops/__init__.pyi CHANGED
@@ -150,6 +150,7 @@ bpy.ops.*
150
150
  """
151
151
 
152
152
  import typing
153
+ import collections.abc
153
154
  from . import action
154
155
  from . import anim
155
156
  from . import armature
@@ -227,4 +228,5 @@ from . import wm
227
228
  from . import workspace
228
229
  from . import world
229
230
 
230
- GenericType = typing.TypeVar("GenericType")
231
+ GenericType1 = typing.TypeVar("GenericType1")
232
+ GenericType2 = typing.TypeVar("GenericType2")