fake-bpy-module-latest 20251003__py3-none-any.whl → 20260113__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 (137) hide show
  1. {bl_i18n_utils → _bl_i18n_utils}/__init__.pyi +1 -0
  2. {bl_i18n_utils → _bl_i18n_utils}/settings/__init__.pyi +2 -0
  3. _bl_i18n_utils/utils_spell_check/__init__.pyi +22 -0
  4. {bl_ui_utils → _bl_ui_utils}/__init__.pyi +1 -0
  5. _bpy_internal/__init__.pyi +1 -0
  6. _bpy_internal/disk_file_hash_service/__init__.pyi +19 -0
  7. _bpy_internal/disk_file_hash_service/backend_sqlite/__init__.pyi +48 -0
  8. _bpy_internal/disk_file_hash_service/hash_service/__init__.pyi +64 -0
  9. _bpy_internal/disk_file_hash_service/types/__init__.pyi +53 -0
  10. _bpy_types/__init__.pyi +17 -1
  11. aud/__init__.pyi +70 -0
  12. bl_math/__init__.pyi +3 -1
  13. bl_operators/__init__.pyi +1 -0
  14. bl_operators/anim/__init__.pyi +42 -0
  15. bl_operators/copy_global_transform/__init__.pyi +271 -0
  16. bl_operators/node/__init__.pyi +38 -4
  17. bl_operators/object/__init__.pyi +0 -7
  18. bl_operators/uvcalc_follow_active/__init__.pyi +1 -1
  19. bl_operators/uvcalc_transform/__init__.pyi +21 -8
  20. bl_ui/__init__.pyi +3 -0
  21. bl_ui/node_add_menu/__init__.pyi +13 -6
  22. bl_ui/node_add_menu_compositor/__init__.pyi +19 -19
  23. bl_ui/node_add_menu_geometry/__init__.pyi +56 -56
  24. bl_ui/node_add_menu_shader/__init__.pyi +10 -10
  25. bl_ui/node_add_menu_texture/__init__.pyi +1 -1
  26. bl_ui/properties_constraint/__init__.pyi +68 -0
  27. bl_ui/properties_object/__init__.pyi +37 -0
  28. bl_ui/properties_paint_common/__init__.pyi +23 -3
  29. bl_ui/properties_strip/__init__.pyi +786 -0
  30. bl_ui/properties_strip_modifier/__init__.pyi +47 -0
  31. bl_ui/properties_view_layer/__init__.pyi +7 -0
  32. bl_ui/space_clip/__init__.pyi +1 -0
  33. bl_ui/space_dopesheet/__init__.pyi +56 -0
  34. bl_ui/space_image/__init__.pyi +2 -2
  35. bl_ui/space_node/__init__.pyi +29 -2
  36. bl_ui/space_properties/__init__.pyi +31 -0
  37. bl_ui/space_sequencer/__init__.pyi +42 -772
  38. bl_ui/space_time/__init__.pyi +54 -0
  39. bl_ui/space_topbar/__init__.pyi +7 -0
  40. bl_ui/space_userpref/__init__.pyi +7 -2
  41. bl_ui/space_view3d/__init__.pyi +38 -10
  42. bl_ui/space_view3d_sidebar/__init__.pyi +135 -0
  43. bl_ui/space_view3d_toolbar/__init__.pyi +2 -1
  44. blf/__init__.pyi +9 -6
  45. bmesh/ops/__init__.pyi +3 -0
  46. bmesh/types/__init__.pyi +184 -36
  47. bmesh/utils/__init__.pyi +22 -5
  48. bpy/app/__init__.pyi +54 -52
  49. bpy/app/translations/__init__.pyi +1 -1
  50. bpy/ops/anim/__init__.pyi +18 -12
  51. bpy/ops/armature/__init__.pyi +1 -1
  52. bpy/ops/curves/__init__.pyi +3 -3
  53. bpy/ops/export_anim/__init__.pyi +3 -0
  54. bpy/ops/export_scene/__init__.pyi +1 -1
  55. bpy/ops/geometry/__init__.pyi +0 -83
  56. bpy/ops/grease_pencil/__init__.pyi +3 -3
  57. bpy/ops/import_anim/__init__.pyi +2 -2
  58. bpy/ops/mesh/__init__.pyi +2 -2
  59. bpy/ops/nla/__init__.pyi +1 -1
  60. bpy/ops/node/__init__.pyi +29 -7
  61. bpy/ops/object/__init__.pyi +93 -0
  62. bpy/ops/pose/__init__.pyi +4 -4
  63. bpy/ops/render/__init__.pyi +4 -1
  64. bpy/ops/screen/__init__.pyi +29 -0
  65. bpy/ops/sculpt/__init__.pyi +30 -41
  66. bpy/ops/sequencer/__init__.pyi +67 -3
  67. bpy/ops/text/__init__.pyi +3 -0
  68. bpy/ops/transform/__init__.pyi +10 -3
  69. bpy/ops/uv/__init__.pyi +54 -0
  70. bpy/ops/wm/__init__.pyi +20 -32
  71. bpy/props/__init__.pyi +5 -11
  72. bpy/stub_internal/rna_enums/__init__.pyi +52 -20
  73. bpy/types/__init__.pyi +7912 -3664
  74. bpy/utils/__init__.pyi +3 -3
  75. bpy/utils/previews/__init__.pyi +1 -1
  76. bpy_extras/anim_utils/__init__.pyi +9 -0
  77. bpy_extras/id_map_utils/__init__.pyi +15 -6
  78. bpy_extras/keyconfig_utils/__init__.pyi +1 -1
  79. {fake_bpy_module_latest-20251003.dist-info → fake_bpy_module_latest-20260113.dist-info}/METADATA +3 -1
  80. {fake_bpy_module_latest-20251003.dist-info → fake_bpy_module_latest-20260113.dist-info}/RECORD +137 -128
  81. {fake_bpy_module_latest-20251003.dist-info → fake_bpy_module_latest-20260113.dist-info}/top_level.txt +14 -14
  82. freestyle/utils/__init__.pyi +1 -1
  83. gpu/matrix/__init__.pyi +1 -1
  84. gpu/shader/__init__.pyi +22 -1
  85. gpu/state/__init__.pyi +77 -27
  86. gpu/types/__init__.pyi +91 -20
  87. gpu_extras/presets/__init__.pyi +7 -0
  88. idprop/types/__init__.pyi +6 -2
  89. imbuf/__init__.pyi +2 -2
  90. imbuf/types/__init__.pyi +2 -2
  91. keyingsets_builtins/__init__.pyi +1 -1
  92. mathutils/__init__.pyi +53 -29
  93. mathutils/bvhtree/__init__.pyi +3 -2
  94. mathutils/geometry/__init__.pyi +31 -13
  95. mathutils/interpolate/__init__.pyi +4 -2
  96. {animsys_refactor → _animsys_refactor}/__init__.pyi +0 -0
  97. {animsys_refactor → _animsys_refactor}/py.typed +0 -0
  98. {bl_console_utils → _bl_console_utils}/__init__.pyi +0 -0
  99. {bl_console_utils → _bl_console_utils}/autocomplete/__init__.pyi +0 -0
  100. {bl_console_utils → _bl_console_utils}/autocomplete/complete_calltip/__init__.pyi +0 -0
  101. {bl_console_utils → _bl_console_utils}/autocomplete/complete_import/__init__.pyi +0 -0
  102. {bl_console_utils → _bl_console_utils}/autocomplete/complete_namespace/__init__.pyi +0 -0
  103. {bl_console_utils → _bl_console_utils}/autocomplete/intellisense/__init__.pyi +0 -0
  104. {bl_console_utils → _bl_console_utils}/py.typed +0 -0
  105. {bl_i18n_utils → _bl_i18n_utils}/bl_extract_messages/__init__.pyi +0 -0
  106. {bl_i18n_utils → _bl_i18n_utils}/merge_po/__init__.pyi +0 -0
  107. {bl_i18n_utils → _bl_i18n_utils}/py.typed +0 -0
  108. {bl_i18n_utils → _bl_i18n_utils}/utils/__init__.pyi +0 -0
  109. {bl_i18n_utils → _bl_i18n_utils}/utils_cli/__init__.pyi +0 -0
  110. {bl_i18n_utils → _bl_i18n_utils}/utils_languages_menu/__init__.pyi +0 -0
  111. {bl_i18n_utils → _bl_i18n_utils}/utils_rtl/__init__.pyi +0 -0
  112. {bl_previews_utils → _bl_previews_utils}/__init__.pyi +0 -0
  113. {bl_previews_utils → _bl_previews_utils}/bl_previews_render/__init__.pyi +0 -0
  114. {bl_previews_utils → _bl_previews_utils}/py.typed +0 -0
  115. {bl_rna_utils → _bl_rna_utils}/__init__.pyi +0 -0
  116. {bl_rna_utils → _bl_rna_utils}/data_path/__init__.pyi +0 -0
  117. {bl_rna_utils → _bl_rna_utils}/py.typed +0 -0
  118. {bl_text_utils → _bl_text_utils}/__init__.pyi +0 -0
  119. {bl_text_utils → _bl_text_utils}/external_editor/__init__.pyi +0 -0
  120. {bl_text_utils → _bl_text_utils}/py.typed +0 -0
  121. {bl_ui_utils → _bl_ui_utils}/layout/__init__.pyi +0 -0
  122. {bl_ui_utils → _bl_ui_utils}/py.typed +0 -0
  123. {bpy_restrict_state → _bpy_restrict_state}/__init__.pyi +0 -0
  124. {bpy_restrict_state → _bpy_restrict_state}/py.typed +0 -0
  125. {console_python → _console_python}/__init__.pyi +0 -0
  126. {console_python → _console_python}/py.typed +0 -0
  127. {console_shell → _console_shell}/__init__.pyi +0 -0
  128. {console_shell → _console_shell}/py.typed +0 -0
  129. {graphviz_export → _graphviz_export}/__init__.pyi +0 -0
  130. {graphviz_export → _graphviz_export}/py.typed +0 -0
  131. {keyingsets_utils → _keyingsets_utils}/__init__.pyi +0 -0
  132. {keyingsets_utils → _keyingsets_utils}/py.typed +0 -0
  133. {rna_info → _rna_info}/__init__.pyi +0 -0
  134. {rna_info → _rna_info}/py.typed +0 -0
  135. {rna_xml → _rna_xml}/__init__.pyi +0 -0
  136. {rna_xml → _rna_xml}/py.typed +0 -0
  137. {fake_bpy_module_latest-20251003.dist-info → fake_bpy_module_latest-20260113.dist-info}/WHEEL +0 -0
