fake-bpy-module 20240417__py3-none-any.whl → 20240418__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 (137) hide show
  1. _bpy_internal/__init__.pyi +4 -0
  2. _bpy_internal/freedesktop/__init__.pyi +88 -0
  3. _bpy_internal/freedesktop/py.typed +0 -0
  4. _bpy_internal/py.typed +0 -0
  5. aud/__init__.pyi +121 -48
  6. bgl/__init__.pyi +2443 -1265
  7. bl_math/__init__.pyi +19 -3
  8. blf/__init__.pyi +63 -13
  9. bmesh/__init__.pyi +13 -0
  10. bmesh/geometry/__init__.pyi +5 -0
  11. bmesh/ops/__init__.pyi +157 -68
  12. bmesh/types/__init__.pyi +109 -62
  13. bmesh/utils/__init__.pyi +11 -2
  14. bpy/__init__.pyi +7 -0
  15. bpy/app/__init__.pyi +13 -0
  16. bpy/app/handlers/__init__.pyi +41 -0
  17. bpy/app/icons/__init__.pyi +4 -2
  18. bpy/app/timers/__init__.pyi +38 -2
  19. bpy/app/translations/__init__.pyi +58 -0
  20. bpy/msgbus/__init__.pyi +46 -0
  21. bpy/ops/__init__.pyi +151 -0
  22. bpy/ops/action/__init__.pyi +76 -76
  23. bpy/ops/anim/__init__.pyi +104 -104
  24. bpy/ops/armature/__init__.pyi +96 -96
  25. bpy/ops/asset/__init__.pyi +32 -32
  26. bpy/ops/boid/__init__.pyi +16 -16
  27. bpy/ops/brush/__init__.pyi +18 -18
  28. bpy/ops/buttons/__init__.pyi +12 -12
  29. bpy/ops/cachefile/__init__.pyi +10 -10
  30. bpy/ops/camera/__init__.pyi +4 -4
  31. bpy/ops/clip/__init__.pyi +184 -184
  32. bpy/ops/cloth/__init__.pyi +2 -2
  33. bpy/ops/collection/__init__.pyi +18 -18
  34. bpy/ops/console/__init__.pyi +42 -42
  35. bpy/ops/constraint/__init__.pyi +36 -36
  36. bpy/ops/curve/__init__.pyi +102 -102
  37. bpy/ops/curves/__init__.pyi +54 -54
  38. bpy/ops/cycles/__init__.pyi +6 -6
  39. bpy/ops/dpaint/__init__.pyi +10 -10
  40. bpy/ops/ed/__init__.pyi +24 -24
  41. bpy/ops/export_anim/__init__.pyi +2 -2
  42. bpy/ops/export_mesh/__init__.pyi +2 -2
  43. bpy/ops/export_scene/__init__.pyi +7 -7
  44. bpy/ops/file/__init__.pyi +80 -80
  45. bpy/ops/fluid/__init__.pyi +28 -28
  46. bpy/ops/font/__init__.pyi +46 -46
  47. bpy/ops/geometry/__init__.pyi +20 -20
  48. bpy/ops/gizmogroup/__init__.pyi +4 -4
  49. bpy/ops/gpencil/__init__.pyi +300 -300
  50. bpy/ops/graph/__init__.pyi +130 -130
  51. bpy/ops/grease_pencil/__init__.pyi +112 -112
  52. bpy/ops/image/__init__.pyi +92 -92
  53. bpy/ops/import_anim/__init__.pyi +2 -2
  54. bpy/ops/import_curve/__init__.pyi +2 -2
  55. bpy/ops/import_mesh/__init__.pyi +2 -2
  56. bpy/ops/import_scene/__init__.pyi +6 -6
  57. bpy/ops/info/__init__.pyi +14 -14
  58. bpy/ops/lattice/__init__.pyi +16 -16
  59. bpy/ops/marker/__init__.pyi +22 -22
  60. bpy/ops/mask/__init__.pyi +78 -78
  61. bpy/ops/material/__init__.pyi +6 -6
  62. bpy/ops/mball/__init__.pyi +16 -16
  63. bpy/ops/mesh/__init__.pyi +326 -326
  64. bpy/ops/nla/__init__.pyi +79 -79
  65. bpy/ops/node/__init__.pyi +202 -202
  66. bpy/ops/object/__init__.pyi +488 -500
  67. bpy/ops/outliner/__init__.pyi +138 -138
  68. bpy/ops/paint/__init__.pyi +104 -104
  69. bpy/ops/paintcurve/__init__.pyi +16 -16
  70. bpy/ops/palette/__init__.pyi +14 -14
  71. bpy/ops/particle/__init__.pyi +72 -72
  72. bpy/ops/pose/__init__.pyi +78 -78
  73. bpy/ops/poselib/__init__.pyi +18 -18
  74. bpy/ops/preferences/__init__.pyi +76 -76
  75. bpy/ops/ptcache/__init__.pyi +14 -14
  76. bpy/ops/render/__init__.pyi +24 -24
  77. bpy/ops/rigidbody/__init__.pyi +26 -26
  78. bpy/ops/scene/__init__.pyi +78 -78
  79. bpy/ops/screen/__init__.pyi +78 -78
  80. bpy/ops/script/__init__.pyi +6 -6
  81. bpy/ops/sculpt/__init__.pyi +62 -62
  82. bpy/ops/sculpt_curves/__init__.pyi +8 -8
  83. bpy/ops/sequencer/__init__.pyi +170 -170
  84. bpy/ops/sound/__init__.pyi +14 -14
  85. bpy/ops/spreadsheet/__init__.pyi +8 -8
  86. bpy/ops/surface/__init__.pyi +12 -12
  87. bpy/ops/text/__init__.pyi +86 -86
  88. bpy/ops/text_editor/__init__.pyi +2 -2
  89. bpy/ops/texture/__init__.pyi +8 -8
  90. bpy/ops/transform/__init__.pyi +54 -54
  91. bpy/ops/ui/__init__.pyi +64 -64
  92. bpy/ops/uilist/__init__.pyi +6 -6
  93. bpy/ops/uv/__init__.pyi +98 -98
  94. bpy/ops/view2d/__init__.pyi +28 -28
  95. bpy/ops/view3d/__init__.pyi +134 -134
  96. bpy/ops/wm/__init__.pyi +224 -224
  97. bpy/ops/workspace/__init__.pyi +14 -14
  98. bpy/ops/world/__init__.pyi +2 -2
  99. bpy/path/__init__.pyi +6 -0
  100. bpy/props/__init__.pyi +141 -29
  101. bpy/types/__init__.pyi +101490 -5018
  102. bpy/utils/__init__.pyi +18 -3
  103. bpy/utils/previews/__init__.pyi +15 -0
  104. bpy/utils/units/__init__.pyi +11 -3
  105. bpy_extras/__init__.pyi +19 -0
  106. bpy_extras/asset_utils/__init__.pyi +5 -0
  107. {fake_bpy_module-20240417.dist-info → fake_bpy_module-20240418.dist-info}/METADATA +1 -1
  108. {fake_bpy_module-20240417.dist-info → fake_bpy_module-20240418.dist-info}/RECORD +137 -133
  109. {fake_bpy_module-20240417.dist-info → fake_bpy_module-20240418.dist-info}/top_level.txt +1 -0
  110. freestyle/__init__.pyi +18 -0
  111. freestyle/chainingiterators/__init__.pyi +20 -5
  112. freestyle/functions/__init__.pyi +151 -155
  113. freestyle/predicates/__init__.pyi +53 -46
  114. freestyle/shaders/__init__.pyi +91 -32
  115. freestyle/types/__init__.pyi +362 -120
  116. freestyle/utils/ContextFunctions/__init__.pyi +32 -7
  117. freestyle/utils/__init__.pyi +13 -1
  118. gpu/__init__.pyi +225 -0
  119. gpu/capabilities/__init__.pyi +37 -15
  120. gpu/matrix/__init__.pyi +7 -1
  121. gpu/platform/__init__.pyi +5 -0
  122. gpu/select/__init__.pyi +5 -0
  123. gpu/shader/__init__.pyi +77 -0
  124. gpu/state/__init__.pyi +15 -4
  125. gpu/texture/__init__.pyi +5 -0
  126. gpu/types/__init__.pyi +91 -33
  127. gpu_extras/__init__.pyi +15 -0
  128. gpu_extras/presets/__init__.pyi +16 -4
  129. imbuf/__init__.pyi +13 -0
  130. imbuf/types/__init__.pyi +20 -5
  131. mathutils/__init__.pyi +349 -227
  132. mathutils/bvhtree/__init__.pyi +21 -8
  133. mathutils/geometry/__init__.pyi +23 -9
  134. mathutils/interpolate/__init__.pyi +5 -0
  135. mathutils/kdtree/__init__.pyi +19 -5
  136. mathutils/noise/__init__.pyi +87 -41
  137. {fake_bpy_module-20240417.dist-info → fake_bpy_module-20240418.dist-info}/WHEEL +0 -0
