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

bpy/types/__init__.pyi CHANGED
@@ -116060,11 +116060,11 @@ class AssetShelf(bpy_struct):
116060
116060
  """
116061
116061
 
116062
116062
  @classmethod
116063
- def poll(cls, context: Context | None) -> bool:
116063
+ def poll(cls, context: Context) -> bool:
116064
116064
  """If this method returns a non-null output, the asset shelf will be visible
116065
116065
 
116066
116066
  :param context:
116067
- :type context: Context | None
116067
+ :type context: Context
116068
116068
  :return:
116069
116069
  :rtype: bool
116070
116070
  """
@@ -116090,14 +116090,14 @@ class AssetShelf(bpy_struct):
116090
116090
  @classmethod
116091
116091
  def draw_context_menu(
116092
116092
  cls,
116093
- context: Context | None,
116093
+ context: Context,
116094
116094
  asset: AssetRepresentation | None,
116095
116095
  layout: UILayout | None,
116096
116096
  ):
116097
116097
  """Draw UI elements into the context menu UI layout displayed on right click
116098
116098
 
116099
116099
  :param context:
116100
- :type context: Context | None
116100
+ :type context: Context
116101
116101
  :param asset:
116102
116102
  :type asset: AssetRepresentation | None
116103
116103
  :param layout:
@@ -116995,11 +116995,12 @@ class BlendData(bpy_struct):
116995
116995
  :type: BlendDataWorlds
116996
116996
  """
116997
116997
 
116998
- def batch_remove(self, ids):
116998
+ def batch_remove(self, ids: collections.abc.Sequence[ID] | None):
116999
116999
  """Remove (delete) several IDs at once.WARNING: Considered experimental feature currently.Note that this function is quicker than individual calls to `remove()` (from `bpy.types.BlendData`
117000
117000
  ID collections), but less safe/versatile (it can break Blender, e.g. by removing all scenes...).
117001
117001
 
117002
117002
  :param ids: Sequence of IDs (types can be mixed).
117003
+ :type ids: collections.abc.Sequence[ID] | None
117003
117004
  """
117004
117005
 
117005
117006
  @classmethod
@@ -117030,19 +117031,24 @@ class BlendData(bpy_struct):
117030
117031
  :return: The number of deleted IDs.
117031
117032
  """
117032
117033
 
117033
- def temp_data(self, filepath: bytes | str | None = None) -> typing_extensions.Self:
117034
+ def temp_data(
117035
+ self, filepath: None | bytes | str | None = None
117036
+ ) -> typing_extensions.Self:
117034
117037
  """A context manager that temporarily creates blender file data.
117035
117038
 
117036
117039
  :param filepath: The file path for the newly temporary data. When None, the path of the currently open file is used.
117037
- :type filepath: bytes | str | None
117040
+ :type filepath: None | bytes | str | None
117038
117041
  :return: Blend file data which is freed once the context exists.
117039
117042
  :rtype: typing_extensions.Self
117040
117043
  """
117041
117044
 
117042
- def user_map(self, subset, key_types, value_types) -> dict[ID]:
117045
+ def user_map(
117046
+ self, subset: collections.abc.Sequence[ID] | None, key_types, value_types
117047
+ ) -> dict[ID]:
117043
117048
  """Returns a mapping of all ID data-blocks in current bpy.data to a set of all data-blocks using them.For list of valid set members for key_types & value_types, see: `bpy.types.KeyingSetPath.id_type`.
117044
117049
 
117045
117050
  :param subset: When passed, only these data-blocks and their users will be included as keys/values in the map.
117051
+ :type subset: collections.abc.Sequence[ID] | None
117046
117052
  :param key_types: Filter the keys mapped by ID types.
117047
117053
  :param value_types: Filter the values in the set by ID types.
117048
117054
  :return: dictionary that maps data-blocks ID's to their users.
@@ -139004,11 +139010,11 @@ For Example: ".blend;.ble"
139004
139010
  """
139005
139011
 
139006
139012
  @classmethod
139007
- def poll_drop(cls, context: Context | None) -> bool:
139013
+ def poll_drop(cls, context: Context) -> bool:
139008
139014
  """If this method returns True, can be used to handle the drop of a drag-and-drop action
139009
139015
 
139010
139016
  :param context:
139011
- :type context: Context | None
139017
+ :type context: Context
139012
139018
  :return:
139013
139019
  :rtype: bool
139014
139020
  """
@@ -157683,29 +157689,29 @@ class Gizmo(bpy_struct):
157683
157689
  :type: bool
157684
157690
  """
157685
157691
 
157686
- def draw(self, context: Context | None):
157692
+ def draw(self, context: Context):
157687
157693
  """
157688
157694
 
157689
157695
  :param context:
157690
- :type context: Context | None
157696
+ :type context: Context
157691
157697
  """
157692
157698
 
157693
- def draw_select(self, context: Context | None, *, select_id: int | None = 0):
157699
+ def draw_select(self, context: Context, *, select_id: int | None = 0):
157694
157700
  """
157695
157701
 
157696
157702
  :param context:
157697
- :type context: Context | None
157703
+ :type context: Context
157698
157704
  :param select_id:
157699
157705
  :type select_id: int | None
157700
157706
  """
157701
157707
 
157702
157708
  def test_select(
157703
- self, context: Context | None, location: collections.abc.Iterable[int]
157709
+ self, context: Context, location: collections.abc.Iterable[int]
157704
157710
  ) -> int:
157705
157711
  """
157706
157712
 
157707
157713
  :param context:
157708
- :type context: Context | None
157714
+ :type context: Context
157709
157715
  :param location: Location, Region coordinates
157710
157716
  :type location: collections.abc.Iterable[int]
157711
157717
  :return: Use -1 to skip this gizmo
@@ -157714,14 +157720,14 @@ class Gizmo(bpy_struct):
157714
157720
 
157715
157721
  def modal(
157716
157722
  self,
157717
- context: Context | None,
157723
+ context: Context,
157718
157724
  event: Event,
157719
157725
  tweak: set[typing.Literal["PRECISE", "SNAP"]] | None,
157720
157726
  ) -> set[bpy.typing.OperatorReturnItems]:
157721
157727
  """
157722
157728
 
157723
157729
  :param context:
157724
- :type context: Context | None
157730
+ :type context: Context
157725
157731
  :param event:
157726
157732
  :type event: Event
157727
157733
  :param tweak: Tweak
@@ -157732,23 +157738,23 @@ class Gizmo(bpy_struct):
157732
157738
 
157733
157739
  def setup(self): ...
157734
157740
  def invoke(
157735
- self, context: Context | None, event: Event
157741
+ self, context: Context, event: Event
157736
157742
  ) -> set[bpy.typing.OperatorReturnItems]:
157737
157743
  """
157738
157744
 
157739
157745
  :param context:
157740
- :type context: Context | None
157746
+ :type context: Context
157741
157747
  :param event:
157742
157748
  :type event: Event
157743
157749
  :return: result
157744
157750
  :rtype: set[bpy.typing.OperatorReturnItems]
157745
157751
  """
157746
157752
 
157747
- def exit(self, context: Context | None, cancel: bool | None):
157753
+ def exit(self, context: Context, cancel: bool | None):
157748
157754
  """
157749
157755
 
157750
157756
  :param context:
157751
- :type context: Context | None
157757
+ :type context: Context
157752
157758
  :param cancel: Cancel, otherwise confirm
157753
157759
  :type cancel: bool | None
157754
157760
  """
@@ -157866,12 +157872,16 @@ class Gizmo(bpy_struct):
157866
157872
  """
157867
157873
 
157868
157874
  @staticmethod
157869
- def new_custom_shape(type: str | None, verts) -> typing.Any:
157875
+ def new_custom_shape(
157876
+ type: str | None,
157877
+ verts: collections.abc.Sequence[collections.abc.Sequence[float]] | None,
157878
+ ) -> typing.Any:
157870
157879
  """Create a new shape that can be passed to `Gizmo.draw_custom_shape`.
157871
157880
 
157872
157881
  :param type: The type of shape to create in (POINTS, LINES, TRIS, LINE_STRIP).
157873
157882
  :type type: str | None
157874
157883
  :param verts: Sequence of 2D or 3D coordinates.
157884
+ :type verts: collections.abc.Sequence[collections.abc.Sequence[float]] | None
157875
157885
  :return: The newly created shape (the return type make change).
157876
157886
  :rtype: typing.Any
157877
157887
  """
@@ -157918,8 +157928,8 @@ class Gizmo(bpy_struct):
157918
157928
  def target_set_handler(
157919
157929
  self,
157920
157930
  target: str | None,
157921
- get: collections.abc.Callable | None,
157922
- set: collections.abc.Callable | None,
157931
+ get: collections.abc.Callable[float | collections.abc.Sequence[float]] | None,
157932
+ set: collections.abc.Callable[[tuple[float, int]], typing.Any] | None,
157923
157933
  range: collections.abc.Callable | None = None,
157924
157934
  ):
157925
157935
  """Assigns callbacks to a gizmos property.
@@ -157927,9 +157937,9 @@ class Gizmo(bpy_struct):
157927
157937
  :param target: Target property name.
157928
157938
  :type target: str | None
157929
157939
  :param get: Function that returns the value for this property (single value or sequence).
157930
- :type get: collections.abc.Callable | None
157940
+ :type get: collections.abc.Callable[float | collections.abc.Sequence[float]] | None
157931
157941
  :param set: Function that takes a single value argument and applies it.
157932
- :type set: collections.abc.Callable | None
157942
+ :type set: collections.abc.Callable[[tuple[float, int]], typing.Any] | None
157933
157943
  :param range: Function that returns a (min, max) tuple for gizmos that use a range. The returned value is not used.
157934
157944
  :type range: collections.abc.Callable | None
157935
157945
  """
@@ -158006,11 +158016,11 @@ class GizmoGroup(bpy_struct):
158006
158016
  """
158007
158017
 
158008
158018
  @classmethod
158009
- def poll(cls, context: Context | None) -> bool:
158019
+ def poll(cls, context: Context) -> bool:
158010
158020
  """Test if the gizmo group can be called or not
158011
158021
 
158012
158022
  :param context:
158013
- :type context: Context | None
158023
+ :type context: Context
158014
158024
  :return:
158015
158025
  :rtype: bool
158016
158026
  """
@@ -158025,32 +158035,32 @@ class GizmoGroup(bpy_struct):
158025
158035
  :rtype: KeyMap
158026
158036
  """