@@ -1,42 +1,42 @@
1
+ _animsys_refactor
2
+ _bl_console_utils
3
+ _bl_i18n_utils
4
+ _bl_previews_utils
5
+ _bl_rna_utils
6
+ _bl_text_utils
7
+ _bl_ui_utils
1
8
  _blendfile_header
2
9
  _bpy_internal
10
+ _bpy_restrict_state
3
11
  _bpy_types
12
+ _console_python
13
+ _console_shell
14
+ _graphviz_export
15
+ _keyingsets_utils
16
+ _rna_info
17
+ _rna_xml
4
18
  addon_utils
5
- animsys_refactor
6
19
  aud
7
20
  bl_app_override
8
21
  bl_app_template_utils
9
22
  bl_app_templates_system
10
- bl_console_utils
11
- bl_i18n_utils
12
23
  bl_keymap_utils
13
24
  bl_math
14
25
  bl_operators
15
- bl_previews_utils
16
- bl_rna_utils
17
- bl_text_utils
18
26
  bl_ui
19
- bl_ui_utils
20
27
  blend_render_info
21
28
  blf
22
29
  bmesh
23
30
  bpy
24
31
  bpy_extras
25
- bpy_restrict_state
26
- console_python
27
- console_shell
28
32
  freestyle
29
33
  gpu