bl_math/__init__.pyi CHANGED
@@ -1,37 +1,53 @@
1
+ """
2
+ Miscellaneous math utilities module
3
+
4
+ """
5
+
1
6
  import typing
2
7
 
3
8
  GenericType = typing.TypeVar("GenericType")
4
9
 
5
- def clamp(value, min=0, max=1):
10
+ def clamp(value: float, min: float = 0, max: float = 1) -> float:
6
11
  """Clamps the float value between minimum and maximum. To avoid
7
12
  confusion, any call must use either one or all three arguments.
8
13
 
9
14
  :param value: The value to clamp.
15
+ :type value: float
10
16
  :param min: The minimum value, defaults to 0.
17
+ :type min: float
11
18
  :param max: The maximum value, defaults to 1.
19
+ :type max: float
12
20
  :return: The clamped value.
21
+ :rtype: float
13
22
  """
14
23
 
15
24
  ...
16
25
 
17
- def lerp(from_value, to_value, factor):
26
+ def lerp(from_value: float, to_value: float, factor: float) -> float:
18
27
  """Linearly interpolate between two float values based on factor.
19
28
 
20
29
  :param from_value: The value to return when factor is 0.
30
+ :type from_value: float
21
31
  :param to_value: The value to return when factor is 1.
32
+ :type to_value: float
22
33
  :param factor: The interpolation value, normally in [0.0, 1.0].
34
+ :type factor: float
23
35
  :return: The interpolated value.
36
+ :rtype: float
24
37
  """