158027
158037
 
158028
- def setup(self, context: Context | None):
158038
+ def setup(self, context: Context):
158029
158039
  """Create gizmos function for the gizmo group
158030
158040
 
158031
158041
  :param context:
158032
- :type context: Context | None
158042
+ :type context: Context
158033
158043
  """
158034
158044
 
158035
- def refresh(self, context: Context | None):
158045
+ def refresh(self, context: Context):
158036
158046
  """Refresh data (called on common state changes such as selection)
158037
158047
 
158038
158048
  :param context:
158039
- :type context: Context | None
158049
+ :type context: Context
158040
158050
  """
158041
158051
 
158042
- def draw_prepare(self, context: Context | None):
158052
+ def draw_prepare(self, context: Context):
158043
158053
  """Run before each redraw
158044
158054
 
158045
158055
  :param context:
158046
- :type context: Context | None
158056
+ :type context: Context
158047
158057
  """
158048
158058
 
158049
- def invoke_prepare(self, context: Context | None, gizmo: Gizmo):
158059
+ def invoke_prepare(self, context: Context, gizmo: Gizmo):
158050
158060
  """Run before invoke
158051
158061
 
158052
158062
  :param context:
158053
- :type context: Context | None
158063
+ :type context: Context
158054
158064
  :param gizmo:
158055
158065
  :type gizmo: Gizmo
158056
158066
  """
@@ -163248,11 +163258,11 @@ class Header(bpy_struct):
163248
163258
  :type: UILayout
163249
163259
  """
163250
163260
 
163251
- def draw(self, context: Context | None):
163261
+ def draw(self, context: Context):
163252
163262
  """Draw UI elements into the header UI layout
163253
163263
 
163254
163264
  :param context:
163255
- :type context: Context | None
163265
+ :type context: Context
163256
163266
  """
163257
163267
 
163258
163268
  @classmethod
@@ -166629,29 +166639,29 @@ class KeyingSetInfo(bpy_struct):
166629
166639
  :type: set[bpy.typing.KeyingFlagItems]
166630
166640
  """
166631
166641
 
166632
- def poll(self, context: Context | None) -> bool:
166642
+ def poll(self, context: Context) -> bool:
166633
166643
  """Test if Keying Set can be used or not
166634
166644
 
166635
166645
  :param context:
166636
- :type context: Context | None
166646
+ :type context: Context
166637
166647
  :return:
166638
166648
  :rtype: bool
166639
166649
  """
166640
166650
 
166641
- def iterator(self, context: Context | None, ks: KeyingSet | None):
166651
+ def iterator(self, context: Context, ks: KeyingSet | None):
166642
166652
  """Call generate() on the structs which have properties to be keyframed
166643
166653
 
166644
166654
  :param context:
166645
- :type context: Context | None
166655
+ :type context: Context
166646
166656
  :param ks:
166647
166657
  :type ks: KeyingSet | None
166648
166658
  """
166649
166659
 
166650
- def generate(self, context: Context | None, ks: KeyingSet | None, data: typing.Any):
166660
+ def generate(self, context: Context, ks: KeyingSet | None, data: typing.Any):
166651
166661
  """Add Paths to the Keying Set to keyframe the properties of the given data
166652
166662
 
166653
166663
  :param context:
166654
- :type context: Context | None
166664
+ :type context: Context
166655
166665
  :param ks:
166656
166666
  :type ks: KeyingSet | None
166657
166667
  :param data:
@@ -172302,20 +172312,20 @@ class Macro(bpy_struct):
172302
172312
  """
172303
172313
 
172304
172314
  @classmethod
172305
- def poll(cls, context: Context | None) -> bool:
172315
+ def poll(cls, context: Context) -> bool:
172306
172316
  """Test if the operator can be called or not
172307
172317
 
172308
172318
  :param context:
172309
- :type context: Context | None
172319
+ :type context: Context
172310
172320
  :return:
172311
172321
  :rtype: bool
172312
172322
  """
172313
172323
 
172314
- def draw(self, context: Context | None):
172324
+ def draw(self, context: Context):
172315
172325
  """Draw function for the operator
172316
172326
 
172317
172327
  :param context:
172318
- :type context: Context | None
172328
+ :type context: Context
172319
172329
  """
172320
172330
 
172321
172331
  @classmethod
@@ -173726,20 +173736,20 @@ class Menu(bpy_struct):
173726
173736
  """
173727
173737
 
173728
173738
  @classmethod
173729
- def poll(cls, context: Context | None) -> bool:
173739
+ def poll(cls, context: Context) -> bool:
173730
173740
  """If this method returns a non-null output, then the menu can be drawn
173731
173741
 
173732
173742
  :param context:
173733
- :type context: Context | None
173743
+ :type context: Context
173734
173744
  :return:
173735
173745
  :rtype: bool
173736
173746
  """
173737
173747
 
173738
- def draw(self, context: Context | None):
173748
+ def draw(self, context: Context):
173739
173749
  """Draw UI elements into the menu UI layout
173740
173750
 
173741
173751
  :param context:
173742
- :type context: Context | None
173752
+ :type context: Context
173743
173753
  """
173744
173754
 
173745
173755
  @classmethod
@@ -173773,20 +173783,21 @@ class Menu(bpy_struct):
173773
173783
  def is_extended(cls): ...
173774
173784
  def path_menu(
173775
173785
  self,
173776
- searchpaths,
173786
+ searchpaths: collections.abc.Sequence[str] | None,
173777
173787
  operator: str | None,
173778
173788
  *,
173779
173789
  props_default: dict[str, typing.Any] | None = None,
173780
173790
  prop_filepath: str | None = "filepath",
173781
- filter_ext: collections.abc.Callable | None = None,
173791
+ filter_ext: None | collections.abc.Callable[str, bool] | None = None,
173782
173792
  filter_path=None,
173783
- display_name: collections.abc.Callable | None = None,
173793
+ display_name: collections.abc.Callable[str, str] | None = None,
173784
173794
  add_operator=None,
173785
173795
  add_operator_props=None,
173786
173796
  ):
173787
173797
  """Populate a menu from a list of paths.
173788
173798
 
173789
173799
  :param searchpaths: Paths to scan.
173800
+ :type searchpaths: collections.abc.Sequence[str] | None
173790
173801
  :param operator: The operator id to use with each file.
173791
173802
  :type operator: str | None
173792
173803
  :param props_default: Properties to assign to each operator.
@@ -173796,10 +173807,10 @@ class Menu(bpy_struct):
173796
173807
  :param filter_ext: Optional callback that takes the file extensions.
173797
173808
 
173798
173809
  Returning false excludes the file from the list.
173799
- :type filter_ext: collections.abc.Callable | None
173810
+ :type filter_ext: None | collections.abc.Callable[str, bool] | None
173800
173811
  :param filter_path:
173801
173812
  :param display_name: Optional callback that takes the full path, returns the name to display.
173802
- :type display_name: collections.abc.Callable | None
173813
+ :type display_name: collections.abc.Callable[str, str] | None
173803
173814
  :param add_operator:
173804
173815
  :param add_operator_props:
173805
173816
  """
@@ -178784,11 +178795,11 @@ class Node(bpy_struct):
178784
178795
  :type: float
178785
178796
  """
178786
178797
 
178787
- def socket_value_update(self, context: Context | None):
178798
+ def socket_value_update(self, context: Context):
178788
178799
  """Update after property changes
178789
178800
 
178790
178801
  :param context:
178791
- :type context: Context | None
178802
+ :type context: Context
178792
178803
  """
178793
178804
 
178794
178805
  @classmethod
@@ -178828,11 +178839,11 @@ class Node(bpy_struct):
178828
178839
  :type link: NodeLink
178829
178840
  """
178830
178841
 
178831
- def init(self, context: Context | None):
178842
+ def init(self, context: Context):
178832
178843
  """Initialize a new instance of this node
178833
178844
 
178834
178845
  :param context:
178835
- :type context: Context | None
178846
+ :type context: Context
178836
178847
  """
178837
178848
 
178838
178849
  def copy(self, node: typing_extensions.Self):
@@ -178845,20 +178856,20 @@ class Node(bpy_struct):
178845
178856
  def free(self):
178846
178857
  """Clean up node on removal"""
178847
178858
 
178848
- def draw_buttons(self, context: Context | None, layout: UILayout):
178859
+ def draw_buttons(self, context: Context, layout: UILayout):
178849
178860
  """Draw node buttons
178850
178861
 
178851
178862
  :param context:
178852
- :type context: Context | None
178863
+ :type context: Context
178853
178864
  :param layout: Layout, Layout in the UI
178854
178865
  :type layout: UILayout
178855
178866
  """
178856
178867
 
178857
- def draw_buttons_ext(self, context: Context | None, layout: UILayout):
178868
+ def draw_buttons_ext(self, context: Context, layout: UILayout):
178858
178869
  """Draw node buttons in the sidebar
178859
178870
 
178860
178871
  :param context:
178861
- :type context: Context | None
178872
+ :type context: Context
178862
178873
  :param layout: Layout, Layout in the UI
178863
178874
  :type layout: UILayout
178864
178875
  """
@@ -179354,20 +179365,20 @@ class NodeInternal(Node, bpy_struct):
179354
179365
  def update(self):
179355
179366
  """Update on node graph topology changes (adding or removing nodes and links)"""
179356
179367
 
179357
- def draw_buttons(self, context: Context | None, layout: UILayout):
179368
+ def draw_buttons(self, context: Context, layout: UILayout):
179358
179369
  """Draw node buttons
179359
179370
 
179360
179371
  :param context:
179361
- :type context: Context | None
179372
+ :type context: Context
179362
179373
  :param layout: Layout, Layout in the UI
179363
179374
  :type layout: UILayout
179364
179375
  """
179365
179376
 
179366
- def draw_buttons_ext(self, context: Context | None, layout: UILayout):
179377
+ def draw_buttons_ext(self, context: Context, layout: UILayout):
179367
179378
  """Draw node buttons in the sidebar
179368
179379
 
179369
179380
  :param context:
179370
- :type context: Context | None
179381
+ :type context: Context
179371
179382
  :param layout: Layout, Layout in the UI
179372
179383
  :type layout: UILayout
179373
179384
  """
@@ -179787,11 +179798,11 @@ class NodeSocket(bpy_struct):
179787
179798
  :type: NodeLinks | None
179788
179799
  """
