fake-bpy-module 20240604__py3-none-any.whl → 20240606__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.

@@ -27,7 +27,7 @@ class I18n:
27
27
  """
28
28
  ...
29
29
 
30
- def parse(self, kind, src, langs=None()):
30
+ def parse(self, kind, src, langs=set()):
31
31
  """
32
32
 
33
33
  :param kind:
@@ -36,7 +36,7 @@ class I18n:
36
36
  """
37
37
  ...
38
38
 
39
- def parse_from_po(self, src, langs=None()):
39
+ def parse_from_po(self, src, langs=set()):
40
40
  """
41
41
 
42
42
  :param src:
@@ -44,7 +44,7 @@ class I18n:
44
44
  """
45
45
  ...
46
46
 
47
- def parse_from_py(self, src, langs=None()):
47
+ def parse_from_py(self, src, langs=set()):
48
48
  """src must be a valid path, either a py file or a module directory (in which case all py files inside it
49
49
  will be checked, first file matching will win!).
50
50
  if langs set is void, all languages found are loaded.
@@ -71,7 +71,7 @@ class I18n:
71
71
  ...
72
72
 
73
73
  def update_info(self): ...
74
- def write(self, kind, langs=None()):
74
+ def write(self, kind, langs=set()):
75
75
  """
76
76
 
77
77
  :param kind:
@@ -79,14 +79,14 @@ class I18n:
79
79
  """
80
80
  ...
81
81
 
82
- def write_to_po(self, langs=None()):
82
+ def write_to_po(self, langs=set()):
83
83
  """
84
84
 
85
85
  :param langs:
86
86
  """
87
87
  ...
88
88
 
89
- def write_to_py(self, langs=None()):
89
+ def write_to_py(self, langs=set()):
90
90
  """
91
91
 
92
92
  :param langs:
@@ -312,7 +312,7 @@ def find_best_isocode_matches(uid, iso_codes):
312
312
  ...
313
313
 
314
314
  def get_best_similar(data): ...
315
- def get_po_files_from_dir(root_dir, langs=None()):
315
+ def get_po_files_from_dir(root_dir, langs=set()):
316
316
  """Yield tuples (uid, po_path) of translations for each po file found in the given directory, which should be either
317
317
  a directory containing po files using language uid's as names (e.g. fr.po, es_ES.po, etc.), or
318
318
  a directory containing directories which names are language uids, and containing po files of the same names.
@@ -8,9 +8,300 @@ import bpy_types
8
8
  GenericType1 = typing.TypeVar("GenericType1")
9
9
  GenericType2 = typing.TypeVar("GenericType2")
10
10
 