25
38
 
26
39
  ...
27
40
 
28
- def smoothstep(from_value, to_value, value):
41
+ def smoothstep(from_value: float, to_value: float, value) -> float:
29
42
  """Performs smooth interpolation between 0 and 1 as value changes between from and to values.
30
43
  Outside the range the function returns the same value as the nearest edge.
31
44
 
32
45
  :param from_value: The edge value where the result is 0.
46
+ :type from_value: float
33
47
  :param to_value: The edge value where the result is 1.
48
+ :type to_value: float
34
49
  :return: The interpolated value in [0.0, 1.0].
50
+ :rtype: float
35
51
  """
36
52
 
37
53
  ...
blf/__init__.pyi CHANGED
@@ -1,44 +1,70 @@
1
+ """
2
+ This module provides access to Blender's text drawing functions.
3
+
4
+
5
+ --------------------
6
+
7
+ Example of using the blf module. For this module to work we
8
+ need to use the OpenGL wrapper ~bgl as well.
9
+
10
+ ```../examples/blf.py```
11
+
12
+ """
13
+
1
14
  import typing
2
15
 
3
16
  GenericType = typing.TypeVar("GenericType")
4
17
 
5
- def aspect(fontid, aspect):
18
+ def aspect(fontid: int, aspect: float):
6
19
  """Set the aspect for drawing text.
7
20
 
8
21
  :param fontid: The id of the typeface as returned by `blf.load`, for default font use 0.
22
+ :type fontid: int
9
23
  :param aspect: The aspect ratio for text drawing to use.
24
+ :type aspect: float
10
25
  """
