fake-bpy-module-latest 20260115__py3-none-any.whl → 20260122__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.
@@ -6,6 +6,7 @@ from . import addons as addons
6
6
  from . import assets as assets
7
7
  from . import disk_file_hash_service as disk_file_hash_service
8
8
  from . import extensions as extensions
9
- from . import freedesktop as freedesktop
9
+ from . import filesystem as filesystem
10
10
  from . import grease_pencil as grease_pencil
11
+ from . import platform as platform
11
12
  from . import system_info as system_info
@@ -0,0 +1,5 @@
1
+ import typing
2
+ import collections.abc
3
+ import typing_extensions
4
+ import numpy.typing as npt
5
+ from . import locking as locking
@@ -0,0 +1,28 @@
1
+ import typing
2
+ import collections.abc
3
+ import typing_extensions
4
+ import numpy.typing as npt
5
+
6
+ class MutexAcquisitionError:
7
+ """Raised when mutex_lock_and_open_with_retry() cannot obtain a lock."""
8
+
9
+ args: typing.Any
10
+
11
+ def mutex_lock_and_open(file_path, mode) -> None:
12
+ """Obtain an exclusive lock on a file.Create a file on disk, and immediately lock it for exclusive use by this
13
+ process.
14
+
15
+ :return: If the file was opened & locked succesfully, a tuple (file,
16
+ unlocker) is returned. Otherwise returns None. The caller should call
17
+ unlocker(file) to unlock the mutex.
18
+ """
19
+
20
+ def mutex_lock_and_open_with_retry(
21
+ file_path, mode, *, max_tries, wait_time_sec
22
+ ) -> None:
23
+ """Obtain an exclusive lock on a file, retrying when that fails.See mutex_lock_and_open() for the lock semantics, and the first two parameters.
24
+
25
+ :param max_tries: number of times the code attempts to acquire the lock.
26
+ :return: A tuple (file, unlocker) is returned. The caller should call
27
+ unlocker(file) to unlock the mutex.
28
+ """
@@ -0,0 +1,5 @@
1
+ import typing
2
+ import collections.abc
3
+ import typing_extensions
4
+ import numpy.typing as npt
5
+ from . import freedesktop as freedesktop
@@ -564,6 +564,13 @@ class NODE_OT_swap_zone(NodeSwapOperator, ZoneOperator, _bpy_types.Operator):
564
564
  :param context:
565
565
  """
566
566
 
567
+ @staticmethod
568
+ def get_child_items(node) -> None:
569
+ """
570
+
571
+ :param node:
572
+ """
573
+
567
574
  @staticmethod
568
575
  def get_zone_pair(tree, node) -> None:
569
576
  """
@@ -572,6 +579,13 @@ class NODE_OT_swap_zone(NodeSwapOperator, ZoneOperator, _bpy_types.Operator):
572
579
  :param node:
573
580
  """
574
581
 
582
+ def transfer_zone_sockets(self, old_node, new_node) -> None:
583
+ """
584
+
585
+ :param old_node:
586
+ :param new_node:
587
+ """
588
+
575
589
  class NODE_OT_tree_path_parent(_bpy_types.Operator):
576
590
  """Go to parent node tree"""
577
591
 
@@ -114,7 +114,7 @@ class UILIST_OT_entry_remove(GenericUIListOperator, _bpy_types.Operator):
114
114
 
115
115
  def draw_ui_list(
116
116
  layout: bpy.types.UILayout,
117
- context: bpy.types.Context,
117
+ context: _bpy_types.Context,
118
118
  class_name: str = "UI_UL_list",
119
119
  *,
120
120
  unique_id: str,
bpy/app/__init__.pyi CHANGED
@@ -122,6 +122,10 @@ build_type: bytes
122
122
  """ The type of build (Release, Debug)
123
123
  """
124
124
 
125
+ cachedir: None | str
126
+ """ String, the cache directory used by blender (read-only).If the parent of the cache folder (i.e. the part of the path that is not Blender-specific) does not exist, returns None.
127
+ """
128
+
125
129
  debug: bool
126
130
  """ Boolean, for debug info (started with --debug / --debug-* matching this attribute name).
