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
bpy/utils/__init__.pyi CHANGED
@@ -1,3 +1,15 @@
1
+ """
2
+ This module contains utility functions specific to blender but
3
+ not associated with blenders internal data.
4
+
5
+ bpy.utils.previews.rst
6
+ bpy.utils.units.rst
7
+
8
+ :maxdepth: 1
9
+ :caption: Submodules
10
+
11
+ """
12
+
1
13
  import typing
2
14
  from . import previews
3
15
  from . import units
@@ -320,12 +332,13 @@ def register_tool(tool_cls, after, separator, group):
320
332
 
321
333
  ...
322
334
 
323
- def resource_path(type: str, major=None[0], minor: str = None[1]) -> str:
335
+ def resource_path(type: str, major: int = None[0], minor: str = None[1]) -> str:
324
336
  """Return the base path for storing system files.
325
337
 
326
338
  :param type: string in ['USER', 'LOCAL', 'SYSTEM'].
327
339
  :type type: str
328
340
  :param major: major version, defaults to current.
341
+ :type major: int
329
342
  :param minor: minor version, defaults to current.
330
343
  :type minor: str
331
344
  :return: the resource path (not necessarily existing).
@@ -371,11 +384,12 @@ def script_paths_pref():
371
384
 
372
385
  ...
373
386
 
374
- def smpte_from_frame(frame, fps=None, fps_base=None) -> str:
387
+ def smpte_from_frame(frame: int, fps=None, fps_base=None) -> str:
375
388
  """Returns an SMPTE formatted string from the frame:
376
389
  HH:MM:SS:FF.If fps and fps_base are not given the current scene is used.
377
390
 
378
391
  :param frame: frame number.
392
+ :type frame: int
379
393
  :return: the frame string.
380
394
  :rtype: str
381
395
  """
@@ -387,11 +401,12 @@ def smpte_from_frame(frame, fps, fps_base):
387
401
 
388
402
  ...
389
403
 
390
- def smpte_from_seconds(time, fps=None, fps_base=None) -> str:
404
+ def smpte_from_seconds(time: typing.Union[int, float], fps=None, fps_base=None) -> str:
391
405
  """Returns an SMPTE formatted string from the time:
392
406
  HH:MM:SS:FF.If fps and fps_base are not given the current scene is used.
393
407
 
394
408
  :param time: time in seconds.
409
+ :type time: typing.Union[int, float]
395
410
  :return: the frame string.
396
411
  :rtype: str
397
412
  """
@@ -1,3 +1,18 @@
1
+ """
2
+ This module contains utility functions to handle custom previews.
3
+
4
+ It behaves as a high-level 'cached' previews manager.
5
+
6
+ This allows scripts to generate their own previews, and use them as icons in UI widgets
7
+ ('icon_value' for UILayout functions).
8
+
9
+
10
+ --------------------
11
+
12
+ ```__/__/__/scripts/templates_py/ui_previews_custom_icon.py```
13
+
14
+ """
15
+
1
16
  import typing
2
17
  import bpy.types
3
18
 
@@ -1,3 +1,8 @@
1
+ """
2
+ This module contains some data/methods regarding units handling.
3
+
4
+ """
5
+
1
6
  import typing
2
7
 
3
8
  GenericType = typing.TypeVar("GenericType")
@@ -5,8 +10,8 @@ GenericType = typing.TypeVar("GenericType")
5
10
  def to_string(
6
11
  unit_system: str,
7
12
  unit_category: str,
8
- value,
9
- precision=3,
13
+ value: float,
14
+ precision: int = 3,
10
15
  split_unit: bool = False,
11
16
  compatible_unit: bool = False,
12
17
  ) -> str:
@@ -18,7 +23,9 @@ def to_string(
18
23
  from `bpy.utils.units.categories`.
19
24
  :type unit_category: str
20
25
  :param value: The value to convert to a string.
26
+ :type value: float
21
27
  :param precision: Number of digits after the comma.
28
+ :type precision: int
22
29
  :param split_unit: Whether to use several units if needed (1m1cm), or always only one (1.01m).
23
30
  :type split_unit: bool
24
31
  :param compatible_unit: Whether to use keyboard-friendly units (1m2) or nicer utf-8 ones (1m²).
@@ -31,7 +38,7 @@ def to_string(
31
38
 
32
39
  def to_value(
33
40
  unit_system: str, unit_category: str, str_input: str, str_ref_unit: str = None
34
- ):
41
+ ) -> float:
35
42
  """Convert a given input string into a float value.
36
43
 
37
44
  :param unit_system: The unit system, from `bpy.utils.units.systems`.
@@ -44,6 +51,7 @@ def to_value(
44
51
  :param str_ref_unit: A reference string from which to extract a default unit, if none is found in str_input.
45
52
  :type str_ref_unit: str
46
53
  :return: The converted/interpreted value.
54
+ :rtype: float
47
55
  """
48
56
 
49
57
  ...
bpy_extras/__init__.pyi CHANGED
@@ -1,3 +1,22 @@
1
+ """
2
+ Utility modules associated with the bpy module.
3
+
4
+ bpy_extras.anim_utils.rst
5
+ bpy_extras.asset_utils.rst
6
+ bpy_extras.object_utils.rst
7
+ bpy_extras.io_utils.rst
8
+ bpy_extras.image_utils.rst
9
+ bpy_extras.keyconfig_utils.rst
10
+ bpy_extras.mesh_utils.rst
11
+ bpy_extras.node_utils.rst
12
+ bpy_extras.view3d_utils.rst
13
+ bpy_extras.id_map_utils.rst
14
+
15
+ :maxdepth: 1
16
+ :caption: Submodules
17
+
18
+ """
19
+
1
20
  import typing
2
21
  from . import anim_utils
3
22
  from . import asset_utils
@@ -1,3 +1,8 @@
1
+ """
2
+ Helpers for asset management tasks.
3
+
4
+ """
5
+
1
6
  import typing
2
7
 
3
8
  GenericType = typing.TypeVar("GenericType")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fake-bpy-module
3
- Version: 20240417
3
+ Version: 20240418
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