fake-bpy-module 20241229__py3-none-any.whl → 20250102__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
@@ -5547,86 +5547,273 @@ print(positions_data)
5547
5547
  This example shows an implementation of USDHook
5548
5548
 
5549
5549
  to extend USD
5550
- export and import functionalty.
5550
+ export and import functionality.
5551
+
5552
+
5553
+ --------------------
5551
5554
 
5552
5555
  One may optionally define any or all of the following callback functions
5553
5556
  in the USDHook
5554
5557
 
5555
5558
  subclass.
5556
5559
 
5557
- Hook function on_export()
5558
5560
 
5559
- is called before the USD export finalizes,
5560
- allowing modifications to the USD stage immediately before it is
5561
- saved. This function takes as an argument an instance of an
5562
- internally defined class USDSceneExportContext
5561
+ --------------------
5563
5562
 
5564
- which provides the
5565
- following accessors to the scene data:
5563
+ Called before the USD export finalizes, allowing modifications to the USD
5564
+ stage immediately before it is saved.
5566
5565
 
5567
- * get_stage()
5566
+ Args:
5568
5567
 
5569
- returns the USD stage to be saved.
5570
- * get_depsgraph()
5568
+ * export_context
5569
+
5570
+ (USDSceneExportContext): Provides access to the stage and dependency graph
5571
5571
 
5572
- returns the Blender scene dependency graph.
5572
+ Returns:
5573
5573
 
5574
- Hook function on_material_export()
5574
+ * True
5575
5575
 
5576
- is called for each material that is exported,
5577
- allowing modifications to the USD material, such as shader generation.
5578
- It is called with three arguments:
5576
+ on success or False
5579
5577
 
5580
- -export_context
5578
+ if the operation was bypassed or otherwise failed to complete
5581
5579
 
5582
- : An instance of the internally defined type USDMaterialExportContext
5583
5580
 
5584
- .
5585
- -bl_material
5581
+ --------------------
5582
+
5583
+ Called for each material that is exported, allowing modifications to the USD material,
5584
+ such as shader generation.
5585
+
5586
+ Args:
5587
+
5588
+ * export_context
5589
+
5590
+ (USDMaterialExportContext): Provides access to the stage and a texture export utility function
5591
+ * bl_material
5592
+
5593
+ (bpy.types.Material
5594
+
5595
+ ): The source Blender material
5596
+ * usd_material
5597
+
5598
+ (pxr.UsdShade.Material
5586
5599
 
5587
- : The source Blender material.
5588
- -usd_material
5600
+ ): The target USD material to be exported
5589
5601
 
5590
- : The target USD material to be exported.
5602
+ Returns:
5591
5603
 
5592
- USDMaterialExportContext
5604
+ * True
5593
5605
 
5594
- implements a get_stage()
5606
+ on success or False
5595
5607
 
5596
- function which returns the
5597
- USD stage to be saved.
5608
+ if the operation was bypassed or otherwise failed to complete
5598
5609
 
5599
5610
  Note that the target USD material might already have connected shaders created by the USD exporter or
5600
5611
  by other material export hooks.
5601
5612
 
5602
- Hook function on_import()
5603
5613
 
5604
- is called after the USD import finalizes. This function takes
5605
- as an argument an instance of an internally defined class USDSceneImportContext
5614
+ --------------------
5615
+
5616
+ Called after the USD import finalizes.
5617
+
5618
+ Args:
5619
+
5620
+ * import_context
5621
+
5622
+ (USDSceneImportContext):
5623
+ Provides access to the stage and a map associating USD prim paths and Blender IDs
5624
+
5625
+ Returns:
5626
+
5627
+ * True
5628
+
5629
+ on success or False
5630
+
5631
+ if the operation was bypassed or otherwise failed to complete
5632
+
5633
+
5634
+ --------------------
5635
+
5636
+ Called to determine if the USDHook
5637
+
5638
+ implementation can convert a given USD material.
5639
+
5640
+ Args:
5641
+
5642
+ * import_context
5643
+
5644
+ (USDMaterialImportContext): Provides access to the stage and a texture import utility function
5645
+ * usd_material
5646
+
5647
+ (pxr.UsdShade.Material
5648
+
5649
+ ): The source USD material to be exported
5650
+
5651
+ Returns:
5652
+
5653
+ * True
5654
+
5655
+ if the hook can convert the material or False
5656
+
5657
+ otherwise
5658
+
5659
+ If any hook returns True
5660
+
5661
+ from material_import_poll
5662
+
5663
+ , the USD importer will skip standard USD Preview Surface
5664
+
5665
+
5666
+ or MaterialX
5667
+
5668
+ import and invoke the hook's on_material_import method to convert the material instead.
5669
+
5670
+
5671
+ --------------------
5672
+
5673
+ Called for each material that is imported, to allow converting the USD material to nodes on the Blender material.
5674
+ To ensure that this function gets called, the hook must also implement the material_import_poll()
5675
+
5676
+
5677
+ callback to return True
5678
+
5679
+ for the given USD material.
5680
+
5681
+ Args:
5682
+
5683
+ * import_context
5684
+
5685
+ (USDMaterialImportContext): Provides access to the stage and a texture import utility function
5686
+ * bl_material
5687
+
5688
+ (bpy.types.Material
5689
+
5690
+ ): The target Blender material with an empty node tree
5691
+ * usd_material
5692
+
5693
+ (pxr.UsdShade.Material
5694
+
5695
+ ): The source USD material to be imported
5696
+
5697
+ Returns:
5698
+
5699
+ * True
5700
+
5701
+ on success or False
5702
+
5703
+ if the conversion failed or otherwise did not complete
5704
+
5606
5705
 