30
34
  gpu_extras
31
- graphviz_export
32
35
  idprop
33
36
  imbuf
34
37
  keyingsets_builtins
35
- keyingsets_utils
36
38
  mathutils
37
39
  nodeitems_builtins
38
40
  nodeitems_utils
39
- rna_info
40
41
  rna_keymap_ui
41
42
  rna_prop_ui
42
- rna_xml
@@ -125,7 +125,7 @@ def material_from_fedge(fe) -> None:
125
125
  """get the diffuse RGBA color from an FEdge"""
126
126
 
127
127
  def normal_at_I0D(it) -> None: ...
128
- def pairwise(iterable, types={Stroke, StrokeVertexIterator}) -> None:
128
+ def pairwise(iterable, types={StrokeVertexIterator, Stroke}) -> None:
129
129
  """Yields a tuple containing the previous and current object"""
130
130
 
131
131
  def rgb_to_bw(r, g, b) -> None:
gpu/matrix/__init__.pyi CHANGED
@@ -99,7 +99,7 @@ def scale_uniform(scale: float) -> None:
99
99
  """
100
100
 
101
101
  def translate(offset: collections.abc.Sequence[float]) -> None:
102
- """Scale the current stack matrix.
102
+ """Translate the current stack matrix.
103
103
 
104
104
  :param offset: Translate the current stack matrix with 2 or 3 floats.
105
105
  :type offset: collections.abc.Sequence[float]
gpu/shader/__init__.pyi CHANGED
@@ -9,6 +9,9 @@ All built-in shaders have the mat4 ModelViewProjectionMatrix
9
9
 
10
10
  Its value must be modified using the gpu.matrix module.
11
11
 
12
+ [IMPORTANT]
13
+ Shader uniforms must be explicitly initialized to avoid retaining values from previous executions.
14
+
12
15
  FLAT_COLOR
13
16
 
14
17
 
@@ -25,6 +28,15 @@ IMAGE
25
28
 
26
29
 
27
30
 
31
+ IMAGE_SCENE_LINEAR_TO_REC709_SRGB
32
+
33
+
34
+ Attributes: vec3 pos, vec2 texCoord
35
+ Uniforms: sampler2D image
36
+ Note: Expect texture to be in scene linear color space
37
+
38
+
39
+
28
40
  IMAGE_COLOR
29
41
 
30
42
 
@@ -33,6 +45,15 @@ IMAGE_COLOR
33
45
 
34
46
 
35
47
 
48
+ IMAGE_COLOR_SCENE_LINEAR_TO_REC709_SRGB
49
+
50
+
51
+ Attributes: vec3 pos, vec2 texCoord
52
+ Uniforms: sampler2D image, vec4 color
53
+ Note: Expect texture to be in scene linear color space
54
+
55
+
56
+
36
57
  SMOOTH_COLOR
37
58
 
38
59
 
@@ -102,7 +123,7 @@ def create_from_info(shader_info: gpu.types.GPUShaderCreateInfo) -> gpu.types.GP
102
123
 
103
124
  :param shader_info: GPUShaderCreateInfo
104
125
  :type shader_info: gpu.types.GPUShaderCreateInfo
105
- :return: Shader object corresponding to the given name.
126
+ :return: Shader object corresponding to the given shader info.
106
127
  :rtype: gpu.types.GPUShader
107
128
  """
