fake-bpy-module 20241207__py3-none-any.whl → 20241208__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 (39) hide show
  1. addon_utils/__init__.pyi +2 -1
  2. bl_console_utils/autocomplete/complete_calltip/__init__.pyi +5 -2
  3. bl_console_utils/autocomplete/complete_import/__init__.pyi +6 -3
  4. bl_console_utils/autocomplete/complete_namespace/__init__.pyi +2 -1
  5. bl_console_utils/autocomplete/intellisense/__init__.pyi +8 -2
  6. blf/__init__.pyi +2 -1
  7. bmesh/ops/__init__.pyi +110 -53
  8. bmesh/types/__init__.pyi +18 -10
  9. bmesh/utils/__init__.pyi +14 -4
  10. bpy/app/icons/__init__.pyi +4 -1
  11. bpy/app/translations/__init__.pyi +4 -1
  12. bpy/msgbus/__init__.pyi +8 -5
  13. bpy/path/__init__.pyi +4 -2
  14. bpy/types/__init__.pyi +68 -32
  15. bpy/utils/__init__.pyi +18 -9
  16. bpy_extras/bmesh_utils/__init__.pyi +2 -1
  17. bpy_extras/io_utils/__init__.pyi +7 -2
  18. bpy_extras/mesh_utils/__init__.pyi +19 -7
  19. bpy_extras/view3d_utils/__init__.pyi +2 -2
  20. {fake_bpy_module-20241207.dist-info → fake_bpy_module-20241208.dist-info}/METADATA +1 -1
  21. {fake_bpy_module-20241207.dist-info → fake_bpy_module-20241208.dist-info}/RECORD +39 -39
  22. freestyle/functions/__init__.pyi +16 -4
  23. freestyle/types/__init__.pyi +60 -23
  24. freestyle/utils/ContextFunctions/__init__.pyi +2 -2
  25. gpu/capabilities/__init__.pyi +2 -1
  26. gpu/state/__init__.pyi +2 -2
  27. gpu/types/__init__.pyi +2 -2
  28. gpu_extras/batch/__init__.pyi +6 -3
  29. idprop/types/__init__.pyi +4 -3
  30. imbuf/__init__.pyi +2 -1
  31. imbuf/types/__init__.pyi +5 -2
  32. mathutils/__init__.pyi +25 -14
  33. mathutils/bvhtree/__init__.pyi +8 -7
  34. mathutils/geometry/__init__.pyi +38 -17
  35. mathutils/interpolate/__init__.pyi +2 -1
  36. mathutils/kdtree/__init__.pyi +11 -6
  37. mathutils/noise/__init__.pyi +2 -1
  38. {fake_bpy_module-20241207.dist-info → fake_bpy_module-20241208.dist-info}/WHEEL +0 -0
  39. {fake_bpy_module-20241207.dist-info → fake_bpy_module-20241208.dist-info}/top_level.txt +0 -0
@@ -2,17 +2,20 @@ import typing
2
2
  import collections.abc
3
3
  import typing_extensions
4
4
  import bpy.types
5
+ import mathutils
5
6
 
6
- def edge_face_count(mesh):
7
+ def edge_face_count(mesh) -> list[int]:
7
8
  """
8
9
 
9
10
  :return: list face users for each item in mesh.edges.
11
+ :rtype: list[int]
10
12
  """
11
13
 
12
- def edge_face_count_dict(mesh):
14
+ def edge_face_count_dict(mesh) -> dict[tuple[int, int], int]:
13
15
  """
14
16
 
15
17
  :return: Dictionary of edge keys with their value set to the number of faces using each edge.
18
+ :rtype: dict[tuple[int, int], int]
16
19
  """
17
20
 
18
21
  def edge_loops_from_edges(mesh, edges=None):
@@ -21,46 +24,55 @@ def edge_loops_from_edges(mesh, edges=None):
21
24
 
22
25
  """
23
26
 
24
- def mesh_linked_triangles(mesh: bpy.types.Mesh):
27
+ def mesh_linked_triangles(
28
+ mesh: bpy.types.Mesh,
29
+ ) -> list[list[bpy.types.MeshLoopTriangle]]:
25
30
  """Splits the mesh into connected triangles, use this for separating cubes from
26
31
  other mesh elements within 1 mesh data-block.
27
32
 
28
33
  :param mesh: the mesh used to group with.
29
34
  :type mesh: bpy.types.Mesh
30
35
  :return: Lists of lists containing triangles.
36
+ :rtype: list[list[bpy.types.MeshLoopTriangle]]
31
37
  """
32
38
 
33
- def mesh_linked_uv_islands(mesh: bpy.types.Mesh):
39
+ def mesh_linked_uv_islands(mesh: bpy.types.Mesh) -> list[list[int]]:
34
40
  """Returns lists of polygon indices connected by UV islands.
35
41
 
36
42
  :param mesh: the mesh used to group with.
37
43
  :type mesh: bpy.types.Mesh
38
44
  :return: list of lists containing polygon indices
45
+ :rtype: list[list[int]]
39
46
  """
40
47
 
41
48
  def ngon_tessellate(
42
- from_data: bpy.types.Mesh, indices, fix_loops: bool = True, debug_print=True
49
+ from_data: bpy.types.Mesh | list | tuple,
50
+ indices: list[int],
51
+ fix_loops: bool = True,
52
+ debug_print=True,
43
53
  ):
44
54
  """Takes a poly-line of indices (ngon) and returns a list of face
45
55
  index lists. Designed to be used for importers that need indices for an
46
56
  ngon to create from existing verts.
47
57
 
48
58
  :param from_data: Either a mesh, or a list/tuple of 3D vectors.
49
- :type from_data: bpy.types.Mesh
59
+ :type from_data: bpy.types.Mesh | list | tuple
50
60
  :param indices: a list of indices to use this list
51
61
  is the ordered closed poly-line
52
62
  to fill, and can be a subset of the data given.
63
+ :type indices: list[int]
53
64
  :param fix_loops: If this is enabled poly-lines
54
65
  that use loops to make multiple
55
66
  poly-lines are dealt with correctly.
56
67
  :type fix_loops: bool