5607
- which provides the
5608
- following accessors to the scene data:
5706
+ --------------------
5707
+
5708
+ Instances of the following built-in classes are provided as arguments to the callbacks.
5709
+
5710
+
5711
+ --------------------
5712
+
5713
+ Argument for on_export.
5714
+
5715
+ Methods:
5716
+
5717
+ * get_stage()
5718
+
5719
+ : returns the USD stage to be saved
5720
+ * get_depsgraph()
5721
+
5722
+ : returns the Blender scene dependency graph
5723
+
5724
+
5725
+ --------------------
5726
+
5727
+ Argument for on_material_export.
5728
+
5729
+ Methods:
5730
+
5731
+ * get_stage()
5732
+
5733
+ : returns the USD stage to be saved
5734
+ * export_texture(image: bpy.types.Image)
5735
+
5736
+ : Returns the USD asset path for the given texture image
5737
+
5738
+ The export_texture
5739
+
5740
+ function will save in-memory images and may copy texture assets,
5741
+ depending on the current USD export options.
5742
+ For example, by default calling export_texture(/foo/bar.png)
5743
+
5744
+ will copy the file to a textures
5745
+
5746
+
5747
+ directory next to the exported USD and will return the relative path ./textures/bar.png
5748
+
5749
+ .
5750
+
5751
+
5752
+ --------------------
5753
+
5754
+ Argument for on_import.
5755
+
5756
+ Methods:
5609
5757
 
5610
5758
  * get_prim_map()
5611
5759
 
5612
- returns a dict where the key is an imported USD Prim path and the value a list of
5613
- the IDs created by the imported prim.
5760
+ returns a dict
5761
+
5762
+ where the key is an imported USD Prim path and the value a list
5614
5763
 
5764
+
5765
+ of the IDs created by the imported prim.
5615
5766
  * get_stage()
5616
5767
 
5617
5768
  returns the USD stage which was imported.
5618
5769
 
5619
- The hook functions should return True
5620
5770
 
5621
- on success or False
5771
+ --------------------
5772
+
5773
+ Argument for material_import_poll and on_material_import.
5774
+
5775
+ Methods:
5776
+
5777
+ * get_stage()
5778
+
5779
+ :
5780
+ returns the USD stage to be saved.
5781
+ * import_texture(asset_path: str)
5782
+
5783
+ :
5784
+ for the given USD texture asset path, returns a tuple[str, bool]
5785
+
5786
+ ,
5787
+ containing the asset's local path and a bool indicating whether the path references a temporary file.
5788
+
5789
+ The import_texture
5790
+
5791
+ function may copy the texture to the local file system if the given asset path is a
5792
+ package-relative path for a USDZ archive, depending on the current USD Import Textures
5793
+
5794
+ options.
5795
+ When the Import Textures
5796
+
5797
+ mode is Packed
5798
+
5799
+ , the texture is saved to a temporary location and the
5800
+ second element of the returned tuple is True
5801
+
5802
+ , indicating that the file is temporary, in which
5803
+ case it may be necessary to pack the image. The original asset path will be returned unchanged if it's
5804
+ already a local file or if it could not be copied to a local destination.
5805
+
5622
5806
 