108
129
 
gpu/state/__init__.pyi CHANGED
@@ -7,12 +7,21 @@ import typing
7
7
  import collections.abc
8
8
  import typing_extensions
9
9
  import numpy.typing as npt
10
+ import gpu.types
10
11
 
11
- def active_framebuffer_get(enable) -> None:
12
- """Return the active frame-buffer in context."""
12
+ def active_framebuffer_get() -> gpu.types.GPUFrameBuffer:
13
+ """Return the active frame-buffer in context.
13
14
 
14
- def blend_get() -> None:
15
- """Current blending equation."""
15
+ :return: The active framebuffer.
16
+ :rtype: gpu.types.GPUFrameBuffer
17
+ """
18
+
19
+ def blend_get() -> str:
20
+ """Current blending equation.
21
+
22
+ :return: The current blend mode.
23
+ :rtype: str
24
+ """
16
25
 
17
26
  def blend_set(mode: str) -> None:
18
27
  """Defines the fixed pipeline blending equation.
@@ -44,24 +53,39 @@ def clip_distances_set(distances_enabled: int) -> None:
44
53
  :type distances_enabled: int
45
54
  """
46
55
 
47
- def color_mask_set(r: bool, g, b, a) -> None:
56
+ def color_mask_set(r: bool, g: bool, b: bool, a: bool) -> None:
48
57
  """Enable or disable writing of frame buffer color components.
49
58
 
50
- :param r: components red, green, blue, and alpha.
59
+ :param r: Red component.
51
60
  :type r: bool
61
+ :param g: Green component.
62
+ :type g: bool
63
+ :param b: Blue component.
64
+ :type b: bool
65
+ :param a: Alpha component.
66
+ :type a: bool
52
67
  """
53
68
 
54
- def depth_mask_get() -> None:
55
- """Writing status in the depth component."""
69
+ def depth_mask_get() -> bool:
70
+ """Writing status in the depth component.
56
71
 
57
- def depth_mask_set(value) -> None:
72
+ :return: True if writing to the depth component is enabled.
73
+ :rtype: bool
74
+ """
75
+
76
+ def depth_mask_set(value: bool) -> None:
58
77
  """Write to depth component.
59
78
 
60
79
  :param value: True for writing to the depth component.
80
+ :type value: bool
61
81
  """
62
82
 
63
- def depth_test_get() -> None:
64
- """Current depth_test equation."""
83
+ def depth_test_get() -> str:
84
+ """Current depth_test equation.
85
+
86
+ :return: The current depth test mode.
87
+ :rtype: str
88
+ """
65
89
 