179789
179800
 
179790
- def draw(self, context: Context | None, layout: UILayout, node: Node, text: str):
179801
+ def draw(self, context: Context, layout: UILayout, node: Node, text: str):
179791
179802
  """Draw socket
179792
179803
 
179793
179804
  :param context:
179794
- :type context: Context | None
179805
+ :type context: Context
179795
179806
  :param layout: Layout, Layout in the UI
179796
179807
  :type layout: UILayout
179797
179808
  :param node: Node, Node the socket belongs to
@@ -179800,11 +179811,11 @@ class NodeSocket(bpy_struct):
179800
179811
  :type text: str
179801
179812
  """
179802
179813
 
179803
- def draw_color(self, context: Context | None, node: Node) -> bpy_prop_array[float]:
179814
+ def draw_color(self, context: Context, node: Node) -> bpy_prop_array[float]:
179804
179815
  """Color of the socket icon
179805
179816
 
179806
179817
  :param context:
179807
- :type context: Context | None
179818
+ :type context: Context
179808
179819
  :param node: Node, Node the socket belongs to
179809
179820
  :type node: Node
179810
179821
  :return: Color
@@ -180792,11 +180803,11 @@ class NodeSocketStandard(NodeSocket, bpy_struct):
180792
180803
  :type: NodeLinks | None
180793
180804
  """
180794
180805
 
180795
- def draw(self, context: Context | None, layout: UILayout, node: Node, text: str):
180806
+ def draw(self, context: Context, layout: UILayout, node: Node, text: str):
180796
180807
  """Draw socket
180797
180808
 
180798
180809
  :param context:
180799
- :type context: Context | None
180810
+ :type context: Context
180800
180811
  :param layout: Layout, Layout in the UI
180801
180812
  :type layout: UILayout
180802
180813
  :param node: Node, Node the socket belongs to
@@ -180805,11 +180816,11 @@ class NodeSocketStandard(NodeSocket, bpy_struct):
180805
180816
  :type text: str
180806
180817
  """
180807
180818
 
180808
- def draw_color(self, context: Context | None, node: Node) -> bpy_prop_array[float]:
180819
+ def draw_color(self, context: Context, node: Node) -> bpy_prop_array[float]:
180809
180820
  """Color of the socket icon
180810
180821
 
180811
180822
  :param context:
180812
- :type context: Context | None
180823
+ :type context: Context
180813
180824
  :param node: Node, Node the socket belongs to
180814
180825
  :type node: Node
180815
180826
  :return: Color
@@ -181360,11 +181371,11 @@ class NodeTree(ID, bpy_struct):
181360
181371
  :type: mathutils.Vector
181361
181372
  """
181362
181373
 
181363
- def interface_update(self, context: Context | None):
181374
+ def interface_update(self, context: Context):
181364
181375
  """Updated node group interface
181365
181376
 
181366
181377
  :param context:
181367
- :type context: Context | None
181378
+ :type context: Context
181368
181379
  """
181369
181380
 
181370
181381
  def contains_tree(self, sub_tree: typing_extensions.Self) -> bool:
@@ -181377,11 +181388,11 @@ class NodeTree(ID, bpy_struct):
181377
181388
  """
181378
181389
 
181379
181390
  @classmethod
181380
- def poll(cls, context: Context | None) -> bool:
181391
+ def poll(cls, context: Context) -> bool:
181381
181392
  """Check visibility in the editor
181382
181393
 
181383
181394
  :param context:
181384
- :type context: Context | None
181395
+ :type context: Context
181385
181396
  :return:
181386
181397
  :rtype: bool
181387
181398
  """
@@ -181390,11 +181401,11 @@ class NodeTree(ID, bpy_struct):
181390
181401
  """Update on editor changes"""
181391
181402
 
181392
181403
  @classmethod
181393
- def get_from_context(cls, context: Context | None):
181404
+ def get_from_context(cls, context: Context):
181394
181405
  """Get a node tree from the context
181395
181406
 
181396
181407
  :param context:
181397
- :type context: Context | None
181408
+ :type context: Context
181398
181409
  :return: result_1, Active node tree from context, `NodeTree`
181399
181410
 
181400
181411
  result_2, ID data-block that owns the node tree, `ID`
@@ -181769,11 +181780,11 @@ class NodeTreeInterfaceSocket(NodeTreeInterfaceItem, bpy_struct):
181769
181780
  :type: str
181770
181781
  """
181771
181782
 
181772
- def draw(self, context: Context | None, layout: UILayout):
181783
+ def draw(self, context: Context, layout: UILayout):
181773
181784
  """Draw properties of the socket interface
181774
181785
 
181775
181786
  :param context:
181776
- :type context: Context | None
181787
+ :type context: Context
181777
181788
  :param layout: Layout, Layout in the UI
181778
181789
  :type layout: UILayout
181779
181790
  """
@@ -181831,11 +181842,11 @@ class NodeTreeInterfaceSocketBool(
181831
181842
  :type: bool
181832
181843
  """
181833
181844
 
181834
- def draw(self, context: Context | None, layout: UILayout):
181845
+ def draw(self, context: Context, layout: UILayout):
181835
181846
  """Draw interface socket settings
181836
181847
 
181837
181848
  :param context:
181838
- :type context: Context | None
181849
+ :type context: Context
181839
181850
  :param layout: Layout, Layout in the UI
181840
181851
  :type layout: UILayout
181841
181852
  """