11
+ class TextureProperties_MixIn:
12
+ t: typing.Any
13
+
14
+ def draw_texture_config(self, context):
15
+ """
16
+
17
+ :param context:
18
+ """
19
+ ...
20
+
21
+ class MaterialProperties_MixIn:
22
+ def draw_material_config(self, context):
23
+ """
24
+
25
+ :param context:
26
+ """
27
+ ...
28
+
29
+ class ImageSpec:
30
+ """ImageSpec(image, size, frame_start, frame_offset, frame_duration)"""
31
+
32
+ frame_duration: typing.Any
33
+ frame_offset: typing.Any
34
+ frame_start: typing.Any
35
+ image: typing.Any
36
+ size: typing.Any
37
+
38
+ def count(self, value):
39
+ """Return number of occurrences of value.
40
+
41
+ :param value:
42
+ """
43
+ ...
44
+
45
+ def index(self, value, start=0, stop=9223372036854775807):
46
+ """Return first index of value.Raises ValueError if the value is not present.
47
+
48
+ :param value:
49
+ :param start:
50
+ :param stop:
51
+ """
52
+ ...
53
+
54
+ class IMAGE_OT_convert_to_mesh_plane(
55
+ TextureProperties_MixIn, MaterialProperties_MixIn, bpy_types.Operator
56
+ ):
57
+ """Convert selected reference images to textured mesh plane"""
58
+
59
+ bl_idname: typing.Any
60
+ bl_label: typing.Any
61
+ bl_options: typing.Any
62
+ bl_rna: typing.Any
63
+ id_data: typing.Any
64
+ t: typing.Any
65
+
66
+ def as_keywords(self, ignore=()):
67
+ """Return a copy of the properties as a dictionary
68
+
69
+ :param ignore:
70
+ """
71
+ ...
72
+
73
+ def as_pointer(self) -> int:
74
+ """Returns the memory address which holds a pointer to Blender's internal data
75
+
76
+ :return: int (memory address).
77
+ :rtype: int
78
+ """
79
+ ...
80
+
81
+ def bl_rna_get_subclass(self) -> bpy.types.Struct:
82
+ """
83
+
84
+ :return: The RNA type or default when not found.
85
+ :rtype: bpy.types.Struct
86
+ """
87
+ ...
88
+
89
+ def bl_rna_get_subclass_py(self) -> typing.Any:
90
+ """
91
+
92
+ :return: The class or default when not found.
93
+ :rtype: typing.Any
94
+ """
95
+ ...
96
+
97
+ def draw(self, context):
98
+ """
99
+
100
+ :param context:
101
+ """
102
+ ...
103
+
104
+ def draw_material_config(self, context):
105
+ """
106
+
107
+ :param context:
108
+ """
109
+ ...
110
+
111
+ def draw_texture_config(self, context):
112
+ """
113
+
114
+ :param context:
115
+ """
116
+ ...
117
+
118
+ def driver_add(self) -> bpy.types.FCurve:
119
+ """Adds driver(s) to the given property
120
+
121
+ :return: The driver(s) added.
122
+ :rtype: bpy.types.FCurve
123
+ """
124
+ ...
125
+
126
+ def driver_remove(self) -> bool:
127
+ """Remove driver(s) from the given property
128
+
129
+ :return: Success of driver removal.
130
+ :rtype: bool
131
+ """
132
+ ...
133
+
134
+ def execute(self, context):
135
+ """
136
+
137
+ :param context:
138
+ """
139
+ ...
140
+
141
+ def get(self):
142
+ """Returns the value of the custom property assigned to key or default
143
+ when not found (matches Python's dictionary function of the same name).
144
+
145
+ """
146
+ ...
147
+
148
+ def id_properties_clear(self):
149
+ """
150
+
151
+ :return: Remove the parent group for an RNA struct's custom IDProperties.
152
+ """
153
+ ...
154
+
155
+ def id_properties_ensure(self):
156
+ """
157
+
158
+ :return: the parent group for an RNA struct's custom IDProperties.
159
+ """
160
+ ...
161
+
162
+ def id_properties_ui(self):
163
+ """
164
+
165
+ :return: Return an object used to manage an IDProperty's UI data.
166
+ """
167
+ ...
168
+
169
+ def invoke(self, context, _event):
170
+ """
171
+
172
+ :param context:
173
+ :param _event:
174
+ """
175
+ ...
176
+
177
+ def is_property_hidden(self) -> bool:
178
+ """Check if a property is hidden.
179
+
180
+ :return: True when the property is hidden.
181
+ :rtype: bool
182
+ """
183
+ ...
184
+
185
+ def is_property_overridable_library(self) -> bool:
186
+ """Check if a property is overridable.
187
+
188
+ :return: True when the property is overridable.
189
+ :rtype: bool
190
+ """
191
+ ...
192
+
193
+ def is_property_readonly(self) -> bool:
194
+ """Check if a property is readonly.
195
+
196
+ :return: True when the property is readonly (not writable).
197
+ :rtype: bool
198
+ """
199
+ ...
200
+
201
+ def is_property_set(self) -> bool:
202
+ """Check if a property is set, use for testing operator properties.
203
+
204
+ :return: True when the property has been set.
205
+ :rtype: bool
206
+ """
207
+ ...
208
+
209
+ def items(self):
210
+ """Returns the items of this objects custom properties (matches Python's
211
+ dictionary function of the same name).
212
+
213
+ :return: custom property key, value pairs.
214
+ """
215
+ ...
216
+
217
+ def keyframe_delete(self) -> bool:
218
+ """Remove a keyframe from this properties fcurve.
219
+
220
+ :return: Success of keyframe deletion.
221
+ :rtype: bool
222
+ """
223
+ ...
224
+
225
+ def keyframe_insert(self) -> bool:
226
+ """Insert a keyframe on the property given, adding fcurves and animation data when necessary.
227
+
228
+ :return: Success of keyframe insertion.
229
+ :rtype: bool
230
+ """
231
+ ...
232
+
233
+ def keys(self):
234
+ """Returns the keys of this objects custom properties (matches Python's
235
+ dictionary function of the same name).
236
+
237
+ :return: custom property keys.
238
+ """
239
+ ...
240
+
241
+ def path_from_id(self) -> str:
242
+ """Returns the data path from the ID to this object (string).
243
+
244
+ :return: The path from `bpy.types.bpy_struct.id_data`
245
+ to this struct and property (when given).
246
+ :rtype: str
247
+ """
248
+ ...
249
+
250
+ def path_resolve(self):
251
+ """Returns the property from the path, raise an exception when not found."""
252
+ ...
253
+
254
+ def poll(self, context):
255
+ """
256
+
257
+ :param context:
258
+ """
259
+ ...
260
+
261
+ def poll_message_set(self):
262
+ """Set the message to show in the tool-tip when poll fails.When message is callable, additional user defined positional arguments are passed to the message function."""
263
+ ...
264
+
265
+ def pop(self):
266
+ """Remove and return the value of the custom property assigned to key or default
267
+ when not found (matches Python's dictionary function of the same name).
268
+
269
+ """
270
+ ...
271
+
272
+ def property_overridable_library_set(self) -> bool:
273
+ """Define a property as overridable or not (only for custom properties!).
274
+
275
+ :return: True when the overridable status of the property was successfully set.
276
+ :rtype: bool
277
+ """
278
+ ...
279
+
280
+ def property_unset(self):
281
+ """Unset a property, will use default value afterward."""
282
+ ...
283
+
284
+ def type_recast(self):
285
+ """Return a new instance, this is needed because types
286
+ such as textures can be changed at runtime.
287
+
288
+ :return: a new instance of this object with the type initialized again.
289
+ """
290
+ ...
291
+
292
+ def values(self):
293
+ """Returns the values of this objects custom properties (matches Python's
294
+ dictionary function of the same name).
295
+
296
+ :return: custom property values.
297
+ """
298
+ ...
299
+
11
300
  class IMAGE_OT_import_as_mesh_planes(
301
+ TextureProperties_MixIn,
12
302
  bpy_extras.io_utils.ImportHelper,
13
303
  bpy_extras.object_utils.AddObjectHelper,
304
+ MaterialProperties_MixIn,
14
305
  bpy_types.Operator,
15
306
  ):