66
90
  def depth_test_set(mode: str) -> None:
67
91
  """Defines the depth_test equation.
@@ -71,25 +95,39 @@ def depth_test_set(mode: str) -> None:
71
95
  :type mode: str
72
96
  """
73
97
 
74
- def face_culling_set(culling) -> None:
75
- """Specify whether none, front-facing or back-facing facets can be culled."""
98
+ def face_culling_set(culling: str) -> None:
99
+ """Specify whether none, front-facing or back-facing facets can be culled.
76
100
 
77
- def front_facing_set(invert) -> None:
101
+ :param culling: NONE, FRONT or BACK.
102
+ :type culling: str
103
+ """
104
+
105
+ def front_facing_set(invert: bool) -> None:
78
106
  """Specifies the orientation of front-facing polygons.
79
107
 
80
108
  :param invert: True for clockwise polygons as front-facing.
109
+ :type invert: bool
110
+ """
111
+
112
+ def line_width_get() -> float:
113
+ """Current width of rasterized lines.
114
+
115
+ :return: The current line width.
116
+ :rtype: float
81
117
  """
82
118
 
83
- def line_width_get() -> None:
84
- """Current width of rasterized lines."""
119
+ def line_width_set(width: float) -> None:
120
+ """Specify the width of rasterized lines.
85
121
 
86
- def line_width_set(width) -> None:
87
- """Specify the width of rasterized lines."""
122
+ :param width: New width.
123
+ :type width: float
124
+ """
88
125
 
89
- def point_size_set(size) -> None:
126
+ def point_size_set(size: float) -> None:
90
127
  """Specify the diameter of rasterized points.
91
128
 
92
129
  :param size: New diameter.
130
+ :type size: float
93
131
  """
94
132
 
95
133
  def program_point_size_set(enable: bool) -> None:
@@ -110,14 +148,18 @@ def scissor_get() -> tuple[int, int, int, int]:
110
148
  :rtype: tuple[int, int, int, int]
111
149
  """
112
150
 
113
- def scissor_set(x: int, y, xsize: int, ysize) -> None:
151
+ def scissor_set(x: int, y: int, xsize: int, ysize: int) -> None:
114
152
  """Specifies the scissor area of the active framebuffer.
115
153
  Note: The scissor state is not saved upon framebuffer rebind.
116
154
 
117
- :param x: lower left corner of the scissor rectangle, in pixels.
155
+ :param x: Lower left corner x coordinate, in pixels.
118
156
  :type x: int
119
- :param xsize: width and height of the scissor rectangle.
157
+ :param y: Lower left corner y coordinate, in pixels.
158
+ :type y: int
159
+ :param xsize: Width of the scissor rectangle.
120
160
  :type xsize: int
161
+ :param ysize: Height of the scissor rectangle.
162
+ :type ysize: int
121
163
  """
122
164
 
123
165
  def scissor_test_set(enable: bool) -> None:
@@ -128,15 +170,23 @@ def scissor_test_set(enable: bool) -> None:
128
170
  :type enable: bool
129
171
  """
130
172
 
131
- def viewport_get() -> None:
132
- """Viewport of the active framebuffer."""
173
+ def viewport_get() -> tuple[int, int, int, int]:
174
+ """Viewport of the active framebuffer.
175
+
176
+ :return: The viewport as a tuple (x, y, xsize, ysize).
177
+ :rtype: tuple[int, int, int, int]
178
+ """
133
179
 
134
- def viewport_set(x: int, y, xsize: int, ysize) -> None:
180
+ def viewport_set(x: int, y: int, xsize: int, ysize: int) -> None:
135
181
  """Specifies the viewport of the active framebuffer.
136
182
  Note: The viewport state is not saved upon framebuffer rebind.
137
183
 
138
- :param x: lower left corner of the viewport_set rectangle, in pixels.
184
+ :param x: Lower left corner x coordinate, in pixels.
139
185
  :type x: int
140
- :param xsize: width and height of the viewport_set.
186
+ :param y: Lower left corner y coordinate, in pixels.
187
+ :type y: int
188
+ :param xsize: Width of the viewport.
141
189
  :type xsize: int
190
+ :param ysize: Height of the viewport.
191
+ :type ysize: int
142
192
  """
gpu/types/__init__.pyi CHANGED
@@ -14,11 +14,12 @@ class Buffer:
14
14
  class GPUBatch:
15
15
  """Reusable container for drawable geometry."""