@@ -181893,11 +181904,11 @@ class NodeTreeInterfaceSocketCollection(
181893
181904
  :type: Collection | None
181894
181905
  """
181895
181906
 
181896
- def draw(self, context: Context | None, layout: UILayout):
181907
+ def draw(self, context: Context, layout: UILayout):
181897
181908
  """Draw interface socket settings
181898
181909
 
181899
181910
  :param context:
181900
- :type context: Context | None
181911
+ :type context: Context
181901
181912
  :param layout: Layout, Layout in the UI
181902
181913
  :type layout: UILayout
181903
181914
  """
@@ -181955,11 +181966,11 @@ class NodeTreeInterfaceSocketColor(
181955
181966
  :type: bpy_prop_array[float]
181956
181967
  """
181957
181968
 
181958
- def draw(self, context: Context | None, layout: UILayout):
181969
+ def draw(self, context: Context, layout: UILayout):
181959
181970
  """Draw interface socket settings
181960
181971
 
181961
181972
  :param context:
181962
- :type context: Context | None
181973
+ :type context: Context
181963
181974
  :param layout: Layout, Layout in the UI
181964
181975
  :type layout: UILayout
181965
181976
  """
@@ -182035,11 +182046,11 @@ class NodeTreeInterfaceSocketFloat(
182035
182046
  :type: str
182036
182047
  """
182037
182048
 
182038
- def draw(self, context: Context | None, layout: UILayout):
182049
+ def draw(self, context: Context, layout: UILayout):
182039
182050
  """Draw interface socket settings
182040
182051
 
182041
182052
  :param context:
182042
- :type context: Context | None
182053
+ :type context: Context
182043
182054
  :param layout: Layout, Layout in the UI
182044
182055
  :type layout: UILayout
182045
182056
  """
@@ -182115,11 +182126,11 @@ class NodeTreeInterfaceSocketFloatAngle(
182115
182126
  :type: str
182116
182127
  """
182117
182128
 
182118
- def draw(self, context: Context | None, layout: UILayout):
182129
+ def draw(self, context: Context, layout: UILayout):
182119
182130
  """Draw interface socket settings
182120
182131
 
182121
182132
  :param context:
182122
- :type context: Context | None
182133
+ :type context: Context
182123
182134
  :param layout: Layout, Layout in the UI
182124
182135
  :type layout: UILayout
182125
182136
  """
@@ -182195,11 +182206,11 @@ class NodeTreeInterfaceSocketFloatColorTemperature(
182195
182206
  :type: str
182196
182207
  """
182197
182208
 
182198
- def draw(self, context: Context | None, layout: UILayout):
182209
+ def draw(self, context: Context, layout: UILayout):
182199
182210
  """Draw interface socket settings
182200
182211
 
182201
182212
  :param context:
182202
- :type context: Context | None
182213
+ :type context: Context
182203
182214
  :param layout: Layout, Layout in the UI
182204
182215
  :type layout: UILayout
182205
182216
  """
@@ -182275,11 +182286,11 @@ class NodeTreeInterfaceSocketFloatDistance(
182275
182286
  :type: str
182276
182287
  """
182277
182288
 
182278
- def draw(self, context: Context | None, layout: UILayout):
182289
+ def draw(self, context: Context, layout: UILayout):
182279
182290
  """Draw interface socket settings
182280
182291
 
182281
182292
  :param context:
182282
- :type context: Context | None
182293
+ :type context: Context
182283
182294
  :param layout: Layout, Layout in the UI
182284
182295
  :type layout: UILayout
182285
182296
  """
@@ -182355,11 +182366,11 @@ class NodeTreeInterfaceSocketFloatFactor(
182355
182366
  :type: str
182356
182367
  """
182357
182368
 
182358
- def draw(self, context: Context | None, layout: UILayout):
182369
+ def draw(self, context: Context, layout: UILayout):
182359
182370
  """Draw interface socket settings
182360
182371
 
182361
182372
  :param context:
182362
- :type context: Context | None
182373
+ :type context: Context
182363
182374
  :param layout: Layout, Layout in the UI
182364
182375
  :type layout: UILayout
182365
182376
  """
@@ -182435,11 +182446,11 @@ class NodeTreeInterfaceSocketFloatFrequency(
182435
182446
  :type: str
182436
182447
  """
182437
182448
 
182438
- def draw(self, context: Context | None, layout: UILayout):
182449
+ def draw(self, context: Context, layout: UILayout):
182439
182450
  """Draw interface socket settings
182440
182451
 
182441
182452
  :param context:
182442
- :type context: Context | None
182453
+ :type context: Context
182443
182454
  :param layout: Layout, Layout in the UI
182444
182455
  :type layout: UILayout
182445
182456
  """
@@ -182515,11 +182526,11 @@ class NodeTreeInterfaceSocketFloatPercentage(
182515
182526
  :type: str
182516
182527
  """
182517
182528
 
182518
- def draw(self, context: Context | None, layout: UILayout):
182529
+ def draw(self, context: Context, layout: UILayout):
182519
182530
  """Draw interface socket settings
182520
182531
 
182521
182532
  :param context:
182522
- :type context: Context | None
182533
+ :type context: Context
182523
182534
  :param layout: Layout, Layout in the UI
182524
182535
  :type layout: UILayout
182525
182536
  """
@@ -182595,11 +182606,11 @@ class NodeTreeInterfaceSocketFloatTime(
182595
182606
  :type: str
182596
182607
  """
182597
182608
 
182598
- def draw(self, context: Context | None, layout: UILayout):
182609
+ def draw(self, context: Context, layout: UILayout):
182599
182610
  """Draw interface socket settings
182600
182611
 
182601
182612
  :param context:
182602
- :type context: Context | None
182613
+ :type context: Context
182603
182614
  :param layout: Layout, Layout in the UI
182604
182615
  :type layout: UILayout
182605
182616
  """
@@ -182675,11 +182686,11 @@ class NodeTreeInterfaceSocketFloatTimeAbsolute(
182675
182686
  :type: str
182676
182687
  """
182677
182688
 
182678
- def draw(self, context: Context | None, layout: UILayout):
182689
+ def draw(self, context: Context, layout: UILayout):
182679
182690
  """Draw interface socket settings
182680
182691
 
182681
182692
  :param context:
182682
- :type context: Context | None
182693
+ :type context: Context
182683
182694
  :param layout: Layout, Layout in the UI
182684
182695
  :type layout: UILayout
182685
182696
  """
@@ -182755,11 +182766,11 @@ class NodeTreeInterfaceSocketFloatUnsigned(
182755
182766
  :type: str
182756
182767
  """
182757
182768
 
182758
- def draw(self, context: Context | None, layout: UILayout):
182769
+ def draw(self, context: Context, layout: UILayout):
182759
182770
  """Draw interface socket settings
182760
182771
 
182761
182772
  :param context:
182762
- :type context: Context | None
182773
+ :type context: Context
182763
182774
  :param layout: Layout, Layout in the UI
182764
182775
  :type layout: UILayout
182765
182776
  """
@@ -182835,11 +182846,11 @@ class NodeTreeInterfaceSocketFloatWavelength(
182835
182846
  :type: str
182836
182847
  """
182837
182848
 
182838
- def draw(self, context: Context | None, layout: UILayout):
182849
+ def draw(self, context: Context, layout: UILayout):
182839
182850
  """Draw interface socket settings
182840
182851
 
182841
182852
  :param context:
182842
- :type context: Context | None
182853
+ :type context: Context
182843
182854
  :param layout: Layout, Layout in the UI
182844
182855
  :type layout: UILayout
182845
182856
  """
@@ -182891,11 +182902,11 @@ class NodeTreeInterfaceSocketGeometry(
182891
182902
  ):
182892
182903
  """Geometry socket of a node"""
182893
182904
 
182894
- def draw(self, context: Context | None, layout: UILayout):
182905
+ def draw(self, context: Context, layout: UILayout):
182895
182906
  """Draw interface socket settings
182896
182907
 
182897
182908
  :param context:
182898
- :type context: Context | None
182909
+ :type context: Context
182899
182910
  :param layout: Layout, Layout in the UI
182900
182911
  :type layout: UILayout
182901
182912
  """
@@ -182953,11 +182964,11 @@ class NodeTreeInterfaceSocketImage(
182953
182964
  :type: Image | None
182954
182965
  """
182955
182966
 
182956
- def draw(self, context: Context | None, layout: UILayout):
182967
+ def draw(self, context: Context, layout: UILayout):
182957
182968
  """Draw interface socket settings
182958
182969
 
182959
182970
  :param context:
182960
- :type context: Context | None
182971
+ :type context: Context
182961
182972
  :param layout: Layout, Layout in the UI
182962
182973
  :type layout: UILayout
182963
182974
  """
@@ -183033,11 +183044,11 @@ class NodeTreeInterfaceSocketInt(
183033
183044
  :type: str
183034
183045
  """
183035
183046
 
183036
- def draw(self, context: Context | None, layout: UILayout):
183047
+ def draw(self, context: Context, layout: UILayout):
183037
183048
  """Draw interface socket settings
183038
183049
 
183039
183050
  :param context:
183040
- :type context: Context | None
183051
+ :type context: Context
183041
183052
  :param layout: Layout, Layout in the UI
183042
183053
  :type layout: UILayout
183043
183054
  """
@@ -183113,11 +183124,11 @@ class NodeTreeInterfaceSocketIntFactor(
183113
183124
  :type: str
183114
183125
  """
183115
183126
 
183116
- def draw(self, context: Context | None, layout: UILayout):
183127
+ def draw(self, context: Context, layout: UILayout):
183117
183128
  """Draw interface socket settings
183118
183129
 
183119
183130
  :param context:
183120
- :type context: Context | None
183131
+ :type context: Context
183121
183132
  :param layout: Layout, Layout in the UI
183122
183133
  :type layout: UILayout
183123
183134
  """
@@ -183193,11 +183204,11 @@ class NodeTreeInterfaceSocketIntPercentage(
183193
183204
  :type: str
183194
183205
  """
183195
183206
 
183196
- def draw(self, context: Context | None, layout: UILayout):
183207
+ def draw(self, context: Context, layout: UILayout):
183197
183208
  """Draw interface socket settings
183198
183209
 
183199
183210
  :param context:
183200
- :type context: Context | None
183211
+ :type context: Context
183201
183212
  :param layout: Layout, Layout in the UI
183202
183213
  :type layout: UILayout
183203
183214
  """
@@ -183273,11 +183284,11 @@ class NodeTreeInterfaceSocketIntUnsigned(
183273
183284
  :type: str
183274
183285
  """
183275
183286
 
183276
- def draw(self, context: Context | None, layout: UILayout):
183287
+ def draw(self, context: Context, layout: UILayout):
183277
183288
  """Draw interface socket settings
183278
183289
 
183279
183290
  :param context:
183280
- :type context: Context | None
183291
+ :type context: Context
183281
183292
  :param layout: Layout, Layout in the UI
183282
183293
  :type layout: UILayout
183283
183294
  """
@@ -183335,11 +183346,11 @@ class NodeTreeInterfaceSocketMaterial(
183335
183346
  :type: Material | None
183336
183347
  """
183337
183348
 
183338
- def draw(self, context: Context | None, layout: UILayout):
183349
+ def draw(self, context: Context, layout: UILayout):
183339
183350
  """Draw interface socket settings
183340
183351
 
183341
183352
  :param context:
183342
- :type context: Context | None
183353
+ :type context: Context
183343
183354
  :param layout: Layout, Layout in the UI
183344
183355
  :type layout: UILayout
183345
183356
  """
@@ -183391,11 +183402,11 @@ class NodeTreeInterfaceSocketMatrix(
183391
183402
  ):
183392
183403
  """Matrix value socket of a node"""
183393
183404
 
183394
- def draw(self, context: Context | None, layout: UILayout):
183405
+ def draw(self, context: Context, layout: UILayout):
183395
183406
  """Draw interface socket settings
183396
183407
 
183397
183408
  :param context:
183398
- :type context: Context | None
183409
+ :type context: Context
183399
183410
  :param layout: Layout, Layout in the UI
183400
183411
  :type layout: UILayout
183401
183412
  """
@@ -183453,11 +183464,11 @@ class NodeTreeInterfaceSocketMenu(
183453
183464
  :type: str
183454
183465
  """
183455
183466
 
183456
- def draw(self, context: Context | None, layout: UILayout):
183467
+ def draw(self, context: Context, layout: UILayout):
183457
183468
  """Draw interface socket settings
183458
183469
 
183459
183470
  :param context:
183460
- :type context: Context | None
183471
+ :type context: Context
183461
183472
  :param layout: Layout, Layout in the UI
183462
183473
  :type layout: UILayout
183463
183474
  """
@@ -183515,11 +183526,11 @@ class NodeTreeInterfaceSocketObject(
183515
183526
  :type: Object | None
183516
183527
  """
183517
183528
 
183518
- def draw(self, context: Context | None, layout: UILayout):
183529
+ def draw(self, context: Context, layout: UILayout):
183519
183530
  """Draw interface socket settings
183520
183531
 
183521
183532
  :param context:
183522
- :type context: Context | None
183533
+ :type context: Context
183523
183534
  :param layout: Layout, Layout in the UI
183524
183535
  :type layout: UILayout
183525
183536
  """
@@ -183577,11 +183588,11 @@ class NodeTreeInterfaceSocketRotation(
183577
183588
  :type: mathutils.Euler
183578
183589
  """
183579
183590
 
183580
- def draw(self, context: Context | None, layout: UILayout):
183591
+ def draw(self, context: Context, layout: UILayout):
183581
183592
  """Draw interface socket settings
183582
183593
 
183583
183594
  :param context:
183584
- :type context: Context | None
183595
+ :type context: Context
183585
183596
  :param layout: Layout, Layout in the UI
183586
183597
  :type layout: UILayout
183587
183598
  """
@@ -183633,11 +183644,11 @@ class NodeTreeInterfaceSocketShader(
183633
183644
  ):
183634
183645
  """Shader socket of a node"""
183635
183646
 
183636
- def draw(self, context: Context | None, layout: UILayout):
183647
+ def draw(self, context: Context, layout: UILayout):
183637
183648
  """Draw interface socket settings
183638
183649
 
183639
183650
  :param context:
183640
- :type context: Context | None
183651
+ :type context: Context
183641
183652
  :param layout: Layout, Layout in the UI
183642
183653
  :type layout: UILayout
183643
183654
  """
@@ -183701,11 +183712,11 @@ class NodeTreeInterfaceSocketString(
183701
183712
  :type: str
183702
183713
  """
183703
183714
 
183704
- def draw(self, context: Context | None, layout: UILayout):
183715
+ def draw(self, context: Context, layout: UILayout):
183705
183716
  """Draw interface socket settings
183706
183717
 
183707
183718
  :param context:
183708
- :type context: Context | None
183719
+ :type context: Context
183709
183720
  :param layout: Layout, Layout in the UI
183710
183721
  :type layout: UILayout
183711
183722
  """
@@ -183769,11 +183780,11 @@ class NodeTreeInterfaceSocketStringFilePath(
183769
183780
  :type: str
183770
183781
  """
183771
183782
 
183772
- def draw(self, context: Context | None, layout: UILayout):
183783
+ def draw(self, context: Context, layout: UILayout):
183773
183784
  """Draw interface socket settings
183774
183785
 
183775
183786
  :param context:
183776
- :type context: Context | None
183787
+ :type context: Context
183777
183788
  :param layout: Layout, Layout in the UI
183778
183789
  :type layout: UILayout
183779
183790
  """
@@ -183831,11 +183842,11 @@ class NodeTreeInterfaceSocketTexture(
183831
183842
  :type: Texture | None
183832
183843
  """
183833
183844
 
183834
- def draw(self, context: Context | None, layout: UILayout):
183845
+ def draw(self, context: Context, layout: UILayout):
183835
183846
  """Draw interface socket settings
183836
183847
 
183837
183848
  :param context:
183838
- :type context: Context | None
183849
+ :type context: Context
183839
183850
  :param layout: Layout, Layout in the UI
183840
183851
  :type layout: UILayout
183841
183852
  """
@@ -183911,11 +183922,11 @@ class NodeTreeInterfaceSocketVector(
183911
183922
  :type: str
183912
183923
  """
183913
183924
 
183914
- def draw(self, context: Context | None, layout: UILayout):
183925
+ def draw(self, context: Context, layout: UILayout):
183915
183926
  """Draw interface socket settings
183916
183927
 
183917
183928
  :param context:
183918
- :type context: Context | None
183929
+ :type context: Context
183919
183930
  :param layout: Layout, Layout in the UI
183920
183931
  :type layout: UILayout
183921
183932
  """
@@ -183991,11 +184002,11 @@ class NodeTreeInterfaceSocketVectorAcceleration(
183991
184002
  :type: str
183992
184003
  """
183993
184004
 
183994
- def draw(self, context: Context | None, layout: UILayout):
184005
+ def draw(self, context: Context, layout: UILayout):
183995
184006
  """Draw interface socket settings
183996
184007
 
183997
184008
  :param context:
183998
- :type context: Context | None
184009
+ :type context: Context
183999
184010
  :param layout: Layout, Layout in the UI
184000
184011
  :type layout: UILayout
184001
184012
  """
@@ -184071,11 +184082,11 @@ class NodeTreeInterfaceSocketVectorDirection(
184071
184082
  :type: str
184072
184083
  """
184073
184084
 
184074
- def draw(self, context: Context | None, layout: UILayout):
184085
+ def draw(self, context: Context, layout: UILayout):
184075
184086
  """Draw interface socket settings
184076
184087
 
184077
184088
  :param context:
184078
- :type context: Context | None
184089
+ :type context: Context
184079
184090
  :param layout: Layout, Layout in the UI
184080
184091
  :type layout: UILayout
184081
184092
  """
@@ -184151,11 +184162,11 @@ class NodeTreeInterfaceSocketVectorEuler(
184151
184162
  :type: str
184152
184163
  """
184153
184164
 
184154
- def draw(self, context: Context | None, layout: UILayout):
184165
+ def draw(self, context: Context, layout: UILayout):
184155
184166
  """Draw interface socket settings
184156
184167
 
184157
184168
  :param context:
184158
- :type context: Context | None
184169
+ :type context: Context
184159
184170
  :param layout: Layout, Layout in the UI
184160
184171
  :type layout: UILayout
184161
184172
  """
@@ -184231,11 +184242,11 @@ class NodeTreeInterfaceSocketVectorTranslation(
184231
184242
  :type: str
184232
184243
  """
184233
184244
 
184234
- def draw(self, context: Context | None, layout: UILayout):
184245
+ def draw(self, context: Context, layout: UILayout):
184235
184246
  """Draw interface socket settings
184236
184247
 
184237
184248
  :param context:
184238
- :type context: Context | None
184249
+ :type context: Context
184239
184250
  :param layout: Layout, Layout in the UI
184240
184251
  :type layout: UILayout
184241
184252
  """
@@ -184311,11 +184322,11 @@ class NodeTreeInterfaceSocketVectorVelocity(
184311
184322
  :type: str
184312
184323
  """
184313
184324
 
184314
- def draw(self, context: Context | None, layout: UILayout):
184325
+ def draw(self, context: Context, layout: UILayout):
184315
184326
  """Draw interface socket settings
184316
184327
 
184317
184328
  :param context:
184318
- :type context: Context | None
184329
+ :type context: Context
184319
184330
  :param layout: Layout, Layout in the UI
184320
184331
  :type layout: UILayout
184321
184332
  """
@@ -184391,11 +184402,11 @@ class NodeTreeInterfaceSocketVectorXYZ(
184391
184402
  :type: str
184392
184403
  """
184393
184404
 
184394
- def draw(self, context: Context | None, layout: UILayout):
184405
+ def draw(self, context: Context, layout: UILayout):
184395
184406
  """Draw interface socket settings
184396
184407
 
184397
184408
  :param context:
184398
- :type context: Context | None
184409
+ :type context: Context
184399
184410
  :param layout: Layout, Layout in the UI
184400
184411
  :type layout: UILayout
184401
184412
  """
@@ -186583,40 +186594,40 @@ expanding an operator into a menu.
186583
186594
  """
186584
186595
 
186585
186596
  @classmethod
186586
- def poll(cls, context: Context | None) -> bool:
186597
+ def poll(cls, context: Context) -> bool:
186587
186598
  """Test if the operator can be called or not
186588
186599
 
186589
186600
  :param context:
186590
- :type context: Context | None
186601
+ :type context: Context
186591
186602
  :return:
186592
186603
  :rtype: bool
186593
186604
  """
186594
186605
 
186595
- def execute(self, context: Context | None) -> set[bpy.typing.OperatorReturnItems]:
186606
+ def execute(self, context: Context) -> set[bpy.typing.OperatorReturnItems]:
186596
186607
  """Execute the operator
186597
186608
 
186598
186609
  :param context:
186599
- :type context: Context | None
186610
+ :type context: Context
186600
186611
  :return: result
186601
186612
  :rtype: set[bpy.typing.OperatorReturnItems]
186602
186613
  """
186603
186614
 
186604
- def check(self, context: Context | None) -> bool:
186615
+ def check(self, context: Context) -> bool:
186605
186616
  """Check the operator settings, return True to signal a change to redraw
186606
186617
 
186607
186618
  :param context:
186608
- :type context: Context | None
186619
+ :type context: Context
186609
186620
  :return: result
186610
186621
  :rtype: bool
186611
186622
  """
186612
186623
 
186613
186624
  def invoke(
186614
- self, context: Context | None, event: Event
186625
+ self, context: Context, event: Event
186615
186626
  ) -> set[bpy.typing.OperatorReturnItems]:
186616
186627
  """Invoke the operator
186617
186628
 
186618
186629
  :param context:
186619
- :type context: Context | None
186630
+ :type context: Context
186620
186631
  :param event:
186621
186632
  :type event: Event
186622
186633
  :return: result
@@ -186624,40 +186635,38 @@ expanding an operator into a menu.
186624
186635
  """
186625
186636
 
186626
186637
  def modal(
186627
- self, context: Context | None, event: Event
186638
+ self, context: Context, event: Event
186628
186639
  ) -> set[bpy.typing.OperatorReturnItems]:
186629
186640
  """Modal operator function
186630
186641
 
186631
186642
  :param context:
186632
- :type context: Context | None
186643
+ :type context: Context
186633
186644
  :param event:
186634
186645
  :type event: Event
186635
186646
  :return: result
186636
186647
  :rtype: set[bpy.typing.OperatorReturnItems]
186637
186648
  """
186638
186649
 
186639
- def draw(self, context: Context | None):
186650
+ def draw(self, context: Context):
186640
186651
  """Draw function for the operator
186641
186652
 
186642
186653
  :param context:
186643
- :type context: Context | None
186654
+ :type context: Context
186644
186655
  """
186645
186656
 
186646
- def cancel(self, context: Context | None):
186657
+ def cancel(self, context: Context):
186647
186658
  """Called when the operator is canceled
186648
186659
 
186649
186660
  :param context:
186650
- :type context: Context | None
186661
+ :type context: Context
186651
186662
  """
186652
186663
 
186653
186664
  @classmethod
186654
- def description(
186655
- cls, context: Context | None, properties: OperatorProperties
186656
- ) -> str:
186665
+ def description(cls, context: Context, properties: OperatorProperties) -> str:
186657
186666
  """Compute a description string that depends on parameters
186658
186667
 
186659
186668
  :param context:
186660
- :type context: Context | None
186669
+ :type context: Context
186661
186670
  :param properties:
186662
186671
  :type properties: OperatorProperties
186663
186672
  :return: result
@@ -186693,11 +186702,15 @@ expanding an operator into a menu.
186693
186702
  """
186694
186703
 
186695
186704
  @classmethod
186696
- def poll_message_set(cls, message: collections.abc.Callable | str | None, *args):
186705
+ def poll_message_set(
186706
+ cls,
186707
+ message: collections.abc.Callable[[typing.Any, int], str | None] | str | None,
186708
+ *args,
186709
+ ):
186697
186710
  """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.
186698
186711
 
186699
186712
  :param message: The message or a function that returns the message.
186700
- :type message: collections.abc.Callable | str | None
186713
+ :type message: collections.abc.Callable[[typing.Any, int], str | None] | str | None
186701
186714
  :param args:
186702
186715
  """
186703
186716
 
@@ -187618,34 +187631,34 @@ class Panel(bpy_struct):
187618
187631
  """
187619
187632
 
187620
187633
  @classmethod
187621
- def poll(cls, context: Context | None) -> bool:
187634
+ def poll(cls, context: Context) -> bool:
187622
187635
  """If this method returns a non-null output, then the panel can be drawn
187623
187636
 
187624
187637
  :param context:
187625
- :type context: Context | None
187638
+ :type context: Context
187626
187639
  :return:
187627
187640
  :rtype: bool
187628
187641
  """
187629
187642
 
187630
- def draw(self, context: Context | None):
187643
+ def draw(self, context: Context):
187631
187644
  """Draw UI elements into the panel UI layout
187632
187645
 
187633
187646
  :param context:
187634
- :type context: Context | None
187647
+ :type context: Context
187635
187648
  """
187636
187649
 
187637
- def draw_header(self, context: Context | None):
187650
+ def draw_header(self, context: Context):
187638
187651
  """Draw UI elements into the panel's header UI layout
187639
187652
 
187640
187653
  :param context:
187641
- :type context: Context | None
187654
+ :type context: Context
187642
187655
  """
187643
187656
 
187644
- def draw_header_preset(self, context: Context | None):
187657
+ def draw_header_preset(self, context: Context):
187645
187658
  """Draw UI elements for presets in the panel's header
187646
187659
 
187647
187660
  :param context:
187648
- :type context: Context | None
187661
+ :type context: Context
187649
187662
  """
187650
187663
 
187651
187664
  @classmethod
@@ -194442,11 +194455,11 @@ class RenderEngine(bpy_struct):
194442
194455
  def render_frame_finish(self):
194443
194456
  """Perform finishing operations after all view layers in a frame were rendered"""
194444
194457
 
194445
- def draw(self, context: Context | None, depsgraph: Depsgraph | None):
194458
+ def draw(self, context: Context, depsgraph: Depsgraph | None):
194446
194459
  """Draw render image
194447
194460
 
194448
194461
  :param context:
194449
- :type context: Context | None
194462
+ :type context: Context
194450
194463
  :param depsgraph:
194451
194464
  :type depsgraph: Depsgraph | None
194452
194465
  """
@@ -194476,20 +194489,20 @@ class RenderEngine(bpy_struct):
194476
194489
  :type height: int | None
194477
194490
  """
194478
194491
 
194479
- def view_update(self, context: Context | None, depsgraph: Depsgraph | None):
194492
+ def view_update(self, context: Context, depsgraph: Depsgraph | None):
194480
194493
  """Update on data changes for viewport render
194481
194494
 
194482
194495
  :param context:
194483
- :type context: Context | None
194496
+ :type context: Context
194484
194497
  :param depsgraph:
194485
194498
  :type depsgraph: Depsgraph | None
194486
194499
  """
194487
194500
 
194488
- def view_draw(self, context: Context | None, depsgraph: Depsgraph | None):
194501
+ def view_draw(self, context: Context, depsgraph: Depsgraph | None):
194489
194502
  """Draw viewport render
194490
194503
 
194491
194504
  :param context:
194492
- :type context: Context | None
194505
+ :type context: Context
194493
194506
  :param depsgraph:
194494
194507
  :type depsgraph: Depsgraph | None
194495
194508
  """
@@ -208681,7 +208694,7 @@ class Space(bpy_struct):
208681
208694
  @classmethod
208682
208695
  def draw_handler_add(
208683
208696
  cls,
208684
- callback: collections.abc.Callable | None,
208697
+ callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None,
208685
208698
  args: tuple[typing.Any, int] | None,
208686
208699
  region_type: str | None,
208687
208700
  draw_type: str | None,
@@ -208692,7 +208705,7 @@ class Space(bpy_struct):
208692
208705
 
208693
208706
  :param callback: A function that will be called when the region is drawn.
208694
208707
  It gets the specified arguments as input, it's return value is ignored.
208695
- :type callback: collections.abc.Callable | None
208708
+ :type callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None
208696
208709
  :param args: Arguments that will be passed to the callback.
208697
208710
  :type args: tuple[typing.Any, int] | None
208698
208711
  :param region_type: The region type the callback draws in; usually WINDOW. (`bpy.types.Region.type`)
@@ -209025,7 +209038,7 @@ class SpaceClipEditor(Space, bpy_struct):
209025
209038
  @classmethod
209026
209039
  def draw_handler_add(
209027
209040
  cls,
209028
- callback: collections.abc.Callable | None,
209041
+ callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None,
209029
209042
  args: tuple[typing.Any, int] | None,
209030
209043
  region_type: str | None,
209031
209044
  draw_type: str | None,
@@ -209036,7 +209049,7 @@ class SpaceClipEditor(Space, bpy_struct):
209036
209049
 
209037
209050
  :param callback: A function that will be called when the region is drawn.
209038
209051
  It gets the specified arguments as input, it's return value is ignored.
209039
- :type callback: collections.abc.Callable | None
209052
+ :type callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None
209040
209053
  :param args: Arguments that will be passed to the callback.
209041
209054
  :type args: tuple[typing.Any, int] | None
209042
209055
  :param region_type: The region type the callback draws in; usually WINDOW. (`bpy.types.Region.type`)
@@ -209127,7 +209140,7 @@ class SpaceConsole(Space, bpy_struct):
209127
209140
  @classmethod
209128
209141
  def draw_handler_add(
209129
209142
  cls,
209130
- callback: collections.abc.Callable | None,
209143
+ callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None,
209131
209144
  args: tuple[typing.Any, int] | None,
209132
209145
  region_type: str | None,
209133
209146
  draw_type: str | None,
@@ -209138,7 +209151,7 @@ class SpaceConsole(Space, bpy_struct):
209138
209151
 
209139
209152
  :param callback: A function that will be called when the region is drawn.
209140
209153
  It gets the specified arguments as input, it's return value is ignored.
209141
- :type callback: collections.abc.Callable | None
209154
+ :type callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None
209142
209155
  :param args: Arguments that will be passed to the callback.
209143
209156
  :type args: tuple[typing.Any, int] | None
209144
209157
  :param region_type: The region type the callback draws in; usually WINDOW. (`bpy.types.Region.type`)
@@ -209335,7 +209348,7 @@ class SpaceDopeSheetEditor(Space, bpy_struct):
209335
209348
  @classmethod
209336
209349
  def draw_handler_add(
209337
209350
  cls,
209338
- callback: collections.abc.Callable | None,
209351
+ callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None,
209339
209352
  args: tuple[typing.Any, int] | None,
209340
209353
  region_type: str | None,
209341
209354
  draw_type: str | None,
@@ -209346,7 +209359,7 @@ class SpaceDopeSheetEditor(Space, bpy_struct):
209346
209359
 
209347
209360
  :param callback: A function that will be called when the region is drawn.
209348
209361
  It gets the specified arguments as input, it's return value is ignored.
209349
- :type callback: collections.abc.Callable | None
209362
+ :type callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None
209350
209363
  :param args: Arguments that will be passed to the callback.
209351
209364
  :type args: tuple[typing.Any, int] | None
209352
209365
  :param region_type: The region type the callback draws in; usually WINDOW. (`bpy.types.Region.type`)
@@ -209506,7 +209519,7 @@ class SpaceFileBrowser(Space, bpy_struct):
209506
209519
  @classmethod
209507
209520
  def draw_handler_add(
209508
209521
  cls,
209509
- callback: collections.abc.Callable | None,
209522
+ callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None,
209510
209523
  args: tuple[typing.Any, int] | None,
209511
209524
  region_type: str | None,
209512
209525
  draw_type: str | None,
@@ -209517,7 +209530,7 @@ class SpaceFileBrowser(Space, bpy_struct):
209517
209530
 
209518
209531
  :param callback: A function that will be called when the region is drawn.
209519
209532
  It gets the specified arguments as input, it's return value is ignored.
209520
- :type callback: collections.abc.Callable | None
209533
+ :type callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None
209521
209534
  :param args: Arguments that will be passed to the callback.
209522
209535
  :type args: tuple[typing.Any, int] | None
209523
209536
  :param region_type: The region type the callback draws in; usually WINDOW. (`bpy.types.Region.type`)
@@ -209692,7 +209705,7 @@ class SpaceGraphEditor(Space, bpy_struct):
209692
209705
  @classmethod
209693
209706
  def draw_handler_add(
209694
209707
  cls,
209695
- callback: collections.abc.Callable | None,
209708
+ callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None,
209696
209709
  args: tuple[typing.Any, int] | None,
209697
209710
  region_type: str | None,
209698
209711
  draw_type: str | None,
@@ -209703,7 +209716,7 @@ class SpaceGraphEditor(Space, bpy_struct):
209703
209716
 
209704
209717
  :param callback: A function that will be called when the region is drawn.
209705
209718
  It gets the specified arguments as input, it's return value is ignored.
209706
- :type callback: collections.abc.Callable | None
209719
+ :type callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None
209707
209720
  :param args: Arguments that will be passed to the callback.
209708
209721
  :type args: tuple[typing.Any, int] | None
209709
209722
  :param region_type: The region type the callback draws in; usually WINDOW. (`bpy.types.Region.type`)
@@ -209976,7 +209989,7 @@ class SpaceImageEditor(Space, bpy_struct):
209976
209989
  @classmethod
209977
209990
  def draw_handler_add(
209978
209991
  cls,
209979
- callback: collections.abc.Callable | None,
209992
+ callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None,
209980
209993
  args: tuple[typing.Any, int] | None,
209981
209994
  region_type: str | None,
209982
209995
  draw_type: str | None,
@@ -209987,7 +210000,7 @@ class SpaceImageEditor(Space, bpy_struct):
209987
210000
 
209988
210001
  :param callback: A function that will be called when the region is drawn.
209989
210002
  It gets the specified arguments as input, it's return value is ignored.
209990
- :type callback: collections.abc.Callable | None
210003
+ :type callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None
209991
210004
  :param args: Arguments that will be passed to the callback.
209992
210005
  :type args: tuple[typing.Any, int] | None
209993
210006
  :param region_type: The region type the callback draws in; usually WINDOW. (`bpy.types.Region.type`)
@@ -210103,7 +210116,7 @@ class SpaceInfo(Space, bpy_struct):
210103
210116
  @classmethod
210104
210117
  def draw_handler_add(
210105
210118
  cls,
210106
- callback: collections.abc.Callable | None,
210119
+ callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None,
210107
210120
  args: tuple[typing.Any, int] | None,
210108
210121
  region_type: str | None,
210109
210122
  draw_type: str | None,
@@ -210114,7 +210127,7 @@ class SpaceInfo(Space, bpy_struct):
210114
210127
 
210115
210128
  :param callback: A function that will be called when the region is drawn.
210116
210129
  It gets the specified arguments as input, it's return value is ignored.
210117
- :type callback: collections.abc.Callable | None
210130
+ :type callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None
210118
210131
  :param args: Arguments that will be passed to the callback.
210119
210132
  :type args: tuple[typing.Any, int] | None
210120
210133
  :param region_type: The region type the callback draws in; usually WINDOW. (`bpy.types.Region.type`)
@@ -210217,7 +210230,7 @@ class SpaceNLA(Space, bpy_struct):
210217
210230
  @classmethod
210218
210231
  def draw_handler_add(
210219
210232
  cls,
210220
- callback: collections.abc.Callable | None,
210233
+ callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None,
210221
210234
  args: tuple[typing.Any, int] | None,
210222
210235
  region_type: str | None,
210223
210236
  draw_type: str | None,
@@ -210228,7 +210241,7 @@ class SpaceNLA(Space, bpy_struct):
210228
210241
 
210229
210242
  :param callback: A function that will be called when the region is drawn.
210230
210243
  It gets the specified arguments as input, it's return value is ignored.
210231
- :type callback: collections.abc.Callable | None
210244
+ :type callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None
210232
210245
  :param args: Arguments that will be passed to the callback.
210233
210246
  :type args: tuple[typing.Any, int] | None
210234
210247
  :param region_type: The region type the callback draws in; usually WINDOW. (`bpy.types.Region.type`)
@@ -210420,7 +210433,7 @@ class SpaceNodeEditor(Space, bpy_struct):
210420
210433
  @classmethod
210421
210434
  def draw_handler_add(
210422
210435
  cls,
210423
- callback: collections.abc.Callable | None,
210436
+ callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None,
210424
210437
  args: tuple[typing.Any, int] | None,
210425
210438
  region_type: str | None,
210426
210439
  draw_type: str | None,
@@ -210431,7 +210444,7 @@ class SpaceNodeEditor(Space, bpy_struct):
210431
210444
 
210432
210445
  :param callback: A function that will be called when the region is drawn.
210433
210446
  It gets the specified arguments as input, it's return value is ignored.
210434
- :type callback: collections.abc.Callable | None
210447
+ :type callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None
210435
210448
  :param args: Arguments that will be passed to the callback.
210436
210449
  :type args: tuple[typing.Any, int] | None
210437
210450
  :param region_type: The region type the callback draws in; usually WINDOW. (`bpy.types.Region.type`)
@@ -210753,7 +210766,7 @@ class SpaceOutliner(Space, bpy_struct):
210753
210766
  @classmethod
210754
210767
  def draw_handler_add(
210755
210768
  cls,
210756
- callback: collections.abc.Callable | None,
210769
+ callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None,
210757
210770
  args: tuple[typing.Any, int] | None,
210758
210771
  region_type: str | None,
210759
210772
  draw_type: str | None,
@@ -210764,7 +210777,7 @@ class SpaceOutliner(Space, bpy_struct):
210764
210777
 
210765
210778
  :param callback: A function that will be called when the region is drawn.
210766
210779
  It gets the specified arguments as input, it's return value is ignored.
210767
- :type callback: collections.abc.Callable | None
210780
+ :type callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None
210768
210781
  :param args: Arguments that will be passed to the callback.
210769
210782
  :type args: tuple[typing.Any, int] | None
210770
210783
  :param region_type: The region type the callback draws in; usually WINDOW. (`bpy.types.Region.type`)
@@ -210825,7 +210838,7 @@ class SpacePreferences(Space, bpy_struct):
210825
210838
  @classmethod
210826
210839
  def draw_handler_add(
210827
210840
  cls,
210828
- callback: collections.abc.Callable | None,
210841
+ callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None,
210829
210842
  args: tuple[typing.Any, int] | None,
210830
210843
  region_type: str | None,
210831
210844
  draw_type: str | None,
@@ -210836,7 +210849,7 @@ class SpacePreferences(Space, bpy_struct):
210836
210849
 
210837
210850
  :param callback: A function that will be called when the region is drawn.
210838
210851
  It gets the specified arguments as input, it's return value is ignored.
210839
- :type callback: collections.abc.Callable | None
210852
+ :type callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None
210840
210853
  :param args: Arguments that will be passed to the callback.
210841
210854
  :type args: tuple[typing.Any, int] | None
210842
210855
  :param region_type: The region type the callback draws in; usually WINDOW. (`bpy.types.Region.type`)
@@ -210940,7 +210953,7 @@ class SpaceProperties(Space, bpy_struct):
210940
210953
  @classmethod
210941
210954
  def draw_handler_add(
210942
210955
  cls,
210943
- callback: collections.abc.Callable | None,
210956
+ callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None,
210944
210957
  args: tuple[typing.Any, int] | None,
210945
210958
  region_type: str | None,
210946
210959
  draw_type: str | None,
@@ -210951,7 +210964,7 @@ class SpaceProperties(Space, bpy_struct):
210951
210964
 
210952
210965
  :param callback: A function that will be called when the region is drawn.
210953
210966
  It gets the specified arguments as input, it's return value is ignored.
210954
- :type callback: collections.abc.Callable | None
210967
+ :type callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None
210955
210968
  :param args: Arguments that will be passed to the callback.
210956
210969
  :type args: tuple[typing.Any, int] | None
210957
210970
  :param region_type: The region type the callback draws in; usually WINDOW. (`bpy.types.Region.type`)
@@ -211196,7 +211209,7 @@ class SpaceSequenceEditor(Space, bpy_struct):
211196
211209
  @classmethod
211197
211210
  def draw_handler_add(
211198
211211
  cls,
211199
- callback: collections.abc.Callable | None,
211212
+ callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None,
211200
211213
  args: tuple[typing.Any, int] | None,
211201
211214
  region_type: str | None,
211202
211215
  draw_type: str | None,
@@ -211207,7 +211220,7 @@ class SpaceSequenceEditor(Space, bpy_struct):
211207
211220
 
211208
211221
  :param callback: A function that will be called when the region is drawn.
211209
211222
  It gets the specified arguments as input, it's return value is ignored.
211210
- :type callback: collections.abc.Callable | None
211223
+ :type callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None
211211
211224
  :param args: Arguments that will be passed to the callback.
211212
211225
  :type args: tuple[typing.Any, int] | None
211213
211226
  :param region_type: The region type the callback draws in; usually WINDOW. (`bpy.types.Region.type`)
@@ -211340,7 +211353,7 @@ class SpaceSpreadsheet(Space, bpy_struct):
211340
211353
  @classmethod
211341
211354
  def draw_handler_add(
211342
211355
  cls,
211343
- callback: collections.abc.Callable | None,
211356
+ callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None,
211344
211357
  args: tuple[typing.Any, int] | None,
211345
211358
  region_type: str | None,
211346
211359
  draw_type: str | None,
@@ -211351,7 +211364,7 @@ class SpaceSpreadsheet(Space, bpy_struct):
211351
211364
 
211352
211365
  :param callback: A function that will be called when the region is drawn.
211353
211366
  It gets the specified arguments as input, it's return value is ignored.
211354
- :type callback: collections.abc.Callable | None
211367
+ :type callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None
211355
211368
  :param args: Arguments that will be passed to the callback.
211356
211369
  :type args: tuple[typing.Any, int] | None
211357
211370
  :param region_type: The region type the callback draws in; usually WINDOW. (`bpy.types.Region.type`)
@@ -211540,7 +211553,7 @@ class SpaceTextEditor(Space, bpy_struct):
211540
211553
  @classmethod
211541
211554
  def draw_handler_add(
211542
211555
  cls,
211543
- callback: collections.abc.Callable | None,
211556
+ callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None,
211544
211557
  args: tuple[typing.Any, int] | None,
211545
211558
  region_type: str | None,
211546
211559
  draw_type: str | None,
@@ -211551,7 +211564,7 @@ class SpaceTextEditor(Space, bpy_struct):
211551
211564
 
211552
211565
  :param callback: A function that will be called when the region is drawn.
211553
211566
  It gets the specified arguments as input, it's return value is ignored.
211554
- :type callback: collections.abc.Callable | None
211567
+ :type callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None
211555
211568
  :param args: Arguments that will be passed to the callback.
211556
211569
  :type args: tuple[typing.Any, int] | None
211557
211570
  :param region_type: The region type the callback draws in; usually WINDOW. (`bpy.types.Region.type`)
@@ -212245,7 +212258,7 @@ class SpaceView3D(Space, bpy_struct):
212245
212258
  @classmethod
212246
212259
  def draw_handler_add(
212247
212260
  cls,
212248
- callback: collections.abc.Callable | None,
212261
+ callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None,
212249
212262
  args: tuple[typing.Any, int] | None,
212250
212263
  region_type: str | None,
212251
212264
  draw_type: str | None,
@@ -212256,7 +212269,7 @@ class SpaceView3D(Space, bpy_struct):
212256
212269
 
212257
212270
  :param callback: A function that will be called when the region is drawn.
212258
212271
  It gets the specified arguments as input, it's return value is ignored.
212259
- :type callback: collections.abc.Callable | None
212272
+ :type callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None
212260
212273
  :param args: Arguments that will be passed to the callback.
212261
212274
  :type args: tuple[typing.Any, int] | None
212262
212275
  :param region_type: The region type the callback draws in; usually WINDOW. (`bpy.types.Region.type`)
@@ -224732,7 +224745,7 @@ class UIList(bpy_struct):
224732
224745
 
224733
224746
  def draw_item(
224734
224747
  self,
224735
- context: Context | None,
224748
+ context: Context,
224736
224749
  layout: UILayout,
224737
224750
  data: typing.Any | None,
224738
224751
  item: typing.Any | None,
@@ -224746,7 +224759,7 @@ class UIList(bpy_struct):
224746
224759
  """Draw an item in the list (NOTE: when you define your own draw_item function, you may want to check given 'item' is of the right type...)
224747
224760
 
224748
224761
  :param context:
224749
- :type context: Context | None
224762
+ :type context: Context
224750
224763
  :param layout: Layout to draw the item
224751
224764
  :type layout: UILayout
224752
224765
  :param data: Data from which to take Collection property
@@ -224765,22 +224778,20 @@ class UIList(bpy_struct):
224765
224778
  :type flt_flag: int | None
224766
224779
  """
224767
224780
 
224768
- def draw_filter(self, context: Context | None, layout: UILayout):
224781
+ def draw_filter(self, context: Context, layout: UILayout):
224769
224782
  """Draw filtering options
224770
224783
 
224771
224784
  :param context:
224772
- :type context: Context | None
224785
+ :type context: Context
224773
224786
  :param layout: Layout to draw the item
224774
224787
  :type layout: UILayout
224775
224788
  """
224776
224789
 
224777
- def filter_items(
224778
- self, context: Context | None, data: typing.Any | None, property: str
224779
- ):
224790
+ def filter_items(self, context: Context, data: typing.Any | None, property: str):
224780
224791
  """Filter and/or re-order items of the collection (output filter results in filter_flags, and reorder results in filter_neworder arrays)
224781
224792
 
224782
224793
  :param context:
224783
- :type context: Context | None
224794
+ :type context: Context
224784
224795
  :param data: Data from which to take Collection property
224785
224796
  :type data: typing.Any | None
224786
224797
  :param property: Identifier of property in data, for the collection
@@ -230385,7 +230396,10 @@ class WindowManager(ID, bpy_struct):
230385
230396
  @classmethod
230386
230397
  def draw_cursor_add(
230387
230398
  cls,
230388
- callback: collections.abc.Callable | None,
230399
+ callback: collections.abc.Callable[
230400
+ [typing.Any, int, tuple[int, int]], typing.Any
230401
+ ]
230402
+ | None,
230389
230403
  args: tuple[typing.Any, int] | None,
230390
230404
  space_type: str | None,
230391
230405
  region_type: str | None,
@@ -230396,7 +230410,7 @@ class WindowManager(ID, bpy_struct):
230396
230410
 
230397
230411
  :param callback: A function that will be called when the cursor is drawn.
230398
230412
  It gets the specified arguments as input with the mouse position (tuple) as last argument.
230399
- :type callback: collections.abc.Callable | None
230413
+ :type callback: collections.abc.Callable[[typing.Any, int, tuple[int, int]], typing.Any] | None
230400
230414
  :param args: Arguments that will be passed to the callback.
230401
230415
  :type args: tuple[typing.Any, int] | None
230402
230416
  :param space_type: The space type the callback draws in; for example VIEW_3D. (`bpy.types.Space.type`)
@@ -231891,29 +231905,29 @@ class XrSessionState(bpy_struct):
231891
231905
  """
231892
231906
 
231893
231907
  @classmethod
231894
- def is_running(cls, context: Context | None) -> bool:
231908
+ def is_running(cls, context: Context) -> bool:
231895
231909
  """Query if the VR session is currently running
231896
231910
 
231897
231911
  :param context:
231898
- :type context: Context | None
231912
+ :type context: Context
231899
231913
  :return: Result
231900
231914
  :rtype: bool
231901
231915
  """
231902
231916
 
231903
231917
  @classmethod
231904
- def reset_to_base_pose(cls, context: Context | None):
231918
+ def reset_to_base_pose(cls, context: Context):
231905
231919
  """Force resetting of position and rotation deltas
231906
231920
 
231907
231921
  :param context:
231908
- :type context: Context | None
231922
+ :type context: Context
231909
231923
  """
231910
231924
 
231911
231925
  @classmethod
231912
- def action_set_create(cls, context: Context | None, actionmap: XrActionMap) -> bool:
231926
+ def action_set_create(cls, context: Context, actionmap: XrActionMap) -> bool:
231913
231927
  """Create a VR action set
231914
231928
 
231915
231929
  :param context:
231916
- :type context: Context | None
231930
+ :type context: Context
231917
231931
  :param actionmap:
231918
231932
  :type actionmap: XrActionMap
231919
231933
  :return: Result
@@ -231922,15 +231936,12 @@ class XrSessionState(bpy_struct):
231922
231936
 
231923
231937
  @classmethod
231924
231938
  def action_create(
231925
- cls,
231926
- context: Context | None,
231927
- actionmap: XrActionMap,
231928
- actionmap_item: XrActionMapItem,
231939
+ cls, context: Context, actionmap: XrActionMap, actionmap_item: XrActionMapItem
231929
231940
  ) -> bool:
231930
231941
  """Create a VR action
231931
231942
 
231932
231943
  :param context:
231933
- :type context: Context | None
231944
+ :type context: Context
231934
231945
  :param actionmap:
231935
231946
  :type actionmap: XrActionMap
231936
231947
  :param actionmap_item:
@@ -231942,7 +231953,7 @@ class XrSessionState(bpy_struct):
231942
231953
  @classmethod
231943
231954
  def action_binding_create(
231944
231955
  cls,
231945
- context: Context | None,
231956
+ context: Context,
231946
231957
  actionmap: XrActionMap,
231947
231958
  actionmap_item: XrActionMapItem,
231948
231959
  actionmap_binding: XrActionMapBinding,
@@ -231950,7 +231961,7 @@ class XrSessionState(bpy_struct):
231950
231961
  """Create a VR action binding
231951
231962
 
231952
231963
  :param context:
231953
- :type context: Context | None
231964
+ :type context: Context
231954
231965
  :param actionmap:
231955
231966
  :type actionmap: XrActionMap
231956
231967
  :param actionmap_item:
@@ -231962,11 +231973,11 @@ class XrSessionState(bpy_struct):
231962
231973
  """
231963
231974
 
231964
231975
  @classmethod
231965
- def active_action_set_set(cls, context: Context | None, action_set: str) -> bool:
231976
+ def active_action_set_set(cls, context: Context, action_set: str) -> bool:
231966
231977
  """Set the active VR action set
231967
231978
 
231968
231979
  :param context:
231969
- :type context: Context | None
231980
+ :type context: Context
231970
231981
  :param action_set: Action Set, Action set name
231971
231982
  :type action_set: str
231972
231983
  :return: Result
@@ -231975,12 +231986,12 @@ class XrSessionState(bpy_struct):
231975
231986
 
231976
231987
  @classmethod
231977
231988
  def controller_pose_actions_set(
231978
- cls, context: Context | None, action_set: str, grip_action: str, aim_action: str
231989
+ cls, context: Context, action_set: str, grip_action: str, aim_action: str
231979
231990
  ) -> bool:
231980
231991
  """Set the actions that determine the VR controller poses
231981
231992
 
231982
231993
  :param context:
231983
- :type context: Context | None
231994
+ :type context: Context
231984
231995
  :param action_set: Action Set, Action set name
231985
231996
  :type action_set: str
231986
231997
  :param grip_action: Grip Action, Name of the action representing the controller grips
@@ -231993,16 +232004,12 @@ class XrSessionState(bpy_struct):
231993
232004
 
231994
232005
  @classmethod
231995
232006
  def action_state_get(
231996
- cls,
231997
- context: Context | None,
231998
- action_set_name: str,
231999
- action_name: str,
232000
- user_path: str,
232007
+ cls, context: Context, action_set_name: str, action_name: str, user_path: str
232001
232008
  ) -> bpy_prop_array[float]:
232002
232009
  """Get the current state of a VR action
232003
232010
 
232004
232011
  :param context:
232005
- :type context: Context | None
232012
+ :type context: Context
232006
232013
  :param action_set_name: Action Set, Action set name
232007
232014
  :type action_set_name: str
232008
232015
  :param action_name: Action, Action name
@@ -232016,7 +232023,7 @@ class XrSessionState(bpy_struct):
232016
232023
  @classmethod
232017
232024
  def haptic_action_apply(
232018
232025
  cls,
232019
- context: Context | None,
232026
+ context: Context,
232020
232027
  action_set_name: str,
232021
232028
  action_name: str,
232022
232029
  user_path: str,
@@ -232027,7 +232034,7 @@ class XrSessionState(bpy_struct):
232027
232034
  """Apply a VR haptic action
232028
232035
 
232029
232036
  :param context:
232030
- :type context: Context | None
232037
+ :type context: Context
232031
232038
  :param action_set_name: Action Set, Action set name
232032
232039
  :type action_set_name: str
232033
232040
  :param action_name: Action, Action name
@@ -232046,16 +232053,12 @@ class XrSessionState(bpy_struct):
232046
232053
 
232047
232054
  @classmethod
232048
232055
  def haptic_action_stop(
232049
- cls,
232050
- context: Context | None,
232051
- action_set_name: str,
232052
- action_name: str,
232053
- user_path: str,
232056
+ cls, context: Context, action_set_name: str, action_name: str, user_path: str
232054
232057
  ):
232055
232058
  """Stop a VR haptic action
232056
232059
 
232057
232060
  :param context:
232058
- :type context: Context | None
232061
+ :type context: Context
232059
232062
  :param action_set_name: Action Set, Action set name
232060
232063
  :type action_set_name: str
232061
232064
  :param action_name: Action, Action name
@@ -232066,12 +232069,12 @@ class XrSessionState(bpy_struct):
232066
232069
 
232067
232070
  @classmethod
232068
232071
  def controller_grip_location_get(
232069
- cls, context: Context | None, index: int | None
232072
+ cls, context: Context, index: int | None
232070
232073
  ) -> mathutils.Vector:
232071
232074
  """Get the last known controller grip location in world space
232072
232075
 
232073
232076
  :param context:
232074
- :type context: Context | None
232077
+ :type context: Context
232075
232078
  :param index: Index, Controller index
232076
232079
  :type index: int | None
232077
232080
  :return: Location, Controller grip location
@@ -232080,12 +232083,12 @@ class XrSessionState(bpy_struct):
232080
232083
 
232081
232084
  @classmethod
232082
232085
  def controller_grip_rotation_get(
232083
- cls, context: Context | None, index: int | None
232086
+ cls, context: Context, index: int | None
232084
232087
  ) -> mathutils.Quaternion:
232085
232088
  """Get the last known controller grip rotation (quaternion) in world space
232086
232089
 
232087
232090
  :param context:
232088
- :type context: Context | None
232091
+ :type context: Context
232089
232092
  :param index: Index, Controller index
232090
232093
  :type index: int | None
232091
232094
  :return: Rotation, Controller grip quaternion rotation
@@ -232094,12 +232097,12 @@ class XrSessionState(bpy_struct):
232094
232097
 
232095
232098
  @classmethod
232096
232099
  def controller_aim_location_get(
232097
- cls, context: Context | None, index: int | None
232100
+ cls, context: Context, index: int | None
232098
232101
  ) -> mathutils.Vector:
232099
232102
  """Get the last known controller aim location in world space
232100
232103
 
232101
232104
  :param context:
232102
- :type context: Context | None
232105
+ :type context: Context
232103
232106
  :param index: Index, Controller index
232104
232107
  :type index: int | None
232105
232108
  :return: Location, Controller aim location
@@ -232108,12 +232111,12 @@ class XrSessionState(bpy_struct):
232108
232111
 
232109
232112
  @classmethod
232110
232113
  def controller_aim_rotation_get(
232111
- cls, context: Context | None, index: int | None
232114
+ cls, context: Context, index: int | None
232112
232115
  ) -> mathutils.Quaternion:
232113
232116
  """Get the last known controller aim rotation (quaternion) in world space
232114
232117
 
232115
232118
  :param context:
232116
- :type context: Context | None
232119
+ :type context: Context
232117
232120
  :param index: Index, Controller index
232118
232121
  :type index: int | None
232119
232122
  :return: Rotation, Controller aim quaternion rotation