11
26
 
12
27
  ...
13
28
 
14
- def clipping(fontid, xmin, ymin, xmax, ymax):
29
+ def clipping(fontid: int, xmin: float, ymin: float, xmax: float, ymax: float):
15
30
  """Set the clipping, enable/disable using CLIPPING.
16
31
 
17
32
  :param fontid: The id of the typeface as returned by `blf.load`, for default font use 0.
33
+ :type fontid: int
18
34
  :param xmin: Clip the drawing area by these bounds.
35
+ :type xmin: float
19
36
  :param ymin: Clip the drawing area by these bounds.
37
+ :type ymin: float
20
38
  :param xmax: Clip the drawing area by these bounds.
39
+ :type xmax: float
21
40
  :param ymax: Clip the drawing area by these bounds.
41
+ :type ymax: float
22
42
  """
23
43
 
24
44
  ...
25
45
 
26
- def color(fontid, r, g, b, a):
46
+ def color(fontid: int, r: float, g: float, b: float, a: float):
27
47
  """Set the color for drawing text.
28
48
 
29
49
  :param fontid: The id of the typeface as returned by `blf.load`, for default font use 0.
50
+ :type fontid: int
30
51
  :param r: red channel 0.0 - 1.0.
52
+ :type r: float
31
53
  :param g: green channel 0.0 - 1.0.
54
+ :type g: float
32
55
  :param b: blue channel 0.0 - 1.0.
56
+ :type b: float
33
57
  :param a: alpha channel 0.0 - 1.0.
58
+ :type a: float
34
59
  """
35
60
 
36
61
  ...
37
62
 
38
- def dimensions(fontid, text: str):
63
+ def dimensions(fontid: int, text: str):
39
64
  """Return the width and height of the text.
40
65
 
41
66
  :param fontid: The id of the typeface as returned by `blf.load`, for default font use 0.
67
+ :type fontid: int
42
68
  :param text: the text to draw.
43
69
  :type text: str
44
70
  :return: the width and height of the text.
@@ -46,30 +72,35 @@ def dimensions(fontid, text: str):
46
72
 
47
73
  ...
48
74
 
49
- def disable(fontid, option):
75
+ def disable(fontid: int, option: int):
50
76
  """Disable option.
51
77
 
52
78
  :param fontid: The id of the typeface as returned by `blf.load`, for default font use 0.
79
+ :type fontid: int
53
80
  :param option: One of ROTATION, CLIPPING, SHADOW or KERNING_DEFAULT.
81
+ :type option: int
54
82
  """
55
83
 
56
84
  ...
57
85
 
58
- def draw(fontid, text: str):
86
+ def draw(fontid: int, text: str):
59
87
  """Draw text in the current context.
60
88
 
61
89
  :param fontid: The id of the typeface as returned by `blf.load`, for default font use 0.
90
+ :type fontid: int
62
91
  :param text: the text to draw.
63
92
  :type text: str
64
93
  """
65
94
 
66
95
  ...
67
96
 
68
- def enable(fontid, option):
97
+ def enable(fontid: int, option: int):
69
98
  """Enable option.
70
99
 
71
100
  :param fontid: The id of the typeface as returned by `blf.load`, for default font use 0.
101
+ :type fontid: int
72
102
  :param option: One of ROTATION, CLIPPING, SHADOW or KERNING_DEFAULT.
103
+ :type option: int
73
104
  """
74
105
 
75
106
  ...
@@ -84,54 +115,71 @@ def load(filepath: typing.Union[str, bytes]):
84
115
 
85
116
  ...
86
117
 
87
- def position(fontid, x, y, z):
118
+ def position(fontid: int, x: float, y: float, z: float):
88
119
  """Set the position for drawing text.
89
120
 
90
121
  :param fontid: The id of the typeface as returned by `blf.load`, for default font use 0.