57
68
  """
58
69
 
59
- def triangle_random_points(num_points: int, loop_triangles):
70
+ def triangle_random_points(num_points: int, loop_triangles) -> list[mathutils.Vector]:
60
71
  """Generates a list of random points over mesh loop triangles.
61
72
 
62
73
  :param num_points: The number of random points to generate on each triangle.
63
74
  :type num_points: int
64
75
  :param loop_triangles: Sequence of the triangles to generate points on.
65
76
  :return: List of random points over all triangles.
77
+ :rtype: list[mathutils.Vector]
66
78
  """
@@ -10,7 +10,7 @@ def location_3d_to_region_2d(
10
10
  coord: collections.abc.Sequence[float] | mathutils.Vector,
11
11
  *,
12
12
  default=None,
13
- ) -> mathutils.Vector:
13
+ ) -> mathutils.Vector | typing.Any:
14
14
  """Return the region relative 2d location of a 3d position.
15
15
 
16
16
  :param region: region of the 3D viewport, typically bpy.context.region.
@@ -22,7 +22,7 @@ def location_3d_to_region_2d(
22
22
  :param default: Return this value if coord
23
23
  is behind the origin of a perspective view.
24
24
  :return: 2d location
25
- :rtype: mathutils.Vector
25
+ :rtype: mathutils.Vector | typing.Any
26
26
  """
27
27
 
28
28
  def region_2d_to_location_3d(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fake-bpy-module
3
- Version: 20241207
3
+ Version: 20241208
4
4
  Summary: Collection of the fake Blender Python API module for the code completion.
5
5
  Author: nutti
6
6
  Author-email: nutti.metro@gmail.com
@@ -13,7 +13,7 @@ _bpy_internal/system_info/__init__.pyi,sha256=cR0YfdA5e1gzPoJPkqRHZUm8ArCVuyulST
13
13
  _bpy_internal/system_info/text_generate_runtime/__init__.pyi,sha256=KkCIdvrNtqXRvKaojEVaARNyX3CFnj8UCo7B_nKLC0A,86
14
14
  _bpy_internal/system_info/url_prefill_runtime/__init__.pyi,sha256=L1cEExq7nGmeqjqhRH6p5yUL4CN6iEQY0wAYLSw2nKw,109
15
15
  _bpy_internal/system_info/url_prefill_startup/__init__.pyi,sha256=cL1oQCJ1CvBoUdGEPgZVpxOOJPA7bZUJpzRl8zglcYk,107
16
- addon_utils/__init__.pyi,sha256=tH0c3thY37jEp4PRRKMlcbtGk5yRmry2XbjwunnSqnc,2935
16
+ addon_utils/__init__.pyi,sha256=4s4XkTkO6J9mPdDFdsO4wSxSp3tUcvCBrWRNZGeFsjc,2986
17
17
  addon_utils/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
18
18
  animsys_refactor/__init__.pyi,sha256=FVtTS8ep5YY_wxoK9FesObKvYKIffFgmOyS74iuza0s,643
19
19
  animsys_refactor/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -29,10 +29,10 @@ bl_app_template_utils/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuF
29
29
  bl_console_utils/__init__.pyi,sha256=p4bWNAE7oBrw2lAa-TPSZ8kb28KqPtGr424Pw5fzkrQ,105
30
30
  bl_console_utils/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
31
31
  bl_console_utils/autocomplete/__init__.pyi,sha256=1CvPuFjoJDhxlItbRP6MExpz7XmBqYRBEEBKtN5bQSg,260
32
- bl_console_utils/autocomplete/complete_calltip/__init__.pyi,sha256=oKwEQ5pfrU335R9vtdHcMJQyv-1ZHiuTXIlWbMHjt_M,1392
33
- bl_console_utils/autocomplete/complete_import/__init__.pyi,sha256=zAndkYNtjs1nsQO9ZjZxciK6Xhjtc4beqdW8JDhNpzk,752
34
- bl_console_utils/autocomplete/complete_namespace/__init__.pyi,sha256=EWNsi83Avbxe4sA2ckX79eR7opUBhF8aA07gz55YnLw,1474
35
- bl_console_utils/autocomplete/intellisense/__init__.pyi,sha256=S8ATABkNy_s3xgt4Z_gFsze5IfFyPAElokX0shc3bi4,1075
32
+ bl_console_utils/autocomplete/complete_calltip/__init__.pyi,sha256=WoKSgCKPGIavw2j3V2fk9tM2ZBLGAHIByyvmOfYtCeQ,1498
33
+ bl_console_utils/autocomplete/complete_import/__init__.pyi,sha256=2XxFNkz5qUbW6oRfXy6Ptmf5Vlpuue56V-6Z1Anzc5U,849
34
+ bl_console_utils/autocomplete/complete_namespace/__init__.pyi,sha256=emjpyJu4JFQXJj_1MjpG52DOfG3MRD8fhPkgybKbkag,1540
35
+ bl_console_utils/autocomplete/intellisense/__init__.pyi,sha256=yD2_ITf4qxPM5PmpBpUqmDDyXmo0wL7FJoy0v1DHXgo,1216
36
36
  bl_i18n_utils/__init__.pyi,sha256=wwDnr0xa8J6hchJ_heDMQfXuaEJAh00-F8GzAzc2i94,351
37
37
  bl_i18n_utils/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
38
38
  bl_i18n_utils/bl_extract_messages/__init__.pyi,sha256=-SHci_sMeOj7i_0oakfDXnDh5cXDLVGXUUkM5BnRMK8,1132
@@ -180,22 +180,22 @@ bl_ui_utils/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
180
180
  bl_ui_utils/layout/__init__.pyi,sha256=mp1VvL3NIJFMzYp8X0cqNC7mxqQOFPhgPr1FkF_HuDk,180
181
181
  blend_render_info/__init__.pyi,sha256=WHFzkXpAfG0YtOpMooq3ToN7pSljEX7aKloDANKjmFo,239
182
182
  blend_render_info/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
183
- blf/__init__.pyi,sha256=0n46YN4nuYtABay59u_t6R5wn-NjN9ijO1bKBJLFak8,5668
183
+ blf/__init__.pyi,sha256=iqTqgtGFqjs6kynxpOOOc0Nw3XfEmNeI6aAktBoBkv8,5723
184
184
  blf/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
185
185
  bmesh/__init__.pyi,sha256=6QP0wBMiFIY5MtM1Yuw4Qj2ZPtEZHFUdAf1ay4z-SQE,1500
186
186
  bmesh/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
187
187
  bmesh/geometry/__init__.pyi,sha256=fgGEevkhB2IEtja2X5rm6OQU5EoDfkPaqiKeNGfWZ6c,656
188
- bmesh/ops/__init__.pyi,sha256=2g2v8SvrQSXdMYnHnvmvF8KXoHLvEfVTU9dQMhLVoRY,71350
189
- bmesh/types/__init__.pyi,sha256=A9C3CsQTwg9Rl3sjBBKTPFO29o3QSFn_GlGxsgnPv4Q,42040
190
- bmesh/utils/__init__.pyi,sha256=SJYkdKVf0mB5pw8YuWXAW-7pZye2RXUF0F-Wo3Rd5gQ,5602
188
+ bmesh/ops/__init__.pyi,sha256=7W-Tv_SgkgEMa90SsRfRzBzNG2Wt1EU622YpkDYJthc,74701
189
+ bmesh/types/__init__.pyi,sha256=rm5SoXTeZCFOVBAWsN8bYzIKddWdxjt6Djx1g44SM3w,42601
190
+ bmesh/utils/__init__.pyi,sha256=4Ru6ZMwJzSC2SOlFwkke03I8XiEg6Cxc4LNhiLHB-tw,5988
191
191
  bpy/__init__.pyi,sha256=dozab_KhjTikiJAE59kzHS9tbX9OJc8U1vPdj6gNFJY,502
192
192
  bpy/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
193
193
  bpy/app/__init__.pyi,sha256=gQJdiazscopU-G66fjv1pOLRZykYpJ-6L0aIAYBvzKA,8205
194
194
  bpy/app/handlers/__init__.pyi,sha256=Gxao8v-gF10WpVRUdswsB4QndzHjO1UtymwrorJef-4,6911
195
- bpy/app/icons/__init__.pyi,sha256=m54z2uWnZ-R36iQuE_rnREcjYq3Fj9Ts0f8-q6suPco,858
195
+ bpy/app/icons/__init__.pyi,sha256=w18Xn9y0T54WlpHyhC3_y8a3Lq9kuo3U72Bu7wOY41A,928
196
196
  bpy/app/timers/__init__.pyi,sha256=vtrATRAmkTfP1CknievwpOCC19cPOMowyLTE6Ie9GSg,2126
197
- bpy/app/translations/__init__.pyi,sha256=ypfv8I8Y4IuZPZYLjME93WvmF3-fS-rABAftNuCUmoU,6742
198
- bpy/msgbus/__init__.pyi,sha256=WwfCka6NRfyJwg3AEU2T4xXILRZeZa8k1hepTBpt7hM,2765
197
+ bpy/app/translations/__init__.pyi,sha256=l5NXziSYWbDnNSWXam-Oseo4D8qh8NPButB_xMgpSps,6848
198
+ bpy/msgbus/__init__.pyi,sha256=e9cmp_Wq7FA5pDTQQJ2s0_I84bEJMu8J-5Lu5gNoClM,2954
199
199
  bpy/ops/__init__.pyi,sha256=JptIpKHRAy3jrKGANEBzrwmfNuZx8JLP9ofvWLCaLBU,5396
200
200
  bpy/ops/action/__init__.pyi,sha256=trRizaf6_HV4y0-jN7nhaAd0xQxFnzXuC8RinfgRbJ0,24480
201
201
  bpy/ops/anim/__init__.pyi,sha256=YFwVzrwUyXXNubpsPs1bD4YLxPJqBiB_uhCwqiak96M,34424
@@ -273,27 +273,27 @@ bpy/ops/view3d/__init__.pyi,sha256=2lr2OOlmYao1DxhG3UugV_WXB8IViYGBL5WXvxHUXOE,4
273
273
  bpy/ops/wm/__init__.pyi,sha256=dcHei-7_0zDIiJR95GXbjgd1MvXnW-2w9gFXDFQHEcw,231665
274
274
  bpy/ops/workspace/__init__.pyi,sha256=4qG0-HkVfaGfdBe9QvBCKUox03nb1ZfeV1fz-0b3KJY,3133
275
275
  bpy/ops/world/__init__.pyi,sha256=ytaDhwJ-K4SbWylChL1za6lvMNM2-RX1S0BR7892Afg,946
276
- bpy/path/__init__.pyi,sha256=XexWcsHek4S2exWHw2eiJvEkKEyWXE3E34hjXf-Od1g,5329
276
+ bpy/path/__init__.pyi,sha256=N-QNSw3piTmrzrydYRyWab7GFGOh3BsdaS91x4Kf-Cc,5403
277
277
  bpy/props/__init__.pyi,sha256=eHzPsDSyDTa92O5TvPpi1yflmxv7vVGW_ZocCqudgw4,31027
278
- bpy/types/__init__.pyi,sha256=iKjS5F0ar8V1HTTZPCVparvBsiHIr8NXWDCzQgvK0jM,5385432
278
+ bpy/types/__init__.pyi,sha256=6G_KEMFkGTYTIKuih45uqcmRlmXNH1giwMCHXCyy3w4,5387903
279
279
  bpy/typing/__init__.pyi,sha256=u2XKjd6ZB1Wjt7JwabxexZdswEZLYR2jQpxzzp6AThg,138679
280
- bpy/utils/__init__.pyi,sha256=fNpt-kiiVP9XWNCXbG1LPnq0TRjMWrDUZInAzrc2hUk,13239
280
+ bpy/utils/__init__.pyi,sha256=wvjdEDEtBn5bR5pZG7HnW1ZdL_J-IQYvmB7e4AwTW0s,13537
281
281
  bpy/utils/previews/__init__.pyi,sha256=AsbDN4vRLbSTZ7_S_4LqmI1sJmV_8NnqDt1QfBdH94Y,2280
282
282
  bpy/utils/units/__init__.pyi,sha256=r9G6UXferw_5pDijn-FmpyhYSnEng3_y-5apdkPAKl0,2631
283
283
  bpy_extras/__init__.pyi,sha256=wejK55NeAEGsAzM9psNhBokX9H0DBihwOdNQ5XlCHB4,968
284
284
  bpy_extras/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
285
285
  bpy_extras/anim_utils/__init__.pyi,sha256=LGnLuRoBzyZOOgCS5bS4IX-gue67k7pEhemshXNzP8U,4061
286
286
  bpy_extras/asset_utils/__init__.pyi,sha256=AaHtXcv1a-TrQUpu7Rm1A9gcwXRUZVaHOKjVV_hCcyM,194
287
- bpy_extras/bmesh_utils/__init__.pyi,sha256=7Zc-cplpLSSrJNfXWE-WDsl8w3RGkuPwWFp1ILTw_N8,431
287
+ bpy_extras/bmesh_utils/__init__.pyi,sha256=oo5HU1Z0ILE04jc7p68-4vFP8k7sD3qhcLGSoCbxv9g,478
288
288
  bpy_extras/id_map_utils/__init__.pyi,sha256=oTM7UGvrLRIhWXjHhXcwE20PNjSyRVXlV9FLAn_QCk4,450
289
289
  bpy_extras/image_utils/__init__.pyi,sha256=c3O1nv_u-Kr3VtKV8SBDvutYzIjPORiZ3--K5UNRgFw,2087
290
- bpy_extras/io_utils/__init__.pyi,sha256=puXyL8XrKToDgjv7TqqmMujAuZ30rcdmvMv9C6Q_nFU,5061
290
+ bpy_extras/io_utils/__init__.pyi,sha256=rGsN0KD8zOJVbOVq1VLmHYHwQ-Xm_ryEp5zfA-2wTSc,5289
291
291
  bpy_extras/keyconfig_utils/__init__.pyi,sha256=152lGc6wB3z4qLyEuthYUfB_vggCQKqnyonGni0lNNo,361
292
- bpy_extras/mesh_utils/__init__.pyi,sha256=oBjcLxt000jV4FXu6Eg3YjrQB28zhYPeCDrLSQiVjgE,2272
292
+ bpy_extras/mesh_utils/__init__.pyi,sha256=3n3TAu2Ni0oTQ1gXjynu-k4U5SEEamM0BYMdIy5YI78,2692
293
293
  bpy_extras/node_shader_utils/__init__.pyi,sha256=wUnsxxIUgiZ2-KL6A4duhnEmP9r1SgViTomWqGSOOes,5602
294
294
  bpy_extras/node_utils/__init__.pyi,sha256=WgqDrr6jIHW77WeGCy8WutcNcCr6zoqgTvMh_A1ToZo,630
295
295
  bpy_extras/object_utils/__init__.pyi,sha256=wQX9CMYSh1nyTVCbmgVPXyzwHokfNd8ZGqC9MyVnZG4,3336
296
- bpy_extras/view3d_utils/__init__.pyi,sha256=JFJaQakidVSqtuo8yhdHdwVY1i_JQSt3SRv6fVk3xE8,3644
296
+ bpy_extras/view3d_utils/__init__.pyi,sha256=uagbvfAFaRLiR-mq8BFs2eUQVpDx3PdF4wCvL2aMICk,3670
297
297
  bpy_extras/wm_utils/__init__.pyi,sha256=cnc2h-NDlAYDb9e5F5jCxnK4h96Mg-9QkdC6HH5p1VE,111
298
298
  bpy_extras/wm_utils/progress_report/__init__.pyi,sha256=lRvwzdkIKLAIIgS6BKRwHdZsnb8LRUNvIAVcA9vuysU,1708
299
299
  bpy_restrict_state/__init__.pyi,sha256=hz85c3uVSt_QKxJE6xtdNQmvOWzNM4P5GXwc7Xet5bg,239
@@ -307,45 +307,45 @@ console_shell/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
307
307
  freestyle/__init__.pyi,sha256=bjebH-BOh6r_bsMIXX2toGAPc183HD23o_UR8VvqZA0,716
308
308
  freestyle/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
309
309
  freestyle/chainingiterators/__init__.pyi,sha256=N7cwNzpTKVAv-ZdBTj0nqhICvHGVqBE8OdijmbT5HIo,10564
310
- freestyle/functions/__init__.pyi,sha256=XYveitaHq0iT_FRPa9-h7r_Qz1kuEOknwlIDy5hRzjY,48448
310
+ freestyle/functions/__init__.pyi,sha256=sEPnGHwZm8XBlfE7CKLros3CKJlAh1h1FI74nBTEOk4,48844
311
311
  freestyle/predicates/__init__.pyi,sha256=TI-9arpIRbq7ePsxHS-d-4iIj54uHMp-ZyGhPVODMPg,13461
312
312
  freestyle/shaders/__init__.pyi,sha256=1Ov48B4P7LV3dwjBqHqqqbPFRBZWjENqIDaFb97Qdj0,23835
313
- freestyle/types/__init__.pyi,sha256=G8vXeRcV3eG11cMwc1xOGd07E8iR9ymQ-68po_WihK8,98860
313
+ freestyle/types/__init__.pyi,sha256=p6WoVuWvAdGxcKMvxz-IrMbZiBTML9cbjgwgj-QnyI8,100051
314
314
  freestyle/utils/__init__.pyi,sha256=DdX3Qj2yTIu8jXdOAnf_9yKhJ5AQFnS_zVvSAdTfBpU,5108
315
- freestyle/utils/ContextFunctions/__init__.pyi,sha256=AdK38eLUN8YDE2Y-Am3gNUYxduClt0jmaDbr-WNv_cA,3401
315
+ freestyle/utils/ContextFunctions/__init__.pyi,sha256=fPDfiBEjpoqXQhBhmHJ6WxG9oLMItwQ32MxKQz_c9_I,3445
316
316
  gpu/__init__.pyi,sha256=Q-AbyJO85pPYcwXNWtvgAhFGGJ6OnnHrlsXQxur9jhs,7999
317
317
  gpu/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
318
- gpu/capabilities/__init__.pyi,sha256=AWZ4iiesW8Vm3TqVBGTescabAntQ3W9yRLbVvKfQktk,3719
318
+ gpu/capabilities/__init__.pyi,sha256=U7oWzRMBqfzk6vILPP0ydvD_i7OBr_D3LDIEwp8RxOE,3756
319
319
  gpu/matrix/__init__.pyi,sha256=k4xYJpqcuk1QL6TMql77yitRaIALd1oHYk5Oivgd1U4,2583
320
320
  gpu/platform/__init__.pyi,sha256=i04uMPhMl5w4ZNlXvep8f_7-AaVZ4R_ppcxikHuzQYA,803
321
321
  gpu/select/__init__.pyi,sha256=piRQyAtE8YnDjLSqF8S_SSttxzZTickDlbHRONYYdV8,207
322
322
  gpu/shader/__init__.pyi,sha256=JsSm0Zagw7GAVxeaLK4cUAa1oyjSckfNwpweWfepUQg,2138
323
- gpu/state/__init__.pyi,sha256=leYzxw4fK1piFODBnpxCce3qqQN61CIV-dJO7bALhaY,4266
323
+ gpu/state/__init__.pyi,sha256=AimAU8NQNaZqYSgKtg7aMS76dzxNuK7m1vTA2ZwMnCQ,4310
324
324
  gpu/texture/__init__.pyi,sha256=NWixhD9M2vFrAIWlQDM0Co-CNRiU7BbL7imkSOloHHI,641
325
- gpu/types/__init__.pyi,sha256=VLRILy5hoGUiVYoRyplS8B_fo08s5UZ6nsXqNwu1FEg,26871
325
+ gpu/types/__init__.pyi,sha256=o04T9r5Qy_GE5taf3nZvaONLn0ZeP15_nnQSE8qFdzQ,26919
326
326
  gpu_extras/__init__.pyi,sha256=oNgtMNheClZ_iCmKSH63hBJ4U0huayOWKil-qPvYHds,213
327
327
  gpu_extras/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
328
- gpu_extras/batch/__init__.pyi,sha256=XdMBpoKtUtV_HiwzFDQ50LVbLcmDzllEAVnXXkOEmfQ,816
328
+ gpu_extras/batch/__init__.pyi,sha256=WiNyGZ_ivr5sKh_DePTwqR4ue9QHd8YjBdJwUHHXMkk,856
329
329
  gpu_extras/presets/__init__.pyi,sha256=XARWkuQ0koiQPC3Cjh2l7D2f9n3IgHRf5Ymd9xKkjBg,1435
330
330
  graphviz_export/__init__.pyi,sha256=LBiepSfMSL7Qix8FZ6LYKmbPgu1AHRvRw3yHDDWYrEw,215
331
331
  graphviz_export/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
332
332
  idprop/__init__.pyi,sha256=k99082XuBl1__FNGc7dZUujlxTi6jK3J93dNtKNdgkE,91
333
333
  idprop/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
334
- idprop/types/__init__.pyi,sha256=AkFwX4Vc3ETak9udajrwSoXHCOJGrKYqdJz5WJ9NOQI,1673
335
- imbuf/__init__.pyi,sha256=XCQdYclqUX0CpOc6T-OFWZV6IzIDufmINKcnrq9yNUg,1068
334
+ idprop/types/__init__.pyi,sha256=fFSnDjuFFwu2jhm6BK57AxRx_i8zAkuf_blV2J0mvRk,1767
335
+ imbuf/__init__.pyi,sha256=nwnD-Tu8aABtY6tc77fqG639NSuGchsgzIDmGBusqAw,1117
336
336
  imbuf/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
337
- imbuf/types/__init__.pyi,sha256=NRVrN1gQm43xslIyHpaAHl8xSAHnfdnC1SRRA4nKpSk,1218
337
+ imbuf/types/__init__.pyi,sha256=DaqHsV8Ww9zWRa9DFegHohh6fCgf5lBd5diDm9mAUac,1375
338
338
  keyingsets_builtins/__init__.pyi,sha256=FmSnRj8eAiQ_O-X_-kAHM_a8rCv_HZBrjXLXDRssvYU,15769
339
339
  keyingsets_builtins/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
340
340
  keyingsets_utils/__init__.pyi,sha256=UpGuAqOVl6bmy3rffJhqFS8ZKhUtAV-MfVyuuHtqXQI,770
341
341
  keyingsets_utils/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
342
- mathutils/__init__.pyi,sha256=SrGCUnVJl9bJ4pT3hQmYvh6MKsGYm4vug3mmysid4YQ,87703
342
+ mathutils/__init__.pyi,sha256=7g6BeyjmKKkqyyHIlTDNuI1DdXXn1SzOXwAor-YC9HA,88309
343
343
  mathutils/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
344
- mathutils/bvhtree/__init__.pyi,sha256=zi6oZH7hH7hPxukwcJbvfJzi08duh8Pcd-lpco4jgxU,4229
345
- mathutils/geometry/__init__.pyi,sha256=hhY7bHKIbnN52XbiD1PNr2tFoHWQAd1Xe5BGVJ55tiI,20869
346
- mathutils/interpolate/__init__.pyi,sha256=nkP4MKX_cRjTbiXBtnZ6qi0eKyCzD3MNSwL4YvknABU,354
347
- mathutils/kdtree/__init__.pyi,sha256=nVAhyduLex6fTfxBhVRwudTbdOElbYXZjVUG1P-zgTA,1601
348
- mathutils/noise/__init__.pyi,sha256=YjVyhOr2LpaOINyz6s2werSFOJFT8gH2hcZRg2VTVTo,12626
344
+ mathutils/bvhtree/__init__.pyi,sha256=tnSMnnlM4AUV5BXMVRB8daXeBCc2dt1yF2VhVgx-png,4482
345
+ mathutils/geometry/__init__.pyi,sha256=YU4LyVtd5nl5KJeVsbOcWMNZhJlI9TQWIWJ5V-nrkz0,22182
346
+ mathutils/interpolate/__init__.pyi,sha256=3MR9khGFn6OavD1uxB06mLE8WC2zQdWDDuCTQFt0xMg,393
347
+ mathutils/kdtree/__init__.pyi,sha256=bE3wUvxhvzr3n5ENSAqYQyzPCuQtTsOwtzXtSqqX8go,1862
348
+ mathutils/noise/__init__.pyi,sha256=nDUTZpaghLXZwQG_8sVJnR-vdPeN7qk0p343sAsovgI,12725
349
349
  nodeitems_builtins/__init__.pyi,sha256=gRwW_X7_tLGgO61KqtWfQKCrN67pI1P53HotRBFwD9k,608
350
350
  nodeitems_builtins/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
351
351
  nodeitems_utils/__init__.pyi,sha256=F82sRq2Foowt3d9IUxloVB_qg7pTQP5w8qYvMJhwvFs,747
@@ -358,7 +358,7 @@ rna_prop_ui/__init__.pyi,sha256=lShhkbbeJ_ANi2dy4J4HIkyp1HZrMqCfhcf8QpAQsj0,1281
358
358
  rna_prop_ui/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
359
359
  rna_xml/__init__.pyi,sha256=idYsAZj-_egBKMA2pQl2P9IoNhZxXIkBSALFuq-ylO8,577
360
360
  rna_xml/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
361
- fake_bpy_module-20241207.dist-info/METADATA,sha256=b-qhPSEk_xL0mJCwY1f6qdqI4XcDoP61-m5n_fL4-jQ,7289
362
- fake_bpy_module-20241207.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
363
- fake_bpy_module-20241207.dist-info/top_level.txt,sha256=SZm3DVRKif7dFSjYKiIIg3_7uqjIwRAwOnCIcT4hRNM,500
364
- fake_bpy_module-20241207.dist-info/RECORD,,
361
+ fake_bpy_module-20241208.dist-info/METADATA,sha256=9_2XWdJHF01ZMmleGCbHiw0WLssgov64HkpNO8_MglM,7289
362
+ fake_bpy_module-20241208.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
363
+ fake_bpy_module-20241208.dist-info/top_level.txt,sha256=SZm3DVRKif7dFSjYKiIIg3_7uqjIwRAwOnCIcT4hRNM,500
364
+ fake_bpy_module-20241208.dist-info/RECORD,,
@@ -329,12 +329,15 @@ class GetOccludeeF1D:
329
329
  def __init__(self):
330
330
  """Builds a GetOccludeeF1D object."""
331
331
 
332
- def __call__(self, inter: freestyle.types.Interface1D):
332
+ def __call__(
333
+ self, inter: freestyle.types.Interface1D
334
+ ) -> list[freestyle.types.ViewShape]:
333
335
  """Returns a list of occluded shapes covered by this Interface1D.
334
336
 
335
337
  :param inter: An Interface1D object.
336
338
  :type inter: freestyle.types.Interface1D
337
339
  :return: A list of occluded shapes covered by the Interface1D.
340
+ :rtype: list[freestyle.types.ViewShape]
338
341
  """
339
342
 
340
343
  class GetOccludersF0D:
@@ -343,7 +346,9 @@ class GetOccludersF0D:
343
346
  def __init__(self):
344
347
  """Builds a GetOccludersF0D object."""
345
348
 
346
- def __call__(self, it: freestyle.types.Interface0DIterator):
349
+ def __call__(
350
+ self, it: freestyle.types.Interface0DIterator
351
+ ) -> list[freestyle.types.ViewShape]:
347
352
  """Returns a list of `freestyle.types.ViewShape` occluding the
348
353
  `freestyle.types.Interface0D` pointed by the Interface0DIterator.
349
354
 
@@ -351,6 +356,7 @@ class GetOccludersF0D:
351
356
  :type it: freestyle.types.Interface0DIterator
352
357
  :return: A list of ViewShape objects occluding the pointed
353
358
  Interface0D.
359
+ :rtype: list[freestyle.types.ViewShape]
354
360
  """
355
361
 
356
362
  class GetOccludersF1D:
@@ -359,12 +365,15 @@ class GetOccludersF1D:
359
365
  def __init__(self):
360
366
  """Builds a GetOccludersF1D object."""
361
367
 
362
- def __call__(self, inter: freestyle.types.Interface1D):
368
+ def __call__(
369
+ self, inter: freestyle.types.Interface1D
370
+ ) -> list[freestyle.types.ViewShape]:
363
371
  """Returns a list of occluding shapes that cover this Interface1D.
364
372
 
365
373
  :param inter: An Interface1D object.
366
374
  :type inter: freestyle.types.Interface1D
367
375
  :return: A list of occluding shapes that cover the Interface1D.
376
+ :rtype: list[freestyle.types.ViewShape]
368
377
  """
369
378
 
370
379
  class GetParameterF0D:
@@ -521,12 +530,15 @@ class GetShapeF1D:
521
530
  def __init__(self):
522
531
  """Builds a GetShapeF1D object."""
523
532
 
524
- def __call__(self, inter: freestyle.types.Interface1D):
533
+ def __call__(
534
+ self, inter: freestyle.types.Interface1D
535
+ ) -> list[freestyle.types.ViewShape]:
525
536
  """Returns a list of shapes covered by this Interface1D.
526
537
 
527
538
  :param inter: An Interface1D object.
528
539
  :type inter: freestyle.types.Interface1D
529
540
  :return: A list of shapes covered by the Interface1D.
541
+ :rtype: list[freestyle.types.ViewShape]
530
542
  """
531
543
 
532
544
  class GetSteerableViewMapDensityF1D:
@@ -1046,11 +1046,23 @@ class Material:
1046
1046
 
1047
1047
  def __init__(
1048
1048
  self,
1049
- line: collections.abc.Sequence[float] | float | mathutils.Vector,
1049
+ line: collections.abc.Sequence[float]
1050
+ | list[float]
1051
+ | mathutils.Vector
1052
+ | tuple[float, float, float, float],
1050
1053
  diffuse: typing.Any,
1051
- ambient: collections.abc.Sequence[float] | float | mathutils.Vector,
1052
- specular: collections.abc.Sequence[float] | float | mathutils.Vector,
1053
- emission: collections.abc.Sequence[float] | float | mathutils.Vector,
1054
+ ambient: collections.abc.Sequence[float]
1055
+ | list[float]
1056
+ | mathutils.Vector
1057
+ | tuple[float, float, float, float],
1058
+ specular: collections.abc.Sequence[float]
1059
+ | list[float]
1060
+ | mathutils.Vector
1061
+ | tuple[float, float, float, float],
1062
+ emission: collections.abc.Sequence[float]
1063
+ | list[float]
1064
+ | mathutils.Vector
1065
+ | tuple[float, float, float, float],
1054
1066
  shininess: float,
1055
1067
  priority: int,
1056
1068
  ):
@@ -1058,15 +1070,15 @@ class Material:
1058
1070
  copy constructor, or an overloaded constructor
1059
1071
 
1060
1072
  :param line: The line color.
1061
- :type line: collections.abc.Sequence[float] | float | mathutils.Vector
1073
+ :type line: collections.abc.Sequence[float] | list[float] | mathutils.Vector | tuple[float, float, float, float]
1062
1074
  :param diffuse: The diffuse color.
1063
1075
  :type diffuse: typing.Any
1064
1076
  :param ambient: The ambient color.
1065
- :type ambient: collections.abc.Sequence[float] | float | mathutils.Vector
1077
+ :type ambient: collections.abc.Sequence[float] | list[float] | mathutils.Vector | tuple[float, float, float, float]
1066
1078
  :param specular: The specular color.
1067
- :type specular: collections.abc.Sequence[float] | float | mathutils.Vector
1079
+ :type specular: collections.abc.Sequence[float] | list[float] | mathutils.Vector | tuple[float, float, float, float]
1068
1080
  :param emission: The emissive color.
1069
- :type emission: collections.abc.Sequence[float] | float | mathutils.Vector
1081
+ :type emission: collections.abc.Sequence[float] | list[float] | mathutils.Vector | tuple[float, float, float, float]
1070
1082
  :param shininess: The shininess coefficient.
1071
1083
  :type shininess: float
1072
1084
  :param priority: The line color priority.
@@ -1103,23 +1115,31 @@ class Noise:
1103
1115
  """
1104
1116
 
1105
1117
  def smoothNoise2(
1106
- self, v: collections.abc.Sequence[float] | mathutils.Vector
1118
+ self,
1119
+ v: collections.abc.Sequence[float]
1120
+ | list[float]
1121
+ | mathutils.Vector
1122
+ | tuple[float, float],
1107
1123
  ) -> float:
1108
1124
  """Returns a smooth noise value for a 2D element.
1109
1125
 
1110
1126
  :param v: Two-dimensional sample point.
1111
- :type v: collections.abc.Sequence[float] | mathutils.Vector
1127
+ :type v: collections.abc.Sequence[float] | list[float] | mathutils.Vector | tuple[float, float]
1112
1128
  :return: A smooth noise value.
1113
1129
  :rtype: float
1114
1130
  """
1115
1131
 
1116
1132
  def smoothNoise3(
1117
- self, v: collections.abc.Sequence[float] | float | mathutils.Vector
1133
+ self,
1134
+ v: collections.abc.Sequence[float]
1135
+ | list[float]
1136
+ | mathutils.Vector
1137
+ | tuple[float, float, float],
1118
1138
  ) -> float:
1119
1139
  """Returns a smooth noise value for a 3D element.
1120
1140
 
1121
1141
  :param v: Three-dimensional sample point.
1122
- :type v: collections.abc.Sequence[float] | float | mathutils.Vector
1142
+ :type v: collections.abc.Sequence[float] | list[float] | mathutils.Vector | tuple[float, float, float]
1123
1143
  :return: A smooth noise value.
1124
1144
  :rtype: float
1125
1145
  """
@@ -1141,7 +1161,10 @@ class Noise:
1141
1161
 
1142
1162
  def turbulence2(
1143
1163
  self,
1144
- v: collections.abc.Sequence[float] | mathutils.Vector,
1164
+ v: collections.abc.Sequence[float]
1165
+ | list[float]
1166
+ | mathutils.Vector
1167
+ | tuple[float, float],
1145
1168
  freq: float,
1146
1169
  amp: float,
1147
1170
  oct: int = 4,
@@ -1149,7 +1172,7 @@ class Noise:
1149
1172
  """Returns a noise value for a 2D element.
1150
1173
 
1151
1174
  :param v: Two-dimensional sample point.
1152
- :type v: collections.abc.Sequence[float] | mathutils.Vector
1175
+ :type v: collections.abc.Sequence[float] | list[float] | mathutils.Vector | tuple[float, float]
1153
1176
  :param freq: Noise frequency.
1154
1177
  :type freq: float
1155
1178
  :param amp: Amplitude.
@@ -1162,7 +1185,10 @@ class Noise:
1162
1185
 
1163
1186
  def turbulence3(
1164
1187
  self,
1165
- v: collections.abc.Sequence[float] | float | mathutils.Vector,
1188
+ v: collections.abc.Sequence[float]
1189
+ | list[float]
1190
+ | mathutils.Vector
1191
+ | tuple[float, float, float],
1166
1192
  freq: float,
1167
1193
  amp: float,
1168
1194
  oct: int = 4,
@@ -1170,7 +1196,7 @@ class Noise:
1170
1196
  """Returns a noise value for a 3D element.
1171
1197
 
1172
1198
  :param v: Three-dimensional sample point.
1173
- :type v: collections.abc.Sequence[float] | float | mathutils.Vector
1199
+ :type v: collections.abc.Sequence[float] | list[float] | mathutils.Vector | tuple[float, float, float]
1174
1200
  :param freq: Noise frequency.
1175
1201
  :type freq: float
1176
1202
  :param amp: Amplitude.
@@ -1291,7 +1317,7 @@ class Operators:
1291
1317
  """
1292
1318
 
1293
1319
  @staticmethod
1294
- def create(pred: UnaryPredicate1D, shaders):
1320
+ def create(pred: UnaryPredicate1D, shaders: list[StrokeShader]):
1295
1321
  """Creates and shades the strokes from the current set of chains. A
1296
1322
  predicate can be specified to make a selection pass on the chains.
1297
1323
 
@@ -1299,6 +1325,7 @@ class Operators:
1299
1325
  transform as a stroke.
1300
1326
  :type pred: UnaryPredicate1D
1301
1327
  :param shaders: The list of shaders used to shade the strokes.
1328
+ :type shaders: list[StrokeShader]
1302
1329
  """
1303
1330
 
1304
1331
  @staticmethod
@@ -1644,13 +1671,17 @@ ViewVertex, and None otherwise.
1644
1671
  """
1645
1672
 
1646
1673
  def add_normal(
1647
- self, normal: collections.abc.Sequence[float] | float | mathutils.Vector
1674
+ self,
1675
+ normal: collections.abc.Sequence[float]
1676
+ | list[float]
1677
+ | mathutils.Vector
1678
+ | tuple[float, float, float],
1648
1679
  ):
1649
1680
  """Adds a normal to the SVertex's set of normals. If the same normal
1650
1681
  is already in the set, nothing changes.
1651
1682
 
1652
1683
  :param normal: A three-dimensional vector.
1653
- :type normal: collections.abc.Sequence[float] | float | mathutils.Vector
1684
+ :type normal: collections.abc.Sequence[float] | list[float] | mathutils.Vector | tuple[float, float, float]
1654
1685
  """
1655
1686
 
1656
1687
  class SVertexIterator:
@@ -2005,7 +2036,10 @@ when following the stroke.
2005
2036
  def set_attribute_vec2(
2006
2037
  self,
2007
2038
  name: str,
2008
- value: collections.abc.Sequence[float] | float | mathutils.Vector,
2039
+ value: collections.abc.Sequence[float]
2040
+ | list[float]
2041
+ | mathutils.Vector
2042
+ | tuple[float, float, float],
2009
2043
  ):
2010
2044
  """Adds a user-defined attribute of two-dimensional vector type. If
2011
2045
  there is no attribute of the given name, it is added. Otherwise,
@@ -2014,13 +2048,16 @@ when following the stroke.
2014
2048
  :param name: The name of the attribute.
2015
2049
  :type name: str
2016
2050
  :param value: The attribute value.
2017
- :type value: collections.abc.Sequence[float] | float | mathutils.Vector
2051
+ :type value: collections.abc.Sequence[float] | list[float] | mathutils.Vector | tuple[float, float, float]
2018
2052
  """
2019
2053
 
2020
2054
  def set_attribute_vec3(
2021
2055
  self,
2022
2056
  name: str,
2023
- value: collections.abc.Sequence[float] | float | mathutils.Vector,
2057
+ value: collections.abc.Sequence[float]
2058
+ | list[float]
2059
+ | mathutils.Vector
2060
+ | tuple[float, float, float],
2024
2061
  ):
2025
2062
  """Adds a user-defined attribute of three-dimensional vector type.
2026
2063
  If there is no attribute of the given name, it is added.
@@ -2029,7 +2066,7 @@ when following the stroke.
2029
2066
  :param name: The name of the attribute.
2030
2067
  :type name: str
2031
2068
  :param value: The attribute value as a 3D vector.
2032
- :type value: collections.abc.Sequence[float] | float | mathutils.Vector
2069
+ :type value: collections.abc.Sequence[float] | list[float] | mathutils.Vector | tuple[float, float, float]
2033
2070
  """
2034
2071
 
2035
2072
  class StrokeShader:
@@ -8,11 +8,11 @@ import collections.abc
8
8
  import typing_extensions
9
9
  import freestyle.types
10
10
 
11
- def get_border() -> int:
11
+ def get_border() -> tuple[int, int, int, int]:
12
12
  """Returns the border.
13
13
 
14
14
  :return: A tuple of 4 numbers (xmin, ymin, xmax, ymax).
15
- :rtype: int
15
+ :rtype: tuple[int, int, int, int]
16
16
  """
17
17
 
18
18
  def get_canvas_height() -> int:
@@ -14,10 +14,11 @@ def compute_shader_support_get() -> bool:
14
14
  :rtype: bool
15
15
  """
16
16
 
17
- def extensions_get():
17
+ def extensions_get() -> tuple[str]:
18
18
  """Get supported extensions in the current context.
19
19
 
20
20
  :return: Extensions.
21
+ :rtype: tuple[str]
21
22
  """
22
23
 
23
24
  def hdr_support_get() -> bool:
gpu/state/__init__.pyi CHANGED
@@ -98,7 +98,7 @@ def program_point_size_set(enable: bool):
98
98
  :type enable: bool
99
99
  """
100
100
 
101
- def scissor_get() -> int:
101
+ def scissor_get() -> tuple[int, int, int, int]:
102
102
  """Retrieve the scissors of the active framebuffer.
103
103
  Note: Only valid between 'scissor_set' and a framebuffer rebind.
104
104
 
@@ -106,7 +106,7 @@ def scissor_get() -> int:
106
106
  (x, y, xsize, ysize).
107
107
  x, y: lower left corner of the scissor rectangle, in pixels.
108
108
  xsize, ysize: width and height of the scissor rectangle.
109
- :rtype: int
109
+ :rtype: tuple[int, int, int, int]
110
110
  """
111
111
 
112
112
  def scissor_set(x: int, y, xsize: int, ysize):
gpu/types/__init__.pyi CHANGED
@@ -271,11 +271,11 @@ class GPUShader:
271
271
  :rtype: int
272
272
  """
273
273
 
274
- def attrs_info_get(self) -> str:
274
+ def attrs_info_get(self) -> tuple[tuple[str, str], int]:
275
275
  """Information about the attributes used in the Shader.
276
276
 
277
277
  :return: tuples containing information about the attributes in order (name, type)
278
- :rtype: str
278
+ :rtype: tuple[tuple[str, str], int]
279
279
  """
280
280
 
281
281
  def bind(self):
@@ -1,11 +1,14 @@
1
1
  import typing
2
2
  import collections.abc
3
3
  import typing_extensions
4
- import bgl
5
4
  import gpu.types
6
5
 
7
6
  def batch_for_shader(
8
- shader: gpu.types.GPUShader, type: str, content: bgl.Buffer, *, indices=None
7
+ shader: gpu.types.GPUShader,
8
+ type: str,
9
+ content: dict[str, gpu.types.Buffer],
10
+ *,
11
+ indices=None,
9
12
  ) -> gpu.types.GPUBatch:
10
13
  """Return a batch already configured and compatible with the shader.
11
14
 
@@ -15,7 +18,7 @@ def batch_for_shader(
15
18
  :type type: str
16
19
  :param content: Maps the name of the shader attribute with the data to fill the vertex buffer.
17
20
  For the dictionary values see documentation for `gpu.types.GPUVertBuf.attr_fill` data argument.
18
- :type content: bgl.Buffer
21
+ :type content: dict[str, gpu.types.Buffer]
19
22
  :return: compatible batch
20
23
  :rtype: gpu.types.GPUBatch
21
24
  """