127
131
  """
@@ -91,6 +91,10 @@ depsgraph_update_pre: list[collections.abc.Callable[[bpy.types.Scene, None], Non
91
91
  """ on depsgraph update (pre). Accepts two arguments: The scene data-block and the dependency graph being updated
92
92
  """
93
93
 
94
+ exit_pre: list[collections.abc.Callable[[bpy.types.Scene], None]]
95
+ """ just before Blender shuts down, while all data is still valid. Accepts one boolean argument. True indicates either that a user has been using Blender and exited, or that Blender is exiting in a circumstance that should be treated as if that were the case. False indicates that Blender is running in background mode, or is exiting due to failed command line arguments, etc.
96
+ """
97
+
94
98
  frame_change_post: list[collections.abc.Callable[[bpy.types.Scene], None]]
95
99
  """ Called after frame change for playback and rendering, after the data has been evaluated for the new frame. Accepts two arguments: The scene data-block and the dependency graph being updated
96
100
  """
@@ -66,7 +66,8 @@ def brush_stroke(
66
66
  *,
67
67
  stroke: bpy.types.bpy_prop_collection[bpy.types.OperatorStrokeElement]
68
68
  | None = None,
69
- mode: typing.Literal["NORMAL", "INVERT", "SMOOTH", "ERASE"] | None = "NORMAL",
69
+ mode: typing.Literal["NORMAL", "INVERT", "SMOOTH", "ERASE", "MASK"]
70
+ | None = "NORMAL",
70
71
  pen_flip: bool | None = False,
71
72
  ) -> None:
72
73
  """Draw a new stroke in the active Grease Pencil object