122
+ :type fontid: int
91
123
  :param x: X axis position to draw the text.
124
+ :type x: float
92
125
  :param y: Y axis position to draw the text.
126
+ :type y: float
93
127
  :param z: Z axis position to draw the text.
128
+ :type z: float
94
129
  """
95
130
 
96
131
  ...
97
132
 
98
- def rotation(fontid, angle):
133
+ def rotation(fontid: int, angle: float):
99
134
  """Set the text rotation angle, enable/disable using ROTATION.
100
135
 
101
136
  :param fontid: The id of the typeface as returned by `blf.load`, for default font use 0.
137
+ :type fontid: int
102
138
  :param angle: The angle for text drawing to use.
139
+ :type angle: float
103
140
  """
104
141
 
105
142
  ...
106
143
 
107
- def shadow(fontid, level, r, g, b, a):
144
+ def shadow(fontid: int, level: int, r: float, g: float, b: float, a: float):
108
145
  """Shadow options, enable/disable using SHADOW .
109
146
 
110
147
  :param fontid: The id of the typeface as returned by `blf.load`, for default font use 0.
148
+ :type fontid: int
111
149
  :param level: The blur level, can be 3, 5 or 0.
150
+ :type level: int
112
151
  :param r: Shadow color (red channel 0.0 - 1.0).
152
+ :type r: float
113
153
  :param g: Shadow color (green channel 0.0 - 1.0).
154
+ :type g: float
114
155
  :param b: Shadow color (blue channel 0.0 - 1.0).
156
+ :type b: float
115
157
  :param a: Shadow color (alpha channel 0.0 - 1.0).
158
+ :type a: float
116
159
  """
117
160
 
118
161
  ...
119
162
 
120
- def shadow_offset(fontid, x, y):
163
+ def shadow_offset(fontid: int, x: float, y: float):
121
164
  """Set the offset for shadow text.
122
165
 
123
166
  :param fontid: The id of the typeface as returned by `blf.load`, for default font use 0.
167
+ :type fontid: int
124
168
  :param x: Vertical shadow offset value in pixels.
169
+ :type x: float
125
170
  :param y: Horizontal shadow offset value in pixels.
171
+ :type y: float
126
172
  """
127
173
 
128
174
  ...
129
175
 
130
- def size(fontid, size):
176
+ def size(fontid: int, size: float):
131
177
  """Set the size for drawing text.
132
178
 
133
179
  :param fontid: The id of the typeface as returned by `blf.load`, for default font use 0.
180
+ :type fontid: int
134
181
  :param size: Point size of the font.
182
+ :type size: float
135
183
  """
136
184
 
137
185
  ...
@@ -145,11 +193,13 @@ def unload(filepath: typing.Union[str, bytes]):
145
193
 
146
194
  ...
147
195
 
148
- def word_wrap(fontid, wrap_width):
196
+ def word_wrap(fontid: int, wrap_width: int):
149
197
  """Set the wrap width, enable/disable using WORD_WRAP.
150
198
 
151
199
  :param fontid: The id of the typeface as returned by `blf.load`, for default font use 0.
200
+ :type fontid: int
152
201
  :param wrap_width: The width (in pixels) to wrap words at.
202
+ :type wrap_width: int
153
203
  """
154
204
 
155
205
  ...
bmesh/__init__.pyi CHANGED
@@ -1,3 +1,16 @@
1
+ """
2
+ This module provides access to blenders bmesh data structures.
3
+
4
+ bmesh.ops.rst
5
+ bmesh.types.rst
6
+ bmesh.utils.rst
7
+ bmesh.geometry.rst
8
+
9
+ :maxdepth: 1
10
+ :caption: Submodules
11
+
12
+ """
13
+
1
14
  import typing
2
15
  import bmesh.types
3
16
  import bpy.types
@@ -1,3 +1,8 @@
1
+ """
2
+ This module provides access to bmesh geometry evaluation functions.
3
+
4
+ """
5
+
1
6
  import typing
2
7
  import bmesh.types
3
8
  import mathutils