16
16
 
17
- def draw(self, shader=None) -> None:
17
+ def draw(self, shader: GPUShader | None = None) -> None:
18
18
  """Run the drawing shader with the parameters assigned to the batch.
19
19
 
20
20
  :param shader: Shader that performs the drawing operations.
21
21
  If None is passed, the last shader set to this batch will run.
22
+ :type shader: GPUShader | None
22
23
  """
23
24
 
24
25
  def draw_instanced(
@@ -116,7 +117,7 @@ class GPUFrameBuffer:
116
117
  slot: int,
117
118
  format: str,
118
119
  *,
119
- data: Buffer = data,
120
+ data: Buffer | None = None,
120
121
  ) -> Buffer:
121
122
  """Read a block of pixels from the frame buffer.
122
123
 
@@ -134,13 +135,13 @@ class GPUFrameBuffer:
134
135
  UINT_24_8 is deprecated, use FLOAT instead.
135
136
  :type format: str
136
137
  :param data: Optional Buffer object to fill with the pixels values.
137
- :type data: Buffer
138
+ :type data: Buffer | None
138
139
  :return: The Buffer with the read pixels.
139
140
  :rtype: Buffer
140
141
  """
141
142
 
142
143
  def read_depth(
143
- self, x: int, y, xsize: int, ysize, *, data: Buffer = data
144
+ self, x: int, y, xsize: int, ysize, *, data: Buffer | None = None
144
145
  ) -> Buffer:
145
146
  """Read a pixel depth block from the frame buffer.
146
147
 
@@ -151,7 +152,7 @@ class GPUFrameBuffer:
151
152
  :type xsize: int
152
153
  :param ysize:
153
154
  :param data: Optional Buffer object to fill with the pixels values.
154
- :type data: Buffer
155
+ :type data: Buffer | None
155
156
  :return: The Buffer with the read pixels.
156
157
  :rtype: Buffer
157
158
  """
@@ -294,12 +295,13 @@ This is deprecated and will always return -1.
294
295
  :type texture: GPUTexture
295
296
  """
296
297
 
297
- def uniform_block(self, name: str, ubo) -> None:
298
- """Specify the value of an uniform buffer object variable for the current GPUShader.
298
+ def uniform_block(self, name: str, ubo: GPUUniformBuf) -> None:
299
+ """Specify the value of a uniform buffer object variable for the current GPUShader.
299
300
 
300
- :param name: name of the uniform variable whose UBO is to be specified.
301
+ :param name: Name of the uniform variable whose UBO is to be specified.
301
302
  :type name: str
302
303
  :param ubo: Uniform Buffer to attach.
304
+ :type ubo: GPUUniformBuf
303
305
  """
304
306
 
305
307
  def uniform_block_from_name(self, name: str) -> int:
@@ -342,19 +344,19 @@ This is deprecated and will always return -1.
342
344
  :rtype: int
343
345
  """
344
346
 
345
- def uniform_int(self, name: str, seq: collections.abc.Sequence[int]) -> None:
347
+ def uniform_int(self, name: str, seq: collections.abc.Sequence[int] | int) -> None:
346
348
  """Specify the value of a uniform variable for the current program object.
347
349
 
348
- :param name: name of the uniform variable whose value is to be changed.
350
+ :param name: Name of the uniform variable whose value is to be changed.
349
351
  :type name: str
350
352
  :param seq: Value that will be used to update the specified uniform variable.
351
- :type seq: collections.abc.Sequence[int]
353
+ :type seq: collections.abc.Sequence[int] | int
352
354
  """
353
355
 
354
356
  def uniform_sampler(self, name: str, texture: GPUTexture) -> None:
355
357
  """Specify the value of a texture uniform variable for the current GPUShader.
356
358
 
357
- :param name: name of the uniform variable whose texture is to be specified.
359
+ :param name: Name of the uniform variable whose texture is to be specified.
358
360
  :type name: str
359
361
  :param texture: Texture to attach.
360
362
  :type texture: GPUTexture
@@ -391,13 +393,18 @@ This is deprecated and will always return -1.
391
393
  :type count: int