@@ -85,6 +86,9 @@ def brush_stroke(
85
86
 
86
87
  ERASE
87
88
  Erase -- Switch brush to erase mode for duration of stroke.
89
+
90
+ MASK
91
+ Mask -- Switch brush to mask mode for duration of stroke.
88
92
  :param pen_flip: Pen Flip, Whether a tablets eraser mode is being used
89
93
  """
90
94
 
@@ -1042,7 +1046,8 @@ def sculpt_paint(
1042
1046
  *,
1043
1047
  stroke: bpy.types.bpy_prop_collection[bpy.types.OperatorStrokeElement]
1044
1048
  | None = None,
1045
- mode: typing.Literal["NORMAL", "INVERT", "SMOOTH", "ERASE"] | None = "NORMAL",
1049
+ mode: typing.Literal["NORMAL", "INVERT", "SMOOTH", "ERASE", "MASK"]
1050
+ | None = "NORMAL",
1046
1051
  pen_flip: bool | None = False,
1047
1052
  ) -> None:
1048
1053
  """Sculpt strokes in the active Grease Pencil object
@@ -1061,6 +1066,9 @@ def sculpt_paint(
1061
1066
 
1062
1067
  ERASE
1063
1068
  Erase -- Switch brush to erase mode for duration of stroke.
1069
+
1070
+ MASK
1071
+ Mask -- Switch brush to mask mode for duration of stroke.
1064
1072
  :param pen_flip: Pen Flip, Whether a tablets eraser mode is being used
1065
1073
  """
1066
1074
 
@@ -1600,7 +1608,8 @@ def vertex_brush_stroke(
1600
1608
  *,
1601
1609
  stroke: bpy.types.bpy_prop_collection[bpy.types.OperatorStrokeElement]
1602
1610
  | None = None,
1603
- mode: typing.Literal["NORMAL", "INVERT", "SMOOTH", "ERASE"] | None = "NORMAL",
1611
+ mode: typing.Literal["NORMAL", "INVERT", "SMOOTH", "ERASE", "MASK"]
1612
+ | None = "NORMAL",
1604
1613
  pen_flip: bool | None = False,
1605
1614
  ) -> None:
1606
1615
  """Draw on vertex colors in the active Grease Pencil object
@@ -1619,6 +1628,9 @@ def vertex_brush_stroke(
1619
1628
 
1620
1629
  ERASE
1621
1630
  Erase -- Switch brush to erase mode for duration of stroke.
1631
+
1632
+ MASK
1633
+ Mask -- Switch brush to mask mode for duration of stroke.
1622
1634
  :param pen_flip: Pen Flip, Whether a tablets eraser mode is being used
1623
1635
  """
1624
1636
 
@@ -1750,7 +1762,8 @@ def weight_brush_stroke(
1750
1762
  *,
1751
1763
  stroke: bpy.types.bpy_prop_collection[bpy.types.OperatorStrokeElement]
1752
1764
  | None = None,
1753
- mode: typing.Literal["NORMAL", "INVERT", "SMOOTH", "ERASE"] | None = "NORMAL",
1765
+ mode: typing.Literal["NORMAL", "INVERT", "SMOOTH", "ERASE", "MASK"]
1766
+ | None = "NORMAL",
1754
1767
  pen_flip: bool | None = False,
1755
1768
  ) -> None:
1756
1769
  """Draw weight on stroke points in the active Grease Pencil object
@@ -1769,6 +1782,9 @@ def weight_brush_stroke(
1769
1782
 
1770
1783
  ERASE
1771
1784
  Erase -- Switch brush to erase mode for duration of stroke.
1785
+
1786
+ MASK
1787
+ Mask -- Switch brush to mask mode for duration of stroke.
1772
1788
  :param pen_flip: Pen Flip, Whether a tablets eraser mode is being used
1773
1789
  """
1774
1790
 
bpy/ops/node/__init__.pyi CHANGED
@@ -960,6 +960,44 @@ def field_to_grid_item_remove(
960
960
  :param node_identifier: Node Identifier, Optional identifier of the node to operate on
961
961
  """
962
962
 
963
+ def field_to_list_item_add(
964
+ execution_context: int | str | None = None,
965
+ undo: bool | None = None,
966
+ /,
967
+ *,
968
+ node_identifier: int | None = 0,
969
+ ) -> None:
970
+ """Add item below active item
971
+
972
+ :param node_identifier: Node Identifier, Optional identifier of the node to operate on
973
+ """
974
+
975
+ def field_to_list_item_move(
976
+ execution_context: int | str | None = None,
977
+ undo: bool | None = None,
978
+ /,
979
+ *,
980
+ direction: typing.Literal["UP", "DOWN"] | None = "UP",
981
+ node_identifier: int | None = 0,
982
+ ) -> None:
983
+ """Move active item
984
+
985
+ :param direction: Direction, Move direction
986
+ :param node_identifier: Node Identifier, Optional identifier of the node to operate on
987
+ """
988
+
989
+ def field_to_list_item_remove(
990
+ execution_context: int | str | None = None,
991
+ undo: bool | None = None,
992
+ /,
993
+ *,
994
+ node_identifier: int | None = 0,
995
+ ) -> None:
996
+ """Remove active item
997
+
998
+ :param node_identifier: Node Identifier, Optional identifier of the node to operate on
999
+ """
1000
+
963
1001
  def file_output_item_add(
964
1002
  execution_context: int | str | None = None,
965
1003
  undo: bool | None = None,
@@ -381,7 +381,8 @@ def image_paint(
381
381
  *,
382
382
  stroke: bpy.types.bpy_prop_collection[bpy.types.OperatorStrokeElement]
383
383
  | None = None,
384
- mode: typing.Literal["NORMAL", "INVERT", "SMOOTH", "ERASE"] | None = "NORMAL",
384
+ mode: typing.Literal["NORMAL", "INVERT", "SMOOTH", "ERASE", "MASK"]
385
+ | None = "NORMAL",
385
386
  pen_flip: bool | None = False,
386
387
  ) -> None:
387
388
  """Paint a stroke into the image
@@ -400,6 +401,9 @@ def image_paint(
400
401
 
401
402
  ERASE
402
403
  Erase -- Switch brush to erase mode for duration of stroke.
404
+
405
+ MASK
406
+ Mask -- Switch brush to mask mode for duration of stroke.
403
407
  :param pen_flip: Pen Flip, Whether a tablets eraser mode is being used
404
408
  """
405
409
 
@@ -662,6 +666,20 @@ def vert_select_linked_pick(
662
666
  :param select: Select, Whether to select or deselect linked vertices under the cursor
663
667
  """
664
668
 
669
+ def vert_select_loop(
670
+ execution_context: int | str | None = None,
671
+ undo: bool | None = None,
672
+ /,
673
+ *,
674
+ select: bool | None = True,
675
+ extend: bool | None = False,
676
+ ) -> None:
677
+ """Select vertex loop under the cursor
678
+
679
+ :param select: Select, If false, vertices will be deselected
680
+ :param extend: Extend, Extend the selection
681
+ """
682
+
665
683
  def vert_select_more(
666
684
  execution_context: int | str | None = None,
667
685
  undo: bool | None = None,
@@ -792,7 +810,8 @@ def vertex_paint(
792
810
  *,
793
811
  stroke: bpy.types.bpy_prop_collection[bpy.types.OperatorStrokeElement]
794
812
  | None = None,
795
- mode: typing.Literal["NORMAL", "INVERT", "SMOOTH", "ERASE"] | None = "NORMAL",
813
+ mode: typing.Literal["NORMAL", "INVERT", "SMOOTH", "ERASE", "MASK"]
814
+ | None = "NORMAL",
796
815
  pen_flip: bool | None = False,
797
816
  override_location: bool | None = False,
798
817
  ) -> None:
@@ -812,6 +831,9 @@ def vertex_paint(
812
831
 
813
832
  ERASE
814
833
  Erase -- Switch brush to erase mode for duration of stroke.
834
+
835
+ MASK
836
+ Mask -- Switch brush to mask mode for duration of stroke.
815
837
  :param pen_flip: Pen Flip, Whether a tablets eraser mode is being used
816
838
  :param override_location: Override Location, Override the given "location" array by recalculating object space positions from the provided "mouse_event" positions
817
839
  """
@@ -901,7 +923,8 @@ def weight_paint(
901
923
  *,
902
924
  stroke: bpy.types.bpy_prop_collection[bpy.types.OperatorStrokeElement]
903
925
  | None = None,
904
- mode: typing.Literal["NORMAL", "INVERT", "SMOOTH", "ERASE"] | None = "NORMAL",
926
+ mode: typing.Literal["NORMAL", "INVERT", "SMOOTH", "ERASE", "MASK"]
927
+ | None = "NORMAL",
905
928
  pen_flip: bool | None = False,
906
929
  override_location: bool | None = False,
907
930
  ) -> None:
@@ -921,6 +944,9 @@ def weight_paint(
921
944
 
922
945
  ERASE
923
946
  Erase -- Switch brush to erase mode for duration of stroke.
947
+
948
+ MASK
949
+ Mask -- Switch brush to mask mode for duration of stroke.
924
950
  :param pen_flip: Pen Flip, Whether a tablets eraser mode is being used
925
951
  :param override_location: Override Location, Override the given "location" array by recalculating object space positions from the provided "mouse_event" positions
926
952
  """
@@ -220,6 +220,13 @@ def autoexec_path_remove(
220
220
  :param index: Index
221
221
  """
222
222
 
223
+ def clear_filter(
224
+ execution_context: int | str | None = None,
225
+ undo: bool | None = None,
226
+ /,
227
+ ) -> None:
228
+ """Clear the search filter"""
229
+
223
230
  def copy_prev(
224
231
  execution_context: int | str | None = None,
225
232
  undo: bool | None = None,
@@ -427,6 +434,13 @@ def script_directory_remove(
427
434
  :param index: Index, Index of the script directory to remove
428
435
  """
429
436
 
437
+ def start_filter(
438
+ execution_context: int | str | None = None,
439
+ undo: bool | None = None,
440
+ /,
441
+ ) -> None:
442
+ """Start entering filter text"""
443
+
430
444
  def studiolight_copy_settings(
431
445
  execution_context: int | str | None = None,
432
446
  undo: bool | None = None,
@@ -12,7 +12,8 @@ def brush_stroke(
12
12
  *,
13
13
  stroke: bpy.types.bpy_prop_collection[bpy.types.OperatorStrokeElement]
14
14
  | None = None,
15
- mode: typing.Literal["NORMAL", "INVERT", "SMOOTH", "ERASE"] | None = "NORMAL",
15
+ mode: typing.Literal["NORMAL", "INVERT", "SMOOTH", "ERASE", "MASK"]
16
+ | None = "NORMAL",
16
17
  pen_flip: bool | None = False,
17
18
  override_location: bool | None = False,
18
19
  ignore_background_click: bool | None = False,
@@ -33,6 +34,9 @@ def brush_stroke(
33
34
 
34
35
  ERASE
35
36
  Erase -- Switch brush to erase mode for duration of stroke.
37
+
38
+ MASK
39
+ Mask -- Switch brush to mask mode for duration of stroke.
36
40
  :param pen_flip: Pen Flip, Whether a tablets eraser mode is being used
37
41
  :param override_location: Override Location, Override the given "location" array by recalculating object space positions from the provided "mouse_event" positions
38
42
  :param ignore_background_click: Ignore Background Click, Clicks on the background do not start the stroke
@@ -11,7 +11,8 @@ def brush_stroke(
11
11
  *,
12
12
  stroke: bpy.types.bpy_prop_collection[bpy.types.OperatorStrokeElement]
13
13
  | None = None,
14
- mode: typing.Literal["NORMAL", "INVERT", "SMOOTH", "ERASE"] | None = "NORMAL",
14
+ mode: typing.Literal["NORMAL", "INVERT", "SMOOTH", "ERASE", "MASK"]
15
+ | None = "NORMAL",
15
16
  pen_flip: bool | None = False,
16
17
  ) -> None:
17
18
  """Sculpt curves using a brush
@@ -30,6 +31,9 @@ def brush_stroke(
30
31
 
31
32
  ERASE
32
33
  Erase -- Switch brush to erase mode for duration of stroke.
34
+
35
+ MASK
36
+ Mask -- Switch brush to mask mode for duration of stroke.
33
37
  :param pen_flip: Pen Flip, Whether a tablets eraser mode is being used
34
38
  """
35
39
 
@@ -2606,6 +2606,7 @@ type PropertySubtypeItems = typing.Literal[
2606
2606
  "UNSIGNED", # Unsigned.
2607
2607
  "PERCENTAGE", # Percentage.A percentage between 0 and 100.
2608
2608
  "FACTOR", # Factor.A factor between 0.0 and 1.0.
2609
+ "MASS", # Mass.A mass, based on scene unit settings.
2609
2610
  "ANGLE", # Angle.A rotational value specified in radians.
2610
2611
  "TIME", # Time (Scene Relative).Time specified in frames, converted to seconds based on scene frame rate.
2611
2612
  "TIME_ABSOLUTE", # Time (Absolute).Time specified in seconds, independent of the scene.
@@ -2657,6 +2658,7 @@ type PropertySubtypeNumberItems = typing.Literal[
2657
2658
  "UNSIGNED", # Unsigned.
2658
2659
  "PERCENTAGE", # Percentage.A percentage between 0 and 100.
2659
2660
  "FACTOR", # Factor.A factor between 0.0 and 1.0.
2661
+ "MASS", # Mass.A mass, based on scene unit settings.
2660
2662
  "ANGLE", # Angle.A rotational value specified in radians.
2661
2663
  "TIME", # Time (Scene Relative).Time specified in frames, converted to seconds based on scene frame rate.
2662
2664
  "TIME_ABSOLUTE", # Time (Absolute).Time specified in seconds, independent of the scene.