5623
- if the operation was bypassed or
5624
- otherwise failed to complete. Exceptions raised by these functions will be reported in Blender, with
5625
- the exception details printed to the console.
5807
+ --------------------
5808
+
5809
+ Exceptions raised by these functions will be reported in Blender with the exception details printed to the console.
5810
+
5811
+
5812
+ --------------------
5626
5813
 
5627
5814
  The USDHookExample
5628
5815
 
5629
- class in this example impements the fllowing functions:
5816
+ class in the example below implements the following functions:
5630
5817
 
5631
5818
  * on_export()
5632
5819
 
@@ -5635,10 +5822,24 @@ The USDHookExample
5635
5822
 
5636
5823
  function to create a simple MaterialX
5637
5824
 
5638
- shader on the givne USD material.
5825
+ shader on the given USD material.
5639
5826
  * on_import()
5640
5827
 
5641
5828
  function to create a text object to display the stage's custom layer data.
5829
+ * material_import_poll()
5830
+
5831
+ returns True
5832
+
5833
+ if the given USD material has an mtlx
5834
+
5835
+ context.
5836
+ * on_material_import()
5837
+
5838
+ function to convert a simple MaterialX
5839
+
5840
+ shader with a base_color
5841
+
5842
+ input.
5642
5843
 
5643
5844
  ```../examples/bpy.types.USDHook.py```
5644
5845
 
@@ -116995,11 +117196,12 @@ class BlendData(bpy_struct):
116995
117196
  :type: BlendDataWorlds
116996
117197
  """
116997
117198
 
116998
- def batch_remove(self, ids):
117199
+ def batch_remove(self, ids: collections.abc.Sequence[ID] | None):
116999
117200
  """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
117201
  ID collections), but less safe/versatile (it can break Blender, e.g. by removing all scenes...).
117001
117202
 
117002
117203
  :param ids: Sequence of IDs (types can be mixed).
117204
+ :type ids: collections.abc.Sequence[ID] | None
117003
117205
  """
117004
117206
 
117005
117207
  @classmethod
@@ -117030,19 +117232,24 @@ class BlendData(bpy_struct):
117030
117232
  :return: The number of deleted IDs.
117031
117233
  """
117032
117234
 
117033
- def temp_data(self, filepath: bytes | str | None = None) -> typing_extensions.Self:
117235
+ def temp_data(
117236
+ self, filepath: None | bytes | str | None = None
117237
+ ) -> typing_extensions.Self:
117034
117238
  """A context manager that temporarily creates blender file data.
117035
117239
 
117036
117240
  :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
117241
+ :type filepath: None | bytes | str | None
117038
117242
  :return: Blend file data which is freed once the context exists.
117039
117243
  :rtype: typing_extensions.Self
117040
117244
  """
117041
117245
 
117042
- def user_map(self, subset, key_types, value_types) -> dict[ID]:
117246
+ def user_map(
117247
+ self, subset: collections.abc.Sequence[ID] | None, key_types, value_types
117248
+ ) -> dict[ID]:
117043
117249
  """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
117250
 
117045
117251
  :param subset: When passed, only these data-blocks and their users will be included as keys/values in the map.
117252
+ :type subset: collections.abc.Sequence[ID] | None
117046
117253
  :param key_types: Filter the keys mapped by ID types.
117047
117254
  :param value_types: Filter the values in the set by ID types.
117048
117255
  :return: dictionary that maps data-blocks ID's to their users.
@@ -157866,12 +158073,16 @@ class Gizmo(bpy_struct):
157866
158073
  """
157867
158074
 
157868
158075
  @staticmethod
157869
- def new_custom_shape(type: str | None, verts) -> typing.Any:
158076
+ def new_custom_shape(
158077
+ type: str | None,
158078
+ verts: collections.abc.Sequence[collections.abc.Sequence[float]] | None,
158079
+ ) -> typing.Any:
157870
158080
  """Create a new shape that can be passed to `Gizmo.draw_custom_shape`.
157871
158081
 
157872
158082
  :param type: The type of shape to create in (POINTS, LINES, TRIS, LINE_STRIP).
157873
158083
  :type type: str | None
157874
158084
  :param verts: Sequence of 2D or 3D coordinates.
158085
+ :type verts: collections.abc.Sequence[collections.abc.Sequence[float]] | None
157875
158086
  :return: The newly created shape (the return type make change).
157876
158087
  :rtype: typing.Any
157877
158088
  """