392
394
  """
393
395
 
394
- def uniform_vector_int(self, location, buffer, length, count) -> None:
395
- """See GPUShader.uniform_vector_float(...) description.
396
+ def uniform_vector_int(
397
+ self, location: int, buffer, length: int, count: int
398
+ ) -> None:
399
+ """Set the buffer to fill the uniform.
396
400
 
397
- :param location:
398
- :param buffer:
399
- :param length:
400
- :param count:
401
+ :param location: Location of the uniform variable to be modified.
402
+ :type location: int
403
+ :param buffer: Buffer object with format matching the uniform.
404
+ :param length: Size of the uniform data type.
405
+ :type length: int
406
+ :param count: Specifies the number of elements that are to be modified.
407
+ :type count: int
401
408
  """
402
409
 
403
410
  class GPUShaderCreateInfo:
@@ -419,7 +426,7 @@ class GPUShaderCreateInfo:
419
426
  :type value: str
420
427
  """
421
428
 
422
- def depth_write(self, value) -> None:
429
+ def depth_write(self, value: str) -> None:
423
430
  """Specify a depth write behavior when modifying gl_FragDepth.There is a common optimization for GPUs that relies on an early depth
424
431
  test to be run before the fragment shader so that the shader evaluation
425
432
  can be skipped if the fragment ends up being discarded because it is occluded.This optimization does not affect the final rendering, and is typically
@@ -433,6 +440,7 @@ class GPUShaderCreateInfo:
433
440
  :ANY: enables depth write in a fragment shader for any fragments
434
441
  :GREATER: enables depth write in a fragment shader for depth values thatare greater than the depth value in the output buffer.
435
442
  :LESS: enables depth write in a fragment shader for depth values thatare less than the depth value in the output buffer.
443
+ :type value: str
436
444
  """
437
445
 
438
446
  def fragment_out(
@@ -991,7 +999,7 @@ class GPUStageInterfaceInfo:
991
999
  """
992
1000
 
993
1001
  class GPUTexture:
994
- """This object gives access to off GPU textures."""
1002
+ """This object gives access to GPU textures."""
995
1003
 
996
1004
  format: str
997
1005
  """ Format of the texture.
@@ -1011,6 +1019,13 @@ class GPUTexture:
1011
1019
  :type: int
1012
1020
  """
1013
1021
 
