fake-bge-module-latest 20250104__py3-none-any.whl → 20250201__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.
- addon_utils/__init__.pyi +11 -6
- aud/__init__.pyi +4 -0
- bge/types/__init__.pyi +66 -27
- bgl/__init__.pyi +2 -2
- bgui/image/__init__.pyi +3 -1
- bgui/system/__init__.pyi +12 -4
- bl_console_utils/autocomplete/complete_calltip/__init__.pyi +5 -2
- bl_console_utils/autocomplete/complete_import/__init__.pyi +6 -3
- bl_console_utils/autocomplete/complete_namespace/__init__.pyi +2 -1
- bl_console_utils/autocomplete/intellisense/__init__.pyi +8 -2
- bl_operators/node/__init__.pyi +78 -0
- bl_ui/anim/__init__.pyi +6 -0
- bl_ui/generic_ui_list/__init__.pyi +2 -2
- bl_ui/node_add_menu_shader/__init__.pyi +0 -1
- bl_ui/node_add_menu_texture/__init__.pyi +1 -0
- bl_ui/properties_data_camera/__init__.pyi +0 -2
- bl_ui/properties_mask_common/__init__.pyi +17 -0
- bl_ui/properties_material_gpencil/__init__.pyi +29 -0
- bl_ui/properties_scene/__init__.pyi +6 -0
- bl_ui/properties_view_layer/__init__.pyi +1 -0
- bl_ui/space_clip/__init__.pyi +53 -0
- bl_ui/space_graph/__init__.pyi +2 -0
- bl_ui/space_image/__init__.pyi +25 -0
- bl_ui/space_node/__init__.pyi +0 -1
- bl_ui/space_sequencer/__init__.pyi +2 -1
- blf/__init__.pyi +6 -3
- bmesh/ops/__init__.pyi +111 -54
- bmesh/types/__init__.pyi +134 -46
- bmesh/utils/__init__.pyi +17 -5
- bpy/__init__.pyi +1 -2
- bpy/_typing/__init__.pyi +4 -0
- bpy/{typing → _typing/rna_enums}/__init__.pyi +36 -36
- bpy/app/__init__.pyi +13 -5
- bpy/app/handlers/__init__.pyi +4 -2
- bpy/app/icons/__init__.pyi +6 -2
- bpy/app/translations/__init__.pyi +17 -8
- bpy/msgbus/__init__.pyi +14 -2
- bpy/ops/action/__init__.pyi +51 -151
- bpy/ops/anim/__init__.pyi +61 -179
- bpy/ops/armature/__init__.pyi +48 -147
- bpy/ops/asset/__init__.pyi +16 -71
- bpy/ops/boid/__init__.pyi +11 -44
- bpy/ops/brush/__init__.pyi +16 -42
- bpy/ops/buttons/__init__.pyi +6 -29
- bpy/ops/cachefile/__init__.pyi +5 -19
- bpy/ops/camera/__init__.pyi +2 -5
- bpy/ops/clip/__init__.pyi +95 -293
- bpy/ops/cloth/__init__.pyi +1 -3
- bpy/ops/collection/__init__.pyi +10 -26
- bpy/ops/console/__init__.pyi +21 -79
- bpy/ops/constraint/__init__.pyi +18 -45
- bpy/ops/curve/__init__.pyi +57 -186
- bpy/ops/curves/__init__.pyi +37 -109
- bpy/ops/cycles/__init__.pyi +3 -9
- bpy/ops/dpaint/__init__.pyi +8 -22
- bpy/ops/ed/__init__.pyi +20 -52
- bpy/ops/export_anim/__init__.pyi +1 -3
- bpy/ops/export_scene/__init__.pyi +55 -32
- bpy/ops/extensions/__init__.pyi +34 -110
- bpy/ops/file/__init__.pyi +40 -167
- bpy/ops/fluid/__init__.pyi +14 -77
- bpy/ops/font/__init__.pyi +23 -85
- bpy/ops/geometry/__init__.pyi +29 -46
- bpy/ops/gizmogroup/__init__.pyi +2 -9
- bpy/ops/gpencil/__init__.pyi +8 -32
- bpy/ops/graph/__init__.pyi +82 -201
- bpy/ops/grease_pencil/__init__.pyi +125 -324
- bpy/ops/image/__init__.pyi +61 -163
- bpy/ops/import_anim/__init__.pyi +1 -3
- bpy/ops/import_curve/__init__.pyi +1 -3
- bpy/ops/import_scene/__init__.pyi +4 -6
- bpy/ops/info/__init__.pyi +7 -29
- bpy/ops/lattice/__init__.pyi +11 -32
- bpy/ops/logic/__init__.pyi +26 -65
- bpy/ops/marker/__init__.pyi +11 -31
- bpy/ops/mask/__init__.pyi +39 -132
- bpy/ops/material/__init__.pyi +3 -19
- bpy/ops/mball/__init__.pyi +8 -19
- bpy/ops/mesh/__init__.pyi +223 -470
- bpy/ops/nla/__init__.pyi +42 -150
- bpy/ops/node/__init__.pyi +169 -393
- bpy/ops/object/__init__.pyi +320 -749
- bpy/ops/outliner/__init__.pyi +76 -268
- bpy/ops/paint/__init__.pyi +67 -147
- bpy/ops/paintcurve/__init__.pyi +8 -33
- bpy/ops/palette/__init__.pyi +7 -27
- bpy/ops/particle/__init__.pyi +39 -134
- bpy/ops/pose/__init__.pyi +64 -182
- bpy/ops/poselib/__init__.pyi +9 -33
- bpy/ops/preferences/__init__.pyi +35 -94
- bpy/ops/ptcache/__init__.pyi +7 -33
- bpy/ops/render/__init__.pyi +13 -37
- bpy/ops/rigidbody/__init__.pyi +22 -54
- bpy/ops/scene/__init__.pyi +47 -130
- bpy/ops/screen/__init__.pyi +46 -144
- bpy/ops/script/__init__.pyi +3 -11
- bpy/ops/sculpt/__init__.pyi +40 -94
- bpy/ops/sculpt_curves/__init__.pyi +4 -10
- bpy/ops/sequencer/__init__.pyi +104 -327
- bpy/ops/sound/__init__.pyi +17 -28
- bpy/ops/spreadsheet/__init__.pyi +4 -15
- bpy/ops/surface/__init__.pyi +6 -13
- bpy/ops/text/__init__.pyi +43 -175
- bpy/ops/text_editor/__init__.pyi +1 -3
- bpy/ops/texture/__init__.pyi +4 -21
- bpy/ops/transform/__init__.pyi +114 -134
- bpy/ops/ui/__init__.pyi +39 -120
- bpy/ops/uilist/__init__.pyi +3 -7
- bpy/ops/uv/__init__.pyi +58 -143
- bpy/ops/view2d/__init__.pyi +14 -39
- bpy/ops/view3d/__init__.pyi +68 -238
- bpy/ops/wm/__init__.pyi +178 -319
- bpy/ops/workspace/__init__.pyi +7 -33
- bpy/ops/world/__init__.pyi +2 -11
- bpy/path/__init__.pyi +16 -6
- bpy/props/__init__.pyi +157 -127
- bpy/types/__init__.pyi +35227 -34838
- bpy/utils/__init__.pyi +71 -25
- bpy/utils/previews/__init__.pyi +2 -1
- bpy/utils/units/__init__.pyi +2 -1
- bpy_extras/anim_utils/__init__.pyi +11 -3
- bpy_extras/bmesh_utils/__init__.pyi +2 -1
- bpy_extras/image_utils/__init__.pyi +5 -2
- bpy_extras/io_utils/__init__.pyi +12 -5
- bpy_extras/mesh_utils/__init__.pyi +27 -6
- bpy_extras/object_utils/__init__.pyi +6 -5
- bpy_extras/view3d_utils/__init__.pyi +9 -2
- {fake_bge_module_latest-20250104.dist-info → fake_bge_module_latest-20250201.dist-info}/METADATA +3 -3
- {fake_bge_module_latest-20250104.dist-info → fake_bge_module_latest-20250201.dist-info}/RECORD +153 -152
- {fake_bge_module_latest-20250104.dist-info → fake_bge_module_latest-20250201.dist-info}/WHEEL +1 -1
- freestyle/chainingiterators/__init__.pyi +7 -2
- freestyle/functions/__init__.pyi +16 -4
- freestyle/shaders/__init__.pyi +5 -1
- freestyle/types/__init__.pyi +103 -30
- freestyle/utils/ContextFunctions/__init__.pyi +2 -2
- freestyle/utils/__init__.pyi +2 -1
- gpu/capabilities/__init__.pyi +2 -1
- gpu/matrix/__init__.pyi +4 -2
- gpu/state/__init__.pyi +2 -2
- gpu/types/__init__.pyi +40 -8
- gpu_extras/batch/__init__.pyi +13 -1
- gpu_extras/presets/__init__.pyi +10 -1
- idprop/types/__init__.pyi +4 -2
- imbuf/__init__.pyi +6 -3
- imbuf/types/__init__.pyi +5 -2
- mathutils/__init__.pyi +126 -35
- mathutils/bvhtree/__init__.pyi +21 -6
- mathutils/geometry/__init__.pyi +68 -22
- mathutils/interpolate/__init__.pyi +5 -1
- mathutils/kdtree/__init__.pyi +21 -8
- mathutils/noise/__init__.pyi +2 -1
- rna_info/__init__.pyi +2 -1
- {fake_bge_module_latest-20250104.dist-info → fake_bge_module_latest-20250201.dist-info}/top_level.txt +0 -0
addon_utils/__init__.pyi
CHANGED
|
@@ -6,12 +6,13 @@ class _ext_global:
|
|
|
6
6
|
idmap_pair: typing.Any
|
|
7
7
|
module_handle: typing.Any
|
|
8
8
|
|
|
9
|
-
def check(module_name: str):
|
|
9
|
+
def check(module_name: str) -> tuple[bool, bool]:
|
|
10
10
|
"""Returns the loaded state of the addon.
|
|
11
11
|
|
|
12
12
|
:param module_name: The name of the addon and module.
|
|
13
13
|
:type module_name: str
|
|
14
14
|
:return: (loaded_default, loaded_state)
|
|
15
|
+
:rtype: tuple[bool, bool]
|
|
15
16
|
"""
|
|
16
17
|
|
|
17
18
|
def check_extension(module_name):
|
|
@@ -22,7 +23,7 @@ def disable(
|
|
|
22
23
|
*,
|
|
23
24
|
default_set: bool = False,
|
|
24
25
|
refresh_handled=False,
|
|
25
|
-
handle_error: collections.abc.Callable | None = None,
|
|
26
|
+
handle_error: None | collections.abc.Callable[None] | None = None,
|
|
26
27
|
):
|
|
27
28
|
"""Disables an addon by name.
|
|
28
29
|
|
|
@@ -31,7 +32,7 @@ def disable(
|
|
|
31
32
|
:param default_set: Set the user-preference.
|
|
32
33
|
:type default_set: bool
|
|
33
34
|
:param handle_error: Called in the case of an error, taking an exception argument.
|
|
34
|
-
:type handle_error: collections.abc.Callable | None
|
|
35
|
+
:type handle_error: None | collections.abc.Callable[None] | None
|
|
35
36
|
"""
|
|
36
37
|
|
|
37
38
|
def disable_all(): ...
|
|
@@ -41,7 +42,7 @@ def enable(
|
|
|
41
42
|
default_set: bool = False,
|
|
42
43
|
persistent: bool = False,
|
|
43
44
|
refresh_handled: bool = False,
|
|
44
|
-
handle_error: collections.abc.Callable | None = None,
|
|
45
|
+
handle_error: None | collections.abc.Callable[None] | None = None,
|
|
45
46
|
):
|
|
46
47
|
"""Enables an addon by name.
|
|
47
48
|
|
|
@@ -56,11 +57,14 @@ def enable(
|
|
|
56
57
|
This should be used to avoid many calls to refresh extensions when enabling multiple add-ons at once.
|
|
57
58
|
:type refresh_handled: bool
|
|
58
59
|
:param handle_error: Called in the case of an error, taking an exception argument.
|
|
59
|
-
:type handle_error: collections.abc.Callable | None
|
|
60
|
+
:type handle_error: None | collections.abc.Callable[None] | None
|
|
60
61
|
:return: the loaded module or None on failure.
|
|
61
62
|
"""
|
|
62
63
|
|
|
63
|
-
def extensions_refresh(
|
|
64
|
+
def extensions_refresh(
|
|
65
|
+
ensure_wheels: bool = True,
|
|
66
|
+
addon_modules_pending: None | collections.abc.Sequence[str] | None = None,
|
|
67
|
+
):
|
|
64
68
|
"""Ensure data relating to extensions is up to date.
|
|
65
69
|
This should be called after extensions on the file-system have changed.
|
|
66
70
|
|
|
@@ -68,6 +72,7 @@ def extensions_refresh(ensure_wheels: bool = True, addon_modules_pending=None):
|
|
|
68
72
|
:type ensure_wheels: bool
|
|
69
73
|
:param addon_modules_pending: Refresh these add-ons by listing their package names, as if they are enabled.
|
|
70
74
|
This is needed so wheels can be setup before the add-on is enabled.
|
|
75
|
+
:type addon_modules_pending: None | collections.abc.Sequence[str] | None
|
|
71
76
|
"""
|
|
72
77
|
|
|
73
78
|
def module_bl_info(mod, *, info_basis=None): ...
|
aud/__init__.pyi
CHANGED
bge/types/__init__.pyi
CHANGED
|
@@ -448,12 +448,13 @@ class BL_Shader:
|
|
|
448
448
|
objectCallbacks: typing.Any
|
|
449
449
|
bindCallbacks: typing.Any
|
|
450
450
|
|
|
451
|
-
def setUniformfv(self, name: str, fList):
|
|
451
|
+
def setUniformfv(self, name: str, fList: list[float]):
|
|
452
452
|
"""Set a uniform with a list of float values
|
|
453
453
|
|
|
454
454
|
:param name: the uniform name
|
|
455
455
|
:type name: str
|
|
456
456
|
:param fList: a list (2, 3 or 4 elements) of float values
|
|
457
|
+
:type fList: list[float]
|
|
457
458
|
"""
|
|
458
459
|
|
|
459
460
|
def delSource(self): ...
|
|
@@ -633,12 +634,13 @@ class BL_Shader:
|
|
|
633
634
|
:type transpose: bool
|
|
634
635
|
"""
|
|
635
636
|
|
|
636
|
-
def setUniformiv(self, name: str, iList):
|
|
637
|
+
def setUniformiv(self, name: str, iList: list[int]):
|
|
637
638
|
"""Set a uniform with a list of integer values
|
|
638
639
|
|
|
639
640
|
:param name: the uniform name
|
|
640
641
|
:type name: str
|
|
641
642
|
:param iList: a list (2, 3 or 4 elements) of integer values
|
|
643
|
+
:type iList: list[int]
|
|
642
644
|
"""
|
|
643
645
|
|
|
644
646
|
def setUniformEyef(self, name):
|
|
@@ -2779,12 +2781,13 @@ class KX_VehicleWrapper:
|
|
|
2779
2781
|
:return: TODO Description
|
|
2780
2782
|
"""
|
|
2781
2783
|
|
|
2782
|
-
def getWheelPosition(self, wheelIndex: int):
|
|
2784
|
+
def getWheelPosition(self, wheelIndex: int) -> list:
|
|
2783
2785
|
"""Returns the position of the specified wheel
|
|
2784
2786
|
|
|
2785
2787
|
:param wheelIndex: the wheel index
|
|
2786
2788
|
:type wheelIndex: int
|
|
2787
2789
|
:return: position vector
|
|
2790
|
+
:rtype: list
|
|
2788
2791
|
"""
|
|
2789
2792
|
|
|
2790
2793
|
def getWheelRotation(self, wheelIndex: int) -> float:
|
|
@@ -3638,11 +3641,17 @@ The first 2 values are used by most joysticks and gamepads for directional contr
|
|
|
3638
3641
|
:type: int
|
|
3639
3642
|
"""
|
|
3640
3643
|
|
|
3641
|
-
axis:
|
|
3642
|
-
""" The axis this sensor reacts to, as a list of two values [axisIndex, axisDirection]
|
|
3644
|
+
axis: [int, int]
|
|
3645
|
+
""" The axis this sensor reacts to, as a list of two values [axisIndex, axisDirection]
|
|
3646
|
+
|
|
3647
|
+
:type: [int, int]
|
|
3648
|
+
"""
|
|
3649
|
+
|
|
3650
|
+
hat: [int, int]
|
|
3651
|
+
""" The hat the sensor reacts to, as a list of two values: [hatIndex, hatDirection]Use `button` instead.0.2.2
|
|
3643
3652
|
|
|
3644
|
-
|
|
3645
|
-
"""
|
|
3653
|
+
:type: [int, int]
|
|
3654
|
+
"""
|
|
3646
3655
|
|
|
3647
3656
|
def getButtonActiveList(self) -> list:
|
|
3648
3657
|
"""
|
|
@@ -3699,8 +3708,11 @@ class SCA_KeyboardSensor:
|
|
|
3699
3708
|
:type: bool
|
|
3700
3709
|
"""
|
|
3701
3710
|
|
|
3702
|
-
inputs:
|
|
3703
|
-
""" A list of pressed input keys that have either been pressed, or just released, or are active this frame. (read-only).
|
|
3711
|
+
inputs: dict
|
|
3712
|
+
""" A list of pressed input keys that have either been pressed, or just released, or are active this frame. (read-only).
|
|
3713
|
+
|
|
3714
|
+
:type: dict
|
|
3715
|
+
"""
|
|
3704
3716
|
|
|
3705
3717
|
events: typing.Any
|
|
3706
3718
|
""" a list of pressed keys that have either been pressed, or just released, or are active this frame. (read-only).Use `inputs`0.2.2"""
|
|
@@ -3839,8 +3851,11 @@ objects in the scene. Only those objects for which collisionGroup & mask is true
|
|
|
3839
3851
|
class SCA_MouseSensor:
|
|
3840
3852
|
"""Mouse Sensor logic brick."""
|
|
3841
3853
|
|
|
3842
|
-
position:
|
|
3843
|
-
""" current [x, y] coordinates of the mouse, in frame coordinates (pixels).
|
|
3854
|
+
position: [int, int]
|
|
3855
|
+
""" current [x, y] coordinates of the mouse, in frame coordinates (pixels).
|
|
3856
|
+
|
|
3857
|
+
:type: [int, int]
|
|
3858
|
+
"""
|
|
3844
3859
|
|
|
3845
3860
|
mode: int
|
|
3846
3861
|
""" sensor mode. one of the following constants:
|
|
@@ -4198,17 +4213,29 @@ The first 2 values are used by most joysticks and gamepads for directional contr
|
|
|
4198
4213
|
class SCA_PythonKeyboard:
|
|
4199
4214
|
"""The current keyboard."""
|
|
4200
4215
|
|
|
4201
|
-
inputs:
|
|
4202
|
-
""" A dictionary containing the input of each keyboard key. (read-only).
|
|
4216
|
+
inputs: dict
|
|
4217
|
+
""" A dictionary containing the input of each keyboard key. (read-only).
|
|
4203
4218
|
|
|
4204
|
-
|
|
4205
|
-
"""
|
|
4219
|
+
:type: dict
|
|
4220
|
+
"""
|
|
4221
|
+
|
|
4222
|
+
events: dict
|
|
4223
|
+
""" A dictionary containing the status of each keyboard event or key. (read-only).Use `inputs`.0.2.2
|
|
4224
|
+
|
|
4225
|
+
:type: dict
|
|
4226
|
+
"""
|
|
4206
4227
|
|
|
4207
|
-
activeInputs:
|
|
4208
|
-
""" A dictionary containing the input of only the active keyboard keys. (read-only).
|
|
4228
|
+
activeInputs: dict
|
|
4229
|
+
""" A dictionary containing the input of only the active keyboard keys. (read-only).
|
|
4209
4230
|
|
|
4210
|
-
|
|
4211
|
-
"""
|
|
4231
|
+
:type: dict
|
|
4232
|
+
"""
|
|
4233
|
+
|
|
4234
|
+
active_events: dict
|
|
4235
|
+
""" A dictionary containing the status of only the active keyboard events or keys. (read-only).Use `activeInputs`.0.2.2
|
|
4236
|
+
|
|
4237
|
+
:type: dict
|
|
4238
|
+
"""
|
|
4212
4239
|
|
|
4213
4240
|
text: str
|
|
4214
4241
|
""" The typed unicode text from the last frame.
|
|
@@ -4233,17 +4260,29 @@ class SCA_PythonKeyboard:
|
|
|
4233
4260
|
class SCA_PythonMouse:
|
|
4234
4261
|
"""The current mouse."""
|
|
4235
4262
|
|
|
4236
|
-
inputs:
|
|
4237
|
-
""" A dictionary containing the input of each mouse event. (read-only).
|
|
4263
|
+
inputs: dict
|
|
4264
|
+
""" A dictionary containing the input of each mouse event. (read-only).
|
|
4238
4265
|
|
|
4239
|
-
|
|
4240
|
-
"""
|
|
4266
|
+
:type: dict
|
|
4267
|
+
"""
|
|
4241
4268
|
|
|
4242
|
-
|
|
4243
|
-
"""
|
|
4269
|
+
events: dict
|
|
4270
|
+
""" a dictionary containing the status of each mouse event. (read-only).Use `inputs`.0.2.2
|
|
4244
4271
|
|
|
4245
|
-
|
|
4246
|
-
"""
|
|
4272
|
+
:type: dict
|
|
4273
|
+
"""
|
|
4274
|
+
|
|
4275
|
+
activeInputs: dict
|
|
4276
|
+
""" A dictionary containing the input of only the active mouse events. (read-only).
|
|
4277
|
+
|
|
4278
|
+
:type: dict
|
|
4279
|
+
"""
|
|
4280
|
+
|
|
4281
|
+
active_events: dict
|
|
4282
|
+
""" a dictionary containing the status of only the active mouse events. (read-only).Use `activeInputs`.0.2.2
|
|
4283
|
+
|
|
4284
|
+
:type: dict
|
|
4285
|
+
"""
|
|
4247
4286
|
|
|
4248
4287
|
position: typing.Any
|
|
4249
4288
|
""" The normalized x and y position of the mouse cursor."""
|
bgl/__init__.pyi
CHANGED
|
@@ -476,10 +476,10 @@ def glCreateProgram() -> int:
|
|
|
476
476
|
:rtype: int
|
|
477
477
|
"""
|
|
478
478
|
|
|
479
|
-
def glCreateShader(shaderType: GL_GEOMETRY_SHADER) -> int:
|
|
479
|
+
def glCreateShader(shaderType: GL_GEOMETRY_SHADER | typing.Any) -> int:
|
|
480
480
|
"""Creates a shader object.`OpenGL Docs <https://khronos.org/registry/OpenGL-Refpages/gl4/html/glCreateShader.xhtml>`__
|
|
481
481
|
|
|
482
|
-
:type shaderType: GL_GEOMETRY_SHADER
|
|
482
|
+
:type shaderType: GL_GEOMETRY_SHADER | typing.Any
|
|
483
483
|
:return: 0 if an error occurs.
|
|
484
484
|
:rtype: int
|
|
485
485
|
"""
|
bgui/image/__init__.pyi
CHANGED
|
@@ -21,8 +21,10 @@ class Image(bgui.widget.Widget):
|
|
|
21
21
|
theme_options: typing.Any
|
|
22
22
|
theme_section: typing.Any
|
|
23
23
|
|
|
24
|
-
def update_image(self, img):
|
|
24
|
+
def update_image(self, img) -> None:
|
|
25
25
|
"""Changes the image texture
|
|
26
26
|
|
|
27
27
|
:param img: the path to the new image
|
|
28
|
+
:return:
|
|
29
|
+
:rtype: None
|
|
28
30
|
"""
|
bgui/system/__init__.pyi
CHANGED
|
@@ -24,19 +24,27 @@ class System(bgui.widget.Widget):
|
|
|
24
24
|
theme_options: typing.Any
|
|
25
25
|
theme_section: typing.Any
|
|
26
26
|
|
|
27
|
-
def render(self):
|
|
28
|
-
"""Renders the GUI system
|
|
27
|
+
def render(self) -> None:
|
|
28
|
+
"""Renders the GUI system
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
:return:
|
|
31
|
+
:rtype: None
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
def update_keyboard(self, key, is_shifted) -> None:
|
|
31
35
|
"""Updates the system's keyboard data
|
|
32
36
|
|
|
33
37
|
:param key: the key being input
|
|
34
38
|
:param is_shifted: is the shift key held down?
|
|
39
|
+
:return:
|
|
40
|
+
:rtype: None
|
|
35
41
|
"""
|
|
36
42
|
|
|
37
|
-
def update_mouse(self, pos, click_state=0):
|
|
43
|
+
def update_mouse(self, pos, click_state=0) -> None:
|
|
38
44
|
"""Updates the system's mouse data
|
|
39
45
|
|
|
40
46
|
:param pos: the mouse position
|
|
41
47
|
:param click_state: the current state of the mouse
|
|
48
|
+
:return:
|
|
49
|
+
:rtype: None
|
|
42
50
|
"""
|
|
@@ -2,7 +2,9 @@ import typing
|
|
|
2
2
|
import collections.abc
|
|
3
3
|
import typing_extensions
|
|
4
4
|
|
|
5
|
-
def complete(
|
|
5
|
+
def complete(
|
|
6
|
+
line: str, cursor: int, namespace: dict[str, typing.Any]
|
|
7
|
+
) -> tuple[str, str, str]:
|
|
6
8
|
"""Complete callable with call-tip.
|
|
7
9
|
|
|
8
10
|
:param line: incomplete text line
|
|
@@ -10,8 +12,9 @@ def complete(line: str, cursor: int, namespace) -> str:
|
|
|
10
12
|
:param cursor: current character position
|
|
11
13
|
:type cursor: int
|
|
12
14
|
:param namespace: namespace
|
|
15
|
+
:type namespace: dict[str, typing.Any]
|
|
13
16
|
:return: (matches, world, scrollback)
|
|
14
|
-
:rtype: str
|
|
17
|
+
:rtype: tuple[str, str, str]
|
|
15
18
|
"""
|
|
16
19
|
|
|
17
20
|
def get_argspec(
|
|
@@ -2,7 +2,7 @@ import typing
|
|
|
2
2
|
import collections.abc
|
|
3
3
|
import typing_extensions
|
|
4
4
|
|
|
5
|
-
def complete(line: str):
|
|
5
|
+
def complete(line: str) -> list[str]:
|
|
6
6
|
"""Returns a list containing the completion possibilities for an import line.
|
|
7
7
|
|
|
8
8
|
:param line: incomplete line which contains an import statement:
|
|
@@ -11,20 +11,23 @@ def complete(line: str):
|
|
|
11
11
|
from xml.dom import
|
|
12
12
|
:type line: str
|
|
13
13
|
:return: list of completion possibilities
|
|
14
|
+
:rtype: list[str]
|
|
14
15
|
"""
|
|
15
16
|
|
|
16
|
-
def get_root_modules():
|
|
17
|
+
def get_root_modules() -> list:
|
|
17
18
|
"""Returns a list containing the names of all the modules available in the
|
|
18
19
|
folders of the python-path.
|
|
19
20
|
|
|
20
21
|
:return: modules
|
|
22
|
+
:rtype: list
|
|
21
23
|
"""
|
|
22
24
|
|
|
23
|
-
def module_list(path: str):
|
|
25
|
+
def module_list(path: str) -> list:
|
|
24
26
|
"""Return the list containing the names of the modules available in
|
|
25
27
|
the given folder.
|
|
26
28
|
|
|
27
29
|
:param path: folder path
|
|
28
30
|
:type path: str
|
|
29
31
|
:return: modules
|
|
32
|
+
:rtype: list
|
|
30
33
|
"""
|
|
@@ -32,12 +32,13 @@ def complete_indices(
|
|
|
32
32
|
:rtype: list[str]
|
|
33
33
|
"""
|
|
34
34
|
|
|
35
|
-
def complete_names(word: str, namespace) -> list[str]:
|
|
35
|
+
def complete_names(word: str, namespace: dict[str, typing.Any]) -> list[str]:
|
|
36
36
|
"""Complete variable names or attributes
|
|
37
37
|
|
|
38
38
|
:param word: word to be completed
|
|
39
39
|
:type word: str
|
|
40
40
|
:param namespace: namespace
|
|
41
|
+
:type namespace: dict[str, typing.Any]
|
|
41
42
|
:return: completion matches
|
|
42
43
|
:rtype: list[str]
|
|
43
44
|
"""
|
|
@@ -2,7 +2,9 @@ import typing
|
|
|
2
2
|
import collections.abc
|
|
3
3
|
import typing_extensions
|
|
4
4
|
|
|
5
|
-
def complete(
|
|
5
|
+
def complete(
|
|
6
|
+
line: str, cursor: int, namespace: dict, private: bool
|
|
7
|
+
) -> tuple[list[str], str]:
|
|
6
8
|
"""Returns a list of possible completions:
|
|
7
9
|
|
|
8
10
|
:param line: incomplete text line
|
|
@@ -14,9 +16,12 @@ def complete(line: str, cursor: int, namespace: dict, private: bool):
|
|
|
14
16
|
:param private: whether private variables should be listed
|
|
15
17
|
:type private: bool
|
|
16
18
|
:return: list of completions, word
|
|
19
|
+
:rtype: tuple[list[str], str]
|
|
17
20
|
"""
|
|
18
21
|
|
|
19
|
-
def expand(
|
|
22
|
+
def expand(
|
|
23
|
+
line: str, cursor: int, namespace: dict[str, typing.Any], *, private: bool = True
|
|
24
|
+
) -> int | str:
|
|
20
25
|
"""This method is invoked when the user asks auto-completion,
|
|
21
26
|
e.g. when Ctrl+Space is clicked.
|
|
22
27
|
|
|
@@ -25,6 +30,7 @@ def expand(line: str, cursor: int, namespace, *, private: bool = True) -> int |
|
|
|
25
30
|
:param cursor: current character position
|
|
26
31
|
:type cursor: int
|
|
27
32
|
:param namespace: namespace
|
|
33
|
+
:type namespace: dict[str, typing.Any]
|
|
28
34
|
:param private: whether private variables should be listed
|
|
29
35
|
:type private: bool
|
|
30
36
|
:return: current expanded line, updated cursor position and scrollback
|
bl_operators/node/__init__.pyi
CHANGED
|
@@ -322,6 +322,84 @@ class NODE_OT_tree_path_parent(bpy.types.Operator):
|
|
|
322
322
|
:param context:
|
|
323
323
|
"""
|
|
324
324
|
|
|
325
|
+
class NODE_OT_viewer_shortcut_get(bpy.types.Operator):
|
|
326
|
+
"""Activate a specific compositor viewer node using 1,2,..,9 keys"""
|
|
327
|
+
|
|
328
|
+
bl_idname: typing.Any
|
|
329
|
+
bl_label: typing.Any
|
|
330
|
+
bl_options: typing.Any
|
|
331
|
+
bl_rna: typing.Any
|
|
332
|
+
id_data: typing.Any
|
|
333
|
+
|
|
334
|
+
def bl_rna_get_subclass(self) -> bpy.types.Struct:
|
|
335
|
+
"""
|
|
336
|
+
|
|
337
|
+
:return: The RNA type or default when not found.
|
|
338
|
+
:rtype: bpy.types.Struct
|
|
339
|
+
"""
|
|
340
|
+
|
|
341
|
+
def bl_rna_get_subclass_py(self) -> typing.Any:
|
|
342
|
+
"""
|
|
343
|
+
|
|
344
|
+
:return: The class or default when not found.
|
|
345
|
+
:rtype: typing.Any
|
|
346
|
+
"""
|
|
347
|
+
|
|
348
|
+
def execute(self, context):
|
|
349
|
+
"""
|
|
350
|
+
|
|
351
|
+
:param context:
|
|
352
|
+
"""
|
|
353
|
+
|
|
354
|
+
@classmethod
|
|
355
|
+
def poll(cls, context):
|
|
356
|
+
"""
|
|
357
|
+
|
|
358
|
+
:param context:
|
|
359
|
+
"""
|
|
360
|
+
|
|
361
|
+
class NODE_OT_viewer_shortcut_set(bpy.types.Operator):
|
|
362
|
+
"""Create a compositor viewer shortcut for the selected node by pressing ctrl+1,2,..9"""
|
|
363
|
+
|
|
364
|
+
bl_idname: typing.Any
|
|
365
|
+
bl_label: typing.Any
|
|
366
|
+
bl_options: typing.Any
|
|
367
|
+
bl_rna: typing.Any
|
|
368
|
+
id_data: typing.Any
|
|
369
|
+
|
|
370
|
+
def bl_rna_get_subclass(self) -> bpy.types.Struct:
|
|
371
|
+
"""
|
|
372
|
+
|
|
373
|
+
:return: The RNA type or default when not found.
|
|
374
|
+
:rtype: bpy.types.Struct
|
|
375
|
+
"""
|
|
376
|
+
|
|
377
|
+
def bl_rna_get_subclass_py(self) -> typing.Any:
|
|
378
|
+
"""
|
|
379
|
+
|
|
380
|
+
:return: The class or default when not found.
|
|
381
|
+
:rtype: typing.Any
|
|
382
|
+
"""
|
|
383
|
+
|
|
384
|
+
def execute(self, context):
|
|
385
|
+
"""
|
|
386
|
+
|
|
387
|
+
:param context:
|
|
388
|
+
"""
|
|
389
|
+
|
|
390
|
+
def get_connected_viewer(self, node):
|
|
391
|
+
"""
|
|
392
|
+
|
|
393
|
+
:param node:
|
|
394
|
+
"""
|
|
395
|
+
|
|
396
|
+
@classmethod
|
|
397
|
+
def poll(cls, context):
|
|
398
|
+
"""
|
|
399
|
+
|
|
400
|
+
:param context:
|
|
401
|
+
"""
|
|
402
|
+
|
|
325
403
|
class NodeAddOperator:
|
|
326
404
|
def create_node(self, context, node_type):
|
|
327
405
|
"""
|
bl_ui/anim/__init__.pyi
CHANGED
|
@@ -27,3 +27,9 @@ class ANIM_MT_keyframe_insert_pie(bpy.types.Menu):
|
|
|
27
27
|
|
|
28
28
|
:param _context:
|
|
29
29
|
"""
|
|
30
|
+
|
|
31
|
+
def draw_action_and_slot_selector_for_id(layout, animated_id):
|
|
32
|
+
"""Draw the action and slot selector for an ID, using the given layout.The ID must be an animatable ID.Note that the slot selector is only drawn when the ID has an assigned
|
|
33
|
+
Action.
|
|
34
|
+
|
|
35
|
+
"""
|
|
@@ -118,7 +118,7 @@ class UILIST_OT_entry_remove(GenericUIListOperator, bpy.types.Operator):
|
|
|
118
118
|
|
|
119
119
|
def draw_ui_list(
|
|
120
120
|
layout: bpy.types.UILayout,
|
|
121
|
-
context: bpy.types.Context
|
|
121
|
+
context: bpy.types.Context,
|
|
122
122
|
class_name: str = "UI_UL_list",
|
|
123
123
|
*,
|
|
124
124
|
unique_id: str,
|
|
@@ -134,7 +134,7 @@ def draw_ui_list(
|
|
|
134
134
|
:param layout: UILayout to draw the list in.
|
|
135
135
|
:type layout: bpy.types.UILayout
|
|
136
136
|
:param context: Blender context to get the list data from.
|
|
137
|
-
:type context: bpy.types.Context
|
|
137
|
+
:type context: bpy.types.Context
|
|
138
138
|
:param class_name: Name of the UIList class to draw. The default is the UIList class that ships with Blender.
|
|
139
139
|
:type class_name: str
|
|
140
140
|
:param unique_id: Unique identifier to differentiate this from other UI lists.
|
|
@@ -287,7 +287,6 @@ class NODE_MT_shader_node_add_all(bpy.types.Menu):
|
|
|
287
287
|
def cycles_shader_nodes_poll(context): ...
|
|
288
288
|
def eevee_shader_nodes_poll(context): ...
|
|
289
289
|
def line_style_shader_nodes_poll(context): ...
|
|
290
|
-
def object_cycles_shader_nodes_poll(context): ...
|
|
291
290
|
def object_eevee_shader_nodes_poll(context): ...
|
|
292
291
|
def object_not_eevee_shader_nodes_poll(context): ...
|
|
293
292
|
def object_shader_nodes_poll(context): ...
|
|
@@ -155,6 +155,23 @@ class MASK_MT_visibility(bpy.types.Menu):
|
|
|
155
155
|
:param _context:
|
|
156
156
|
"""
|
|
157
157
|
|
|
158
|
+
class MASK_PT_animation:
|
|
159
|
+
bl_label: typing.Any
|
|
160
|
+
bl_options: typing.Any
|
|
161
|
+
|
|
162
|
+
def draw(self, context):
|
|
163
|
+
"""
|
|
164
|
+
|
|
165
|
+
:param context:
|
|
166
|
+
"""
|
|
167
|
+
|
|
168
|
+
@classmethod
|
|
169
|
+
def poll(cls, context):
|
|
170
|
+
"""
|
|
171
|
+
|
|
172
|
+
:param context:
|
|
173
|
+
"""
|
|
174
|
+
|
|
158
175
|
class MASK_PT_display:
|
|
159
176
|
bl_label: typing.Any
|
|
160
177
|
|
|
@@ -210,6 +210,35 @@ class MATERIAL_PT_gpencil_material_presets(bl_ui.utils.PresetPanel, bpy.types.Pa
|
|
|
210
210
|
:rtype: typing.Any
|
|
211
211
|
"""
|
|
212
212
|
|
|
213
|
+
class MATERIAL_PT_gpencil_preview(GPMaterialButtonsPanel, bpy.types.Panel):
|
|
214
|
+
bl_context: typing.Any
|
|
215
|
+
bl_label: typing.Any
|
|
216
|
+
bl_options: typing.Any
|
|
217
|
+
bl_region_type: typing.Any
|
|
218
|
+
bl_rna: typing.Any
|
|
219
|
+
bl_space_type: typing.Any
|
|
220
|
+
id_data: typing.Any
|
|
221
|
+
|
|
222
|
+
def bl_rna_get_subclass(self) -> bpy.types.Struct:
|
|
223
|
+
"""
|
|
224
|
+
|
|
225
|
+
:return: The RNA type or default when not found.
|
|
226
|
+
:rtype: bpy.types.Struct
|
|
227
|
+
"""
|
|
228
|
+
|
|
229
|
+
def bl_rna_get_subclass_py(self) -> typing.Any:
|
|
230
|
+
"""
|
|
231
|
+
|
|
232
|
+
:return: The class or default when not found.
|
|
233
|
+
:rtype: typing.Any
|
|
234
|
+
"""
|
|
235
|
+
|
|
236
|
+
def draw(self, context):
|
|
237
|
+
"""
|
|
238
|
+
|
|
239
|
+
:param context:
|
|
240
|
+
"""
|
|
241
|
+
|
|
213
242
|
class MATERIAL_PT_gpencil_settings(GPMaterialButtonsPanel, bpy.types.Panel):
|
|
214
243
|
bl_context: typing.Any
|
|
215
244
|
bl_label: typing.Any
|