16
307
  """Create mesh plane(s) from image files with the appropriate aspect ratio"""
@@ -54,14 +345,6 @@ class IMAGE_OT_import_as_mesh_planes(
54
345
  """
55
346
  ...
56
347
 
57
- def apply_texture_options(self, texture, img_spec):
58
- """
59
-
60
- :param texture:
61
- :param img_spec:
62
- """
63
- ...
64
-
65
348
  def as_keywords(self, ignore=()):
66
349
  """Return a copy of the properties as a dictionary
67
350
 
@@ -108,22 +391,6 @@ class IMAGE_OT_import_as_mesh_planes(
108
391
  """
109
392
  ...
110
393
 
111
- def create_cycles_material(self, img_spec, name):
112
- """
113
-
114
- :param img_spec:
115
- :param name:
116
- """
117
- ...
118
-
119
- def create_cycles_texnode(self, node_tree, img_spec):
120
- """
121
-
122
- :param node_tree:
123
- :param img_spec:
124
- """
125
- ...
126
-
127
394
  def create_image_plane(self, context, name, img_spec):
128
395
  """
129
396
 
@@ -380,31 +647,7 @@ class IMAGE_OT_import_as_mesh_planes(
380
647
  """
381
648
  ...
382
649
 
383
- class ImageSpec:
384
- """ImageSpec(image, size, frame_start, frame_offset, frame_duration)"""
385
-
386
- frame_duration: typing.Any
387
- frame_offset: typing.Any
388
- frame_start: typing.Any
389
- image: typing.Any
390
- size: typing.Any
391
-
392
- def count(self, value):
393
- """Return number of occurrences of value.
394
-
395
- :param value:
396
- """
397
- ...
398
-
399
- def index(self, value, start=0, stop=9223372036854775807):
400
- """Return first index of value.Raises ValueError if the value is not present.
401
-
402
- :param value:
403
- :param start:
404
- :param stop:
405
- """
406
- ...
407
-
650
+ def apply_texture_options(texture, img_spec): ...
408
651
  def auto_align_nodes(node_tree):
409
652
  """Given a shader node tree, arrange nodes neatly relative to the output node."""
410
653
 
@@ -425,6 +668,8 @@ def compute_camera_size(context, center, fill_mode, aspect):
425
668
 
426
669
  ...
427
670
 
671
+ def create_cycles_material(context, img_spec, name): ...
672
+ def create_cycles_texnode(node_tree, img_spec): ...
428
673
  def find_image_sequences(files):
429
674
  """From a group of files, detect image sequences.This returns a generator of tuples, which contain the filename,
430
675
  start frame, and length of the detected sequence
@@ -438,6 +683,7 @@ def get_input_nodes(node, links):
438
683
 
439
684
  ...
440
685
 
686
+ def get_ref_object_space_coord(ob): ...
441
687
  def get_shadeless_node(dest_node_tree):
442
688
  """Return a "shadeless" cycles/EEVEE node, creating a node group if nonexistent"""
443
689
 
@@ -9827,7 +9827,7 @@ class WM_OT_url_open_preset(bpy_types.Operator):
9827
9827
  def context_path_decompose(data_path): ...
9828
9828
  def context_path_to_rna_property(context, data_path): ...
9829
9829
  def context_path_validate(context, data_path): ...
9830
- def description_from_data_path(base, data_path, prefix, value=None): ...
9830
+ def description_from_data_path(base, data_path, prefix, value=Ellipsis): ...
9831
9831
  def execute_context_assign(context): ...
9832
9832
  def operator_path_is_undo(context, data_path): ...
9833
9833
  def operator_path_undo_return(context, data_path): ...
@@ -3670,7 +3670,6 @@ class NODE_PT_active_node_generic(bpy_types.Panel, bpy_types._GenericUI):
3670
3670
  class NODE_PT_active_node_properties(bpy_types.Panel, bpy_types._GenericUI):
3671
3671
  bl_category: typing.Any
3672
3672
  bl_label: typing.Any
3673
- bl_options: typing.Any
3674
3673
  bl_region_type: typing.Any
3675
3674
  bl_rna: typing.Any
3676
3675
  bl_space_type: typing.Any