1022
+ def anisotropic_filter(self, use_anisotropic: bool) -> None:
1023
+ """Set anisotropic filter usage. This only has effect if mipmapping is enabled.
1024
+
1025
+ :param use_anisotropic: If set to true, the texture will use anisotropic filtering.
1026
+ :type use_anisotropic: bool
1027
+ """
1028
+
1014
1029
  def clear(
1015
1030
  self,
1016
1031
  format: str = "FLOAT",
@@ -1026,6 +1041,62 @@ class GPUTexture:
1026
1041
  :type value: collections.abc.Sequence[float]
1027
1042
  """
1028
1043
 
1044
+ def extend_mode(
1045
+ self,
1046
+ extend_mode: typing.Literal[
1047
+ "EXTEND", "REPEAT", "MIRRORED_REPEAT", "CLAMP_TO_BORDER"
1048
+ ] = "EXTEND",
1049
+ /,
1050
+ ) -> None:
1051
+ """Set texture sampling method for coordinates outside of the [0..1] uv range along
1052
+ both the x and y axis.
1053
+
1054
+ :param extend_mode: the specified extent mode.
1055
+ :type extend_mode: typing.Literal['EXTEND', 'REPEAT', 'MIRRORED_REPEAT', 'CLAMP_TO_BORDER']
1056
+ """
1057
+
1058
+ def extend_mode_x(
1059
+ self,
1060
+ extend_mode: typing.Literal[
1061
+ "EXTEND", "REPEAT", "MIRRORED_REPEAT", "CLAMP_TO_BORDER"
1062
+ ] = "EXTEND",
1063
+ /,
1064
+ ) -> None:
1065
+ """Set texture sampling method for coordinates outside of the [0..1] uv range along the x axis.
1066
+
1067
+ :param extend_mode: the specified extent mode.
1068
+ :type extend_mode: typing.Literal['EXTEND', 'REPEAT', 'MIRRORED_REPEAT', 'CLAMP_TO_BORDER']
1069
+ """
1070
+
1071
+ def extend_mode_y(
1072
+ self,
1073
+ extend_mode: typing.Literal[
1074
+ "EXTEND", "REPEAT", "MIRRORED_REPEAT", "CLAMP_TO_BORDER"
1075
+ ] = "EXTEND",
1076
+ /,
1077
+ ) -> None:
1078
+ """Set texture sampling method for coordinates outside of the [0..1] uv range along the y axis.
1079
+
1080
+ :param extend_mode: the specified extent mode.
1081
+ :type extend_mode: typing.Literal['EXTEND', 'REPEAT', 'MIRRORED_REPEAT', 'CLAMP_TO_BORDER']
1082
+ """
1083
+
1084
+ def filter_mode(self, use_filter: bool) -> None:
1085
+ """Set texture filter usage.
1086
+
1087
+ :param use_filter: If set to true, the texture will use linear interpolation between neighboring texels.
1088
+ :type use_filter: bool
1089
+ """
1090
+
1091
+ def mipmap_mode(self, use_mipmap: bool = True, use_filter: bool = True) -> None:
1092
+ """Set texture filter and mip-map usage.
1093
+
1094
+ :param use_mipmap: If set to true, the texture will use mip-mapping as anti-aliasing method.
1095
+ :type use_mipmap: bool
1096
+ :param use_filter: If set to true, the texture will use linear interpolation between neighboring texels.
1097
+ :type use_filter: bool
1098
+ """
1099
+
1029
1100
  def read(self) -> None:
1030
1101
  """Creates a buffer with the value of all pixels."""
1031
1102
 
@@ -32,6 +32,7 @@ def draw_texture_2d(
32
32
  position: collections.abc.Sequence[float] | mathutils.Vector,
33
33
  width: float,
34
34
  height: float,
35
+ is_scene_linear_with_rec709_srgb_target: bool = False,
35
36
  ) -> None:
36
37
  """Draw a 2d texture.
37
38
 
@@ -44,4 +45,10 @@ def draw_texture_2d(
44
45
  :type width: float
45
46
  :param height: Height of the image when drawn.
46
47
  :type height: float
48
+ :param is_scene_linear_with_rec709_srgb_target: True if the texture is stored in scene linear color space and
49
+ the destination frame-buffer uses the Rec.709 sRGB color space
50
+ (which is true when drawing textures acquired from `bpy.types.Image` inside a
51
+ PRE_VIEW, POST_VIEW or POST_PIXEL draw handler).
52
+ Otherwise the color space is assumed to match the one of the frame-buffer. (default=False)
53
+ :type is_scene_linear_with_rec709_srgb_target: bool
47
54
  """
idprop/types/__init__.pyi CHANGED
@@ -27,8 +27,12 @@ class IDPropertyGroup:
27
27
  def items(self) -> None:
28
28
  """Iterate through the items in the dict; behaves like dictionary method items."""
29
29
 
30
- def keys(self) -> None:
31
- """Return the keys associated with this group as a list of strings."""
30
+ def keys(self) -> IDPropertyGroupViewKeys:
31
+ """Return the keys associated with this group.
32
+
33
+ :return: The keys.
34
+ :rtype: IDPropertyGroupViewKeys
35
+ """
32
36
 
33
37
  def pop(self, key: str, default: typing.Any) -> None:
34
38
  """Remove an item from the group, returning a Python representation.
imbuf/__init__.pyi CHANGED
@@ -37,11 +37,11 @@ def load_from_buffer(buffer) -> imbuf.types.ImBuf:
37
37
  """
38
38
 
39
39
  def new(size: tuple[int, int]) -> imbuf.types.ImBuf:
40
- """Load a new image.
40
+ """Create a new image.
41
41
 
42
42
  :param size: The size of the image in pixels.
43
43
  :type size: tuple[int, int]
44
- :return: the newly loaded image.
44
+ :return: the newly created image.
45
45
  :rtype: imbuf.types.ImBuf
46
46
  """
47
47
 
imbuf/types/__init__.pyi CHANGED
@@ -14,7 +14,7 @@ import numpy.typing as npt
14
14
 
15
15
  class ImBuf:
16
16
  channels: int
17
- """ Number of bit-planes.
17
+ """ Number of color channels.
18
18
 
19
19
  :type: int
20
20
  """
@@ -26,7 +26,7 @@ class ImBuf:
26
26
  """
27
27
 
28
28
  planes: int
29
- """ Number of bits associated with this image.
29
+ """ Number of bits per pixel.
30
30
 
31
31
  :type: int
32
32
  """
@@ -34,7 +34,7 @@ class BUILTIN_KSI_Available(_bpy_types.KeyingSetInfo):
34
34
  """
35
35
 
36
36
  class BUILTIN_KSI_BendyBones(_bpy_types.KeyingSetInfo):
37
- """Insert a keyframe for each of the BBone shape properties"""
37
+ """Insert a keyframe for each of the B-Bone shape properties"""
38
38
 
39
39
  bl_label: typing.Any
40
40
  bl_rna: typing.Any