@@ -157918,8 +158129,8 @@ class Gizmo(bpy_struct):
157918
158129
  def target_set_handler(
157919
158130
  self,
157920
158131
  target: str | None,
157921
- get: collections.abc.Callable | None,
157922
- set: collections.abc.Callable | None,
158132
+ get: collections.abc.Callable[float | collections.abc.Sequence[float]] | None,
158133
+ set: collections.abc.Callable[[tuple[float, int]], typing.Any] | None,
157923
158134
  range: collections.abc.Callable | None = None,
157924
158135
  ):
157925
158136
  """Assigns callbacks to a gizmos property.
@@ -157927,9 +158138,9 @@ class Gizmo(bpy_struct):
157927
158138
  :param target: Target property name.
157928
158139
  :type target: str | None
157929
158140
  :param get: Function that returns the value for this property (single value or sequence).
157930
- :type get: collections.abc.Callable | None
158141
+ :type get: collections.abc.Callable[float | collections.abc.Sequence[float]] | None
157931
158142
  :param set: Function that takes a single value argument and applies it.
157932
- :type set: collections.abc.Callable | None
158143
+ :type set: collections.abc.Callable[[tuple[float, int]], typing.Any] | None
157933
158144
  :param range: Function that returns a (min, max) tuple for gizmos that use a range. The returned value is not used.
157934
158145
  :type range: collections.abc.Callable | None
157935
158146
  """
@@ -173773,20 +173984,21 @@ class Menu(bpy_struct):
173773
173984
  def is_extended(cls): ...
173774
173985
  def path_menu(
173775
173986
  self,
173776
- searchpaths,
173987
+ searchpaths: collections.abc.Sequence[str] | None,
173777
173988
  operator: str | None,
173778
173989
  *,
173779
173990
  props_default: dict[str, typing.Any] | None = None,
173780
173991
  prop_filepath: str | None = "filepath",
173781
- filter_ext: collections.abc.Callable | None = None,
173992
+ filter_ext: None | collections.abc.Callable[str, bool] | None = None,
173782
173993
  filter_path=None,
173783
- display_name: collections.abc.Callable | None = None,
173994
+ display_name: collections.abc.Callable[str, str] | None = None,
173784
173995
  add_operator=None,
173785
173996
  add_operator_props=None,
173786
173997
  ):
173787
173998
  """Populate a menu from a list of paths.
173788
173999
 
173789
174000
  :param searchpaths: Paths to scan.
174001
+ :type searchpaths: collections.abc.Sequence[str] | None
173790
174002
  :param operator: The operator id to use with each file.
173791
174003
  :type operator: str | None
173792
174004
  :param props_default: Properties to assign to each operator.
@@ -173796,10 +174008,10 @@ class Menu(bpy_struct):
173796
174008
  :param filter_ext: Optional callback that takes the file extensions.
173797
174009
 
173798
174010
  Returning false excludes the file from the list.
173799
- :type filter_ext: collections.abc.Callable | None
174011
+ :type filter_ext: None | collections.abc.Callable[str, bool] | None
173800
174012
  :param filter_path:
173801
174013
  :param display_name: Optional callback that takes the full path, returns the name to display.
173802
- :type display_name: collections.abc.Callable | None
174014
+ :type display_name: collections.abc.Callable[str, str] | None
173803
174015
  :param add_operator:
173804
174016
  :param add_operator_props:
173805
174017
  """
@@ -186691,11 +186903,15 @@ expanding an operator into a menu.
186691
186903
  """
186692
186904
 
186693
186905
  @classmethod
186694
- def poll_message_set(cls, message: collections.abc.Callable | str | None, *args):
186906
+ def poll_message_set(
186907
+ cls,
186908
+ message: collections.abc.Callable[[typing.Any, int], str | None] | str | None,
186909
+ *args,
186910
+ ):
186695
186911
  """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.
186696
186912
 
186697
186913
  :param message: The message or a function that returns the message.
186698
- :type message: collections.abc.Callable | str | None
186914
+ :type message: collections.abc.Callable[[typing.Any, int], str | None] | str | None
186699
186915
  :param args:
186700
186916
  """
186701
186917
 
@@ -208679,7 +208895,7 @@ class Space(bpy_struct):
208679
208895
  @classmethod
208680
208896
  def draw_handler_add(
208681
208897
  cls,
208682
- callback: collections.abc.Callable | None,
208898
+ callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None,
208683
208899
  args: tuple[typing.Any, int] | None,
208684
208900
  region_type: str | None,
208685
208901
  draw_type: str | None,
@@ -208690,7 +208906,7 @@ class Space(bpy_struct):
208690
208906
 
208691
208907
  :param callback: A function that will be called when the region is drawn.
208692
208908
  It gets the specified arguments as input, it's return value is ignored.
208693
- :type callback: collections.abc.Callable | None
208909
+ :type callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None
208694
208910
  :param args: Arguments that will be passed to the callback.
208695
208911
  :type args: tuple[typing.Any, int] | None
208696
208912
  :param region_type: The region type the callback draws in; usually WINDOW. (`bpy.types.Region.type`)
@@ -209023,7 +209239,7 @@ class SpaceClipEditor(Space, bpy_struct):
209023
209239
  @classmethod
209024
209240
  def draw_handler_add(
209025
209241
  cls,
209026
- callback: collections.abc.Callable | None,
209242
+ callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None,
209027
209243
  args: tuple[typing.Any, int] | None,
209028
209244
  region_type: str | None,
209029
209245
  draw_type: str | None,
@@ -209034,7 +209250,7 @@ class SpaceClipEditor(Space, bpy_struct):
209034
209250
 
209035
209251
  :param callback: A function that will be called when the region is drawn.
209036
209252
  It gets the specified arguments as input, it's return value is ignored.
209037
- :type callback: collections.abc.Callable | None
209253
+ :type callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None
209038
209254
  :param args: Arguments that will be passed to the callback.
209039
209255
  :type args: tuple[typing.Any, int] | None
209040
209256
  :param region_type: The region type the callback draws in; usually WINDOW. (`bpy.types.Region.type`)
@@ -209125,7 +209341,7 @@ class SpaceConsole(Space, bpy_struct):
209125
209341
  @classmethod
209126
209342
  def draw_handler_add(
209127
209343
  cls,
209128
- callback: collections.abc.Callable | None,
209344
+ callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None,
209129
209345
  args: tuple[typing.Any, int] | None,
209130
209346
  region_type: str | None,
209131
209347
  draw_type: str | None,
@@ -209136,7 +209352,7 @@ class SpaceConsole(Space, bpy_struct):
209136
209352
 
209137
209353
  :param callback: A function that will be called when the region is drawn.
209138
209354
  It gets the specified arguments as input, it's return value is ignored.
209139
- :type callback: collections.abc.Callable | None
209355
+ :type callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None
209140
209356
  :param args: Arguments that will be passed to the callback.
209141
209357
  :type args: tuple[typing.Any, int] | None
209142
209358
  :param region_type: The region type the callback draws in; usually WINDOW. (`bpy.types.Region.type`)
@@ -209333,7 +209549,7 @@ class SpaceDopeSheetEditor(Space, bpy_struct):
209333
209549
  @classmethod
209334
209550
  def draw_handler_add(
209335
209551
  cls,
209336
- callback: collections.abc.Callable | None,
209552
+ callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None,
209337
209553
  args: tuple[typing.Any, int] | None,
209338
209554
  region_type: str | None,
209339
209555
  draw_type: str | None,
@@ -209344,7 +209560,7 @@ class SpaceDopeSheetEditor(Space, bpy_struct):
209344
209560
 
209345
209561
  :param callback: A function that will be called when the region is drawn.
209346
209562
  It gets the specified arguments as input, it's return value is ignored.
209347
- :type callback: collections.abc.Callable | None
209563
+ :type callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None
209348
209564
  :param args: Arguments that will be passed to the callback.
209349
209565
  :type args: tuple[typing.Any, int] | None
209350
209566
  :param region_type: The region type the callback draws in; usually WINDOW. (`bpy.types.Region.type`)
@@ -209504,7 +209720,7 @@ class SpaceFileBrowser(Space, bpy_struct):
209504
209720
  @classmethod
209505
209721
  def draw_handler_add(
209506
209722
  cls,
209507
- callback: collections.abc.Callable | None,
209723
+ callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None,
209508
209724
  args: tuple[typing.Any, int] | None,
209509
209725
  region_type: str | None,
209510
209726
  draw_type: str | None,
@@ -209515,7 +209731,7 @@ class SpaceFileBrowser(Space, bpy_struct):
209515
209731
 
209516
209732
  :param callback: A function that will be called when the region is drawn.
209517
209733
  It gets the specified arguments as input, it's return value is ignored.
209518
- :type callback: collections.abc.Callable | None
209734
+ :type callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None
209519
209735
  :param args: Arguments that will be passed to the callback.
209520
209736
  :type args: tuple[typing.Any, int] | None
209521
209737
  :param region_type: The region type the callback draws in; usually WINDOW. (`bpy.types.Region.type`)
@@ -209690,7 +209906,7 @@ class SpaceGraphEditor(Space, bpy_struct):
209690
209906
  @classmethod
209691
209907
  def draw_handler_add(
209692
209908
  cls,
209693
- callback: collections.abc.Callable | None,
209909
+ callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None,
209694
209910
  args: tuple[typing.Any, int] | None,
209695
209911
  region_type: str | None,
209696
209912
  draw_type: str | None,
@@ -209701,7 +209917,7 @@ class SpaceGraphEditor(Space, bpy_struct):
209701
209917
 
209702
209918
  :param callback: A function that will be called when the region is drawn.
209703
209919
  It gets the specified arguments as input, it's return value is ignored.
209704
- :type callback: collections.abc.Callable | None
209920
+ :type callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None
209705
209921
  :param args: Arguments that will be passed to the callback.
209706
209922
  :type args: tuple[typing.Any, int] | None
209707
209923
  :param region_type: The region type the callback draws in; usually WINDOW. (`bpy.types.Region.type`)
@@ -209974,7 +210190,7 @@ class SpaceImageEditor(Space, bpy_struct):
209974
210190
  @classmethod
209975
210191
  def draw_handler_add(
209976
210192
  cls,
209977
- callback: collections.abc.Callable | None,
210193
+ callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None,
209978
210194
  args: tuple[typing.Any, int] | None,
209979
210195
  region_type: str | None,
209980
210196
  draw_type: str | None,
@@ -209985,7 +210201,7 @@ class SpaceImageEditor(Space, bpy_struct):
209985
210201
 
209986
210202
  :param callback: A function that will be called when the region is drawn.
209987
210203
  It gets the specified arguments as input, it's return value is ignored.
209988
- :type callback: collections.abc.Callable | None
210204
+ :type callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None
209989
210205
  :param args: Arguments that will be passed to the callback.
209990
210206
  :type args: tuple[typing.Any, int] | None
209991
210207
  :param region_type: The region type the callback draws in; usually WINDOW. (`bpy.types.Region.type`)
@@ -210101,7 +210317,7 @@ class SpaceInfo(Space, bpy_struct):
210101
210317
  @classmethod
210102
210318
  def draw_handler_add(
210103
210319
  cls,
210104
- callback: collections.abc.Callable | None,
210320
+ callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None,
210105
210321
  args: tuple[typing.Any, int] | None,
210106
210322
  region_type: str | None,
210107
210323
  draw_type: str | None,
@@ -210112,7 +210328,7 @@ class SpaceInfo(Space, bpy_struct):
210112
210328
 
210113
210329
  :param callback: A function that will be called when the region is drawn.
210114
210330
  It gets the specified arguments as input, it's return value is ignored.
210115
- :type callback: collections.abc.Callable | None
210331
+ :type callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None
210116
210332
  :param args: Arguments that will be passed to the callback.
210117
210333
  :type args: tuple[typing.Any, int] | None
210118
210334
  :param region_type: The region type the callback draws in; usually WINDOW. (`bpy.types.Region.type`)
@@ -210215,7 +210431,7 @@ class SpaceNLA(Space, bpy_struct):
210215
210431
  @classmethod
210216
210432
  def draw_handler_add(
210217
210433
  cls,
210218
- callback: collections.abc.Callable | None,
210434
+ callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None,
210219
210435
  args: tuple[typing.Any, int] | None,
210220
210436
  region_type: str | None,
210221
210437
  draw_type: str | None,
@@ -210226,7 +210442,7 @@ class SpaceNLA(Space, bpy_struct):
210226
210442
 
210227
210443
  :param callback: A function that will be called when the region is drawn.
210228
210444
  It gets the specified arguments as input, it's return value is ignored.
210229
- :type callback: collections.abc.Callable | None
210445
+ :type callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None
210230
210446
  :param args: Arguments that will be passed to the callback.
210231
210447
  :type args: tuple[typing.Any, int] | None
210232
210448
  :param region_type: The region type the callback draws in; usually WINDOW. (`bpy.types.Region.type`)
@@ -210418,7 +210634,7 @@ class SpaceNodeEditor(Space, bpy_struct):
210418
210634
  @classmethod
210419
210635
  def draw_handler_add(
210420
210636
  cls,
210421
- callback: collections.abc.Callable | None,
210637
+ callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None,
210422
210638
  args: tuple[typing.Any, int] | None,
210423
210639
  region_type: str | None,
210424
210640
  draw_type: str | None,
@@ -210429,7 +210645,7 @@ class SpaceNodeEditor(Space, bpy_struct):
210429
210645
 
210430
210646
  :param callback: A function that will be called when the region is drawn.
210431
210647
  It gets the specified arguments as input, it's return value is ignored.
210432
- :type callback: collections.abc.Callable | None
210648
+ :type callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None
210433
210649
  :param args: Arguments that will be passed to the callback.
210434
210650
  :type args: tuple[typing.Any, int] | None
210435
210651
  :param region_type: The region type the callback draws in; usually WINDOW. (`bpy.types.Region.type`)
@@ -210751,7 +210967,7 @@ class SpaceOutliner(Space, bpy_struct):
210751
210967
  @classmethod
210752
210968
  def draw_handler_add(
210753
210969
  cls,
210754
- callback: collections.abc.Callable | None,
210970
+ callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None,
210755
210971
  args: tuple[typing.Any, int] | None,
210756
210972
  region_type: str | None,
210757
210973
  draw_type: str | None,
@@ -210762,7 +210978,7 @@ class SpaceOutliner(Space, bpy_struct):
210762
210978
 
210763
210979
  :param callback: A function that will be called when the region is drawn.
210764
210980
  It gets the specified arguments as input, it's return value is ignored.
210765
- :type callback: collections.abc.Callable | None
210981
+ :type callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None
210766
210982
  :param args: Arguments that will be passed to the callback.
210767
210983
  :type args: tuple[typing.Any, int] | None
210768
210984
  :param region_type: The region type the callback draws in; usually WINDOW. (`bpy.types.Region.type`)
@@ -210823,7 +211039,7 @@ class SpacePreferences(Space, bpy_struct):
210823
211039
  @classmethod
210824
211040
  def draw_handler_add(
210825
211041
  cls,
210826
- callback: collections.abc.Callable | None,
211042
+ callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None,
210827
211043
  args: tuple[typing.Any, int] | None,
210828
211044
  region_type: str | None,
210829
211045
  draw_type: str | None,
@@ -210834,7 +211050,7 @@ class SpacePreferences(Space, bpy_struct):
210834
211050
 
210835
211051
  :param callback: A function that will be called when the region is drawn.
210836
211052
  It gets the specified arguments as input, it's return value is ignored.
210837
- :type callback: collections.abc.Callable | None
211053
+ :type callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None
210838
211054
  :param args: Arguments that will be passed to the callback.
210839
211055
  :type args: tuple[typing.Any, int] | None
210840
211056
  :param region_type: The region type the callback draws in; usually WINDOW. (`bpy.types.Region.type`)
@@ -210938,7 +211154,7 @@ class SpaceProperties(Space, bpy_struct):
210938
211154
  @classmethod
210939
211155
  def draw_handler_add(
210940
211156
  cls,
210941
- callback: collections.abc.Callable | None,
211157
+ callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None,
210942
211158
  args: tuple[typing.Any, int] | None,
210943
211159
  region_type: str | None,
210944
211160
  draw_type: str | None,
@@ -210949,7 +211165,7 @@ class SpaceProperties(Space, bpy_struct):
210949
211165
 
210950
211166
  :param callback: A function that will be called when the region is drawn.
210951
211167
  It gets the specified arguments as input, it's return value is ignored.
210952
- :type callback: collections.abc.Callable | None
211168
+ :type callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None
210953
211169
  :param args: Arguments that will be passed to the callback.
210954
211170
  :type args: tuple[typing.Any, int] | None
210955
211171
  :param region_type: The region type the callback draws in; usually WINDOW. (`bpy.types.Region.type`)
@@ -211194,7 +211410,7 @@ class SpaceSequenceEditor(Space, bpy_struct):
211194
211410
  @classmethod
211195
211411
  def draw_handler_add(
211196
211412
  cls,
211197
- callback: collections.abc.Callable | None,
211413
+ callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None,
211198
211414
  args: tuple[typing.Any, int] | None,
211199
211415
  region_type: str | None,
211200
211416
  draw_type: str | None,
@@ -211205,7 +211421,7 @@ class SpaceSequenceEditor(Space, bpy_struct):
211205
211421
 
211206
211422
  :param callback: A function that will be called when the region is drawn.
211207
211423
  It gets the specified arguments as input, it's return value is ignored.
211208
- :type callback: collections.abc.Callable | None
211424
+ :type callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None
211209
211425
  :param args: Arguments that will be passed to the callback.
211210
211426
  :type args: tuple[typing.Any, int] | None
211211
211427
  :param region_type: The region type the callback draws in; usually WINDOW. (`bpy.types.Region.type`)
@@ -211338,7 +211554,7 @@ class SpaceSpreadsheet(Space, bpy_struct):
211338
211554
  @classmethod
211339
211555
  def draw_handler_add(
211340
211556
  cls,
211341
- callback: collections.abc.Callable | None,
211557
+ callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None,
211342
211558
  args: tuple[typing.Any, int] | None,
211343
211559
  region_type: str | None,
211344
211560
  draw_type: str | None,
@@ -211349,7 +211565,7 @@ class SpaceSpreadsheet(Space, bpy_struct):
211349
211565
 
211350
211566
  :param callback: A function that will be called when the region is drawn.
211351
211567
  It gets the specified arguments as input, it's return value is ignored.
211352
- :type callback: collections.abc.Callable | None
211568
+ :type callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None
211353
211569
  :param args: Arguments that will be passed to the callback.
211354
211570
  :type args: tuple[typing.Any, int] | None
211355
211571
  :param region_type: The region type the callback draws in; usually WINDOW. (`bpy.types.Region.type`)
@@ -211538,7 +211754,7 @@ class SpaceTextEditor(Space, bpy_struct):
211538
211754
  @classmethod
211539
211755
  def draw_handler_add(
211540
211756
  cls,
211541
- callback: collections.abc.Callable | None,
211757
+ callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None,
211542
211758
  args: tuple[typing.Any, int] | None,
211543
211759
  region_type: str | None,
211544
211760
  draw_type: str | None,
@@ -211549,7 +211765,7 @@ class SpaceTextEditor(Space, bpy_struct):
211549
211765
 
211550
211766
  :param callback: A function that will be called when the region is drawn.
211551
211767
  It gets the specified arguments as input, it's return value is ignored.
211552
- :type callback: collections.abc.Callable | None
211768
+ :type callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None
211553
211769
  :param args: Arguments that will be passed to the callback.
211554
211770
  :type args: tuple[typing.Any, int] | None
211555
211771
  :param region_type: The region type the callback draws in; usually WINDOW. (`bpy.types.Region.type`)
@@ -212243,7 +212459,7 @@ class SpaceView3D(Space, bpy_struct):
212243
212459
  @classmethod
212244
212460
  def draw_handler_add(
212245
212461
  cls,
212246
- callback: collections.abc.Callable | None,
212462
+ callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None,
212247
212463
  args: tuple[typing.Any, int] | None,
212248
212464
  region_type: str | None,
212249
212465
  draw_type: str | None,
@@ -212254,7 +212470,7 @@ class SpaceView3D(Space, bpy_struct):
212254
212470
 
212255
212471
  :param callback: A function that will be called when the region is drawn.
212256
212472
  It gets the specified arguments as input, it's return value is ignored.
212257
- :type callback: collections.abc.Callable | None
212473
+ :type callback: collections.abc.Callable[[typing.Any, int], typing.Any] | None
212258
212474
  :param args: Arguments that will be passed to the callback.
212259
212475
  :type args: tuple[typing.Any, int] | None
212260
212476
  :param region_type: The region type the callback draws in; usually WINDOW. (`bpy.types.Region.type`)
@@ -230381,7 +230597,10 @@ class WindowManager(ID, bpy_struct):
230381
230597
  @classmethod
230382
230598
  def draw_cursor_add(
230383
230599
  cls,
230384
- callback: collections.abc.Callable | None,
230600
+ callback: collections.abc.Callable[
230601
+ [typing.Any, int, tuple[int, int]], typing.Any
230602
+ ]
230603
+ | None,
230385
230604
  args: tuple[typing.Any, int] | None,
230386
230605
  space_type: str | None,
230387
230606
  region_type: str | None,
@@ -230392,7 +230611,7 @@ class WindowManager(ID, bpy_struct):
230392
230611
 
230393
230612
  :param callback: A function that will be called when the cursor is drawn.
230394
230613
  It gets the specified arguments as input with the mouse position (tuple) as last argument.
230395
- :type callback: collections.abc.Callable | None
230614
+ :type callback: collections.abc.Callable[[typing.Any, int, tuple[int, int]], typing.Any] | None
230396
230615
  :param args: Arguments that will be passed to the callback.
230397
230616
  :type args: tuple[typing.Any, int] | None
230398
230617
  :param space_type: The space type the callback draws in; for example VIEW_3D. (`bpy.types.Space.type`)