fake-bpy-module 20240601__py3-none-any.whl → 20240604__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.
- aud/__init__.pyi +4 -4
- bl_console_utils/autocomplete/intellisense/__init__.pyi +2 -4
- bl_ui/generic_ui_list/__init__.pyi +2 -2
- bl_ui/space_sequencer/__init__.pyi +14 -0
- bl_ui/space_userpref/__init__.pyi +234 -0
- bl_ui/space_view3d/__init__.pyi +810 -0
- blf/__init__.pyi +4 -4
- bmesh/ops/__init__.pyi +97 -82
- bmesh/types/__init__.pyi +37 -32
- bmesh/utils/__init__.pyi +2 -4
- bpy/ops/action/__init__.pyi +152 -152
- bpy/ops/anim/__init__.pyi +216 -216
- bpy/ops/armature/__init__.pyi +192 -192
- bpy/ops/asset/__init__.pyi +64 -64
- bpy/ops/boid/__init__.pyi +32 -32
- bpy/ops/brush/__init__.pyi +36 -36
- bpy/ops/buttons/__init__.pyi +24 -24
- bpy/ops/cachefile/__init__.pyi +20 -20
- bpy/ops/camera/__init__.pyi +8 -8
- bpy/ops/clip/__init__.pyi +368 -368
- bpy/ops/cloth/__init__.pyi +4 -4
- bpy/ops/collection/__init__.pyi +36 -36
- bpy/ops/console/__init__.pyi +84 -84
- bpy/ops/constraint/__init__.pyi +72 -72
- bpy/ops/curve/__init__.pyi +204 -204
- bpy/ops/curves/__init__.pyi +108 -108
- bpy/ops/cycles/__init__.pyi +12 -12
- bpy/ops/dpaint/__init__.pyi +20 -20
- bpy/ops/ed/__init__.pyi +48 -48
- bpy/ops/export_anim/__init__.pyi +4 -4
- bpy/ops/export_scene/__init__.pyi +8 -8
- bpy/ops/extensions/__init__.pyi +123 -109
- bpy/ops/file/__init__.pyi +160 -160
- bpy/ops/fluid/__init__.pyi +56 -56
- bpy/ops/font/__init__.pyi +92 -92
- bpy/ops/geometry/__init__.pyi +40 -40
- bpy/ops/gizmogroup/__init__.pyi +8 -8
- bpy/ops/gpencil/__init__.pyi +600 -600
- bpy/ops/graph/__init__.pyi +260 -260
- bpy/ops/grease_pencil/__init__.pyi +292 -292
- bpy/ops/image/__init__.pyi +192 -192
- bpy/ops/import_anim/__init__.pyi +4 -4
- bpy/ops/import_curve/__init__.pyi +4 -4
- bpy/ops/import_scene/__init__.pyi +8 -8
- bpy/ops/info/__init__.pyi +28 -28
- bpy/ops/lattice/__init__.pyi +32 -32
- bpy/ops/marker/__init__.pyi +44 -44
- bpy/ops/mask/__init__.pyi +156 -156
- bpy/ops/material/__init__.pyi +12 -12
- bpy/ops/mball/__init__.pyi +32 -32
- bpy/ops/mesh/__init__.pyi +652 -652
- bpy/ops/nla/__init__.pyi +156 -156
- bpy/ops/node/__init__.pyi +416 -416
- bpy/ops/object/__init__.pyi +984 -984
- bpy/ops/outliner/__init__.pyi +284 -284
- bpy/ops/paint/__init__.pyi +220 -220
- bpy/ops/paintcurve/__init__.pyi +32 -32
- bpy/ops/palette/__init__.pyi +28 -28
- bpy/ops/particle/__init__.pyi +144 -144
- bpy/ops/pose/__init__.pyi +156 -156
- bpy/ops/poselib/__init__.pyi +36 -36
- bpy/ops/preferences/__init__.pyi +148 -148
- bpy/ops/ptcache/__init__.pyi +28 -28
- bpy/ops/render/__init__.pyi +48 -48
- bpy/ops/rigidbody/__init__.pyi +52 -52
- bpy/ops/scene/__init__.pyi +156 -156
- bpy/ops/screen/__init__.pyi +156 -156
- bpy/ops/script/__init__.pyi +12 -12
- bpy/ops/sculpt/__init__.pyi +144 -144
- bpy/ops/sculpt_curves/__init__.pyi +16 -16
- bpy/ops/sequencer/__init__.pyi +364 -340
- bpy/ops/sound/__init__.pyi +28 -28
- bpy/ops/spreadsheet/__init__.pyi +16 -16
- bpy/ops/surface/__init__.pyi +24 -24
- bpy/ops/text/__init__.pyi +172 -172
- bpy/ops/text_editor/__init__.pyi +4 -4
- bpy/ops/texture/__init__.pyi +16 -16
- bpy/ops/transform/__init__.pyi +111 -108
- bpy/ops/ui/__init__.pyi +132 -132
- bpy/ops/uilist/__init__.pyi +12 -12
- bpy/ops/uv/__init__.pyi +196 -196
- bpy/ops/view2d/__init__.pyi +56 -56
- bpy/ops/view3d/__init__.pyi +268 -268
- bpy/ops/wm/__init__.pyi +448 -448
- bpy/ops/workspace/__init__.pyi +28 -28
- bpy/ops/world/__init__.pyi +8 -8
- bpy/path/__init__.pyi +18 -18
- bpy/props/__init__.pyi +11 -11
- bpy/types/__init__.pyi +1527 -1737
- bpy/utils/__init__.pyi +4 -4
- bpy_extras/mesh_utils/__init__.pyi +4 -4
- bpy_extras/view3d_utils/__init__.pyi +24 -20
- bpy_types/__init__.pyi +12 -7
- {fake_bpy_module-20240601.dist-info → fake_bpy_module-20240604.dist-info}/METADATA +1 -1
- {fake_bpy_module-20240601.dist-info → fake_bpy_module-20240604.dist-info}/RECORD +106 -106
- freestyle/types/__init__.pyi +64 -64
- freestyle/utils/__init__.pyi +2 -2
- gpu/matrix/__init__.pyi +15 -6
- gpu/state/__init__.pyi +2 -2
- gpu/types/__init__.pyi +6 -4
- gpu_extras/presets/__init__.pyi +8 -4
- imbuf/__init__.pyi +4 -4
- mathutils/__init__.pyi +292 -187
- mathutils/geometry/__init__.pyi +2 -5
- {fake_bpy_module-20240601.dist-info → fake_bpy_module-20240604.dist-info}/WHEEL +0 -0
- {fake_bpy_module-20240601.dist-info → fake_bpy_module-20240604.dist-info}/top_level.txt +0 -0
bpy/ops/workspace/__init__.pyi
CHANGED
|
@@ -6,22 +6,22 @@ GenericType1 = typing.TypeVar("GenericType1")
|
|
|
6
6
|
GenericType2 = typing.TypeVar("GenericType2")
|
|
7
7
|
|
|
8
8
|
def add(
|
|
9
|
-
override_context: dict[str, typing.Any] |
|
|
10
|
-
execution_context:
|
|
9
|
+
override_context: bpy.types.Context | dict[str, typing.Any] | None = None,
|
|
10
|
+
execution_context: int | str | None = None,
|
|
11
11
|
undo: bool | None = None,
|
|
12
12
|
):
|
|
13
13
|
"""Add a new workspace by duplicating the current one or appending one from the user configuration
|
|
14
14
|
|
|
15
|
-
:type override_context: dict[str, typing.Any] |
|
|
16
|
-
:type execution_context:
|
|
15
|
+
:type override_context: bpy.types.Context | dict[str, typing.Any] | None
|
|
16
|
+
:type execution_context: int | str | None
|
|
17
17
|
:type undo: bool | None
|
|
18
18
|
"""
|
|
19
19
|
|
|
20
20
|
...
|
|
21
21
|
|
|
22
22
|
def append_activate(
|
|
23
|
-
override_context: dict[str, typing.Any] |
|
|
24
|
-
execution_context:
|
|
23
|
+
override_context: bpy.types.Context | dict[str, typing.Any] | None = None,
|
|
24
|
+
execution_context: int | str | None = None,
|
|
25
25
|
undo: bool | None = None,
|
|
26
26
|
*,
|
|
27
27
|
idname: str | typing.Any = "",
|
|
@@ -29,8 +29,8 @@ def append_activate(
|
|
|
29
29
|
):
|
|
30
30
|
"""Append a workspace and make it the active one in the current window
|
|
31
31
|
|
|
32
|
-
:type override_context: dict[str, typing.Any] |
|
|
33
|
-
:type execution_context:
|
|
32
|
+
:type override_context: bpy.types.Context | dict[str, typing.Any] | None
|
|
33
|
+
:type execution_context: int | str | None
|
|
34
34
|
:type undo: bool | None
|
|
35
35
|
:param idname: Identifier, Name of the workspace to append and activate
|
|
36
36
|
:type idname: str | typing.Any
|
|
@@ -41,70 +41,70 @@ def append_activate(
|
|
|
41
41
|
...
|
|
42
42
|
|
|
43
43
|
def delete(
|
|
44
|
-
override_context: dict[str, typing.Any] |
|
|
45
|
-
execution_context:
|
|
44
|
+
override_context: bpy.types.Context | dict[str, typing.Any] | None = None,
|
|
45
|
+
execution_context: int | str | None = None,
|
|
46
46
|
undo: bool | None = None,
|
|
47
47
|
):
|
|
48
48
|
"""Delete the active workspace
|
|
49
49
|
|
|
50
|
-
:type override_context: dict[str, typing.Any] |
|
|
51
|
-
:type execution_context:
|
|
50
|
+
:type override_context: bpy.types.Context | dict[str, typing.Any] | None
|
|
51
|
+
:type execution_context: int | str | None
|
|
52
52
|
:type undo: bool | None
|
|
53
53
|
"""
|
|
54
54
|
|
|
55
55
|
...
|
|
56
56
|
|
|
57
57
|
def duplicate(
|
|
58
|
-
override_context: dict[str, typing.Any] |
|
|
59
|
-
execution_context:
|
|
58
|
+
override_context: bpy.types.Context | dict[str, typing.Any] | None = None,
|
|
59
|
+
execution_context: int | str | None = None,
|
|
60
60
|
undo: bool | None = None,
|
|
61
61
|
):
|
|
62
62
|
"""Add a new workspace
|
|
63
63
|
|
|
64
|
-
:type override_context: dict[str, typing.Any] |
|
|
65
|
-
:type execution_context:
|
|
64
|
+
:type override_context: bpy.types.Context | dict[str, typing.Any] | None
|
|
65
|
+
:type execution_context: int | str | None
|
|
66
66
|
:type undo: bool | None
|
|
67
67
|
"""
|
|
68
68
|
|
|
69
69
|
...
|
|
70
70
|
|
|
71
71
|
def reorder_to_back(
|
|
72
|
-
override_context: dict[str, typing.Any] |
|
|
73
|
-
execution_context:
|
|
72
|
+
override_context: bpy.types.Context | dict[str, typing.Any] | None = None,
|
|
73
|
+
execution_context: int | str | None = None,
|
|
74
74
|
undo: bool | None = None,
|
|
75
75
|
):
|
|
76
76
|
"""Reorder workspace to be last in the list
|
|
77
77
|
|
|
78
|
-
:type override_context: dict[str, typing.Any] |
|
|
79
|
-
:type execution_context:
|
|
78
|
+
:type override_context: bpy.types.Context | dict[str, typing.Any] | None
|
|
79
|
+
:type execution_context: int | str | None
|
|
80
80
|
:type undo: bool | None
|
|
81
81
|
"""
|
|
82
82
|
|
|
83
83
|
...
|
|
84
84
|
|
|
85
85
|
def reorder_to_front(
|
|
86
|
-
override_context: dict[str, typing.Any] |
|
|
87
|
-
execution_context:
|
|
86
|
+
override_context: bpy.types.Context | dict[str, typing.Any] | None = None,
|
|
87
|
+
execution_context: int | str | None = None,
|
|
88
88
|
undo: bool | None = None,
|
|
89
89
|
):
|
|
90
90
|
"""Reorder workspace to be first in the list
|
|
91
91
|
|
|
92
|
-
:type override_context: dict[str, typing.Any] |
|
|
93
|
-
:type execution_context:
|
|
92
|
+
:type override_context: bpy.types.Context | dict[str, typing.Any] | None
|
|
93
|
+
:type execution_context: int | str | None
|
|
94
94
|
:type undo: bool | None
|
|
95
95
|
"""
|
|
96
96
|
|
|
97
97
|
...
|
|
98
98
|
|
|
99
99
|
def scene_pin_toggle(
|
|
100
|
-
override_context: dict[str, typing.Any] |
|
|
101
|
-
execution_context:
|
|
100
|
+
override_context: bpy.types.Context | dict[str, typing.Any] | None = None,
|
|
101
|
+
execution_context: int | str | None = None,
|
|
102
102
|
undo: bool | None = None,
|
|
103
103
|
):
|
|
104
104
|
"""Remember the last used scene for the current workspace and switch to it whenever this workspace is activated again
|
|
105
105
|
|
|
106
|
-
:type override_context: dict[str, typing.Any] |
|
|
107
|
-
:type execution_context:
|
|
106
|
+
:type override_context: bpy.types.Context | dict[str, typing.Any] | None
|
|
107
|
+
:type execution_context: int | str | None
|
|
108
108
|
:type undo: bool | None
|
|
109
109
|
"""
|
|
110
110
|
|
bpy/ops/world/__init__.pyi
CHANGED
|
@@ -6,28 +6,28 @@ GenericType1 = typing.TypeVar("GenericType1")
|
|
|
6
6
|
GenericType2 = typing.TypeVar("GenericType2")
|
|
7
7
|
|
|
8
8
|
def convert_volume_to_mesh(
|
|
9
|
-
override_context: dict[str, typing.Any] |
|
|
10
|
-
execution_context:
|
|
9
|
+
override_context: bpy.types.Context | dict[str, typing.Any] | None = None,
|
|
10
|
+
execution_context: int | str | None = None,
|
|
11
11
|
undo: bool | None = None,
|
|
12
12
|
):
|
|
13
13
|
"""Convert the volume of a world to a mesh. The world's volume used to be rendered by EEVEE Legacy. Conversion is needed for it to render properly
|
|
14
14
|
|
|
15
|
-
:type override_context: dict[str, typing.Any] |
|
|
16
|
-
:type execution_context:
|
|
15
|
+
:type override_context: bpy.types.Context | dict[str, typing.Any] | None
|
|
16
|
+
:type execution_context: int | str | None
|
|
17
17
|
:type undo: bool | None
|
|
18
18
|
"""
|
|
19
19
|
|
|
20
20
|
...
|
|
21
21
|
|
|
22
22
|
def new(
|
|
23
|
-
override_context: dict[str, typing.Any] |
|
|
24
|
-
execution_context:
|
|
23
|
+
override_context: bpy.types.Context | dict[str, typing.Any] | None = None,
|
|
24
|
+
execution_context: int | str | None = None,
|
|
25
25
|
undo: bool | None = None,
|
|
26
26
|
):
|
|
27
27
|
"""Create a new world Data-Block
|
|
28
28
|
|
|
29
|
-
:type override_context: dict[str, typing.Any] |
|
|
30
|
-
:type execution_context:
|
|
29
|
+
:type override_context: bpy.types.Context | dict[str, typing.Any] | None
|
|
30
|
+
:type execution_context: int | str | None
|
|
31
31
|
:type undo: bool | None
|
|
32
32
|
"""
|
|
33
33
|
|
bpy/path/__init__.pyi
CHANGED
|
@@ -12,14 +12,14 @@ GenericType1 = typing.TypeVar("GenericType1")
|
|
|
12
12
|
GenericType2 = typing.TypeVar("GenericType2")
|
|
13
13
|
|
|
14
14
|
def abspath(
|
|
15
|
-
path, *, start:
|
|
15
|
+
path, *, start: bytes | str | None = None, library: bpy.types.Library | None = None
|
|
16
16
|
) -> str:
|
|
17
17
|
"""Returns the absolute path relative to the current blend file
|
|
18
18
|
using the "//" prefix.
|
|
19
19
|
|
|
20
20
|
:param start: Relative to this path,
|
|
21
21
|
when not set the current filename is used.
|
|
22
|
-
:type start:
|
|
22
|
+
:type start: bytes | str | None
|
|
23
23
|
:param library: The library this path is from. This is only included for
|
|
24
24
|
convenience, when the library is not None its path replaces start.
|
|
25
25
|
:type library: bpy.types.Library | None
|
|
@@ -30,14 +30,14 @@ def abspath(
|
|
|
30
30
|
...
|
|
31
31
|
|
|
32
32
|
def abspath(
|
|
33
|
-
path, start:
|
|
33
|
+
path, start: bytes | str | None = None, library: bpy.types.Library | None = None
|
|
34
34
|
) -> str:
|
|
35
35
|
"""Returns the absolute path relative to the current blend file
|
|
36
36
|
using the "//" prefix.
|
|
37
37
|
|
|
38
38
|
:param start: Relative to this path,
|
|
39
39
|
when not set the current filename is used.
|
|
40
|
-
:type start:
|
|
40
|
+
:type start: bytes | str | None
|
|
41
41
|
:param library: The library this path is from. This is only included for
|
|
42
42
|
convenience, when the library is not None its path replaces start.
|
|
43
43
|
:type library: bpy.types.Library | None
|
|
@@ -65,14 +65,14 @@ def basename(path) -> str:
|
|
|
65
65
|
|
|
66
66
|
...
|
|
67
67
|
|
|
68
|
-
def clean_name(name:
|
|
68
|
+
def clean_name(name: bytes | str | None, *, replace: str | None = "_") -> str:
|
|
69
69
|
"""Returns a name with characters replaced that
|
|
70
70
|
may cause problems under various circumstances,
|
|
71
71
|
such as writing to a file.All characters besides A-Z/a-z, 0-9 are replaced with "_"
|
|
72
72
|
or the replace argument if defined.
|
|
73
73
|
|
|
74
74
|
:param name: The path name.
|
|
75
|
-
:type name:
|
|
75
|
+
:type name: bytes | str | None
|
|
76
76
|
:param replace: The replacement for non-valid characters.
|
|
77
77
|
:type replace: str | None
|
|
78
78
|
:return: The cleaned name.
|
|
@@ -81,14 +81,14 @@ def clean_name(name: str | bytes | None, *, replace: str | None = "_") -> str:
|
|
|
81
81
|
|
|
82
82
|
...
|
|
83
83
|
|
|
84
|
-
def clean_name(name:
|
|
84
|
+
def clean_name(name: bytes | str | None, replace: str | None = "_") -> str:
|
|
85
85
|
"""Returns a name with characters replaced that
|
|
86
86
|
may cause problems under various circumstances,
|
|
87
87
|
such as writing to a file.All characters besides A-Z/a-z, 0-9 are replaced with "_"
|
|
88
88
|
or the replace argument if defined.
|
|
89
89
|
|
|
90
90
|
:param name: The path name.
|
|
91
|
-
:type name:
|
|
91
|
+
:type name: bytes | str | None
|
|
92
92
|
:param replace: The replacement for non-valid characters.
|
|
93
93
|
:type replace: str | None
|
|
94
94
|
:return: The cleaned name.
|
|
@@ -217,24 +217,24 @@ def ensure_ext(
|
|
|
217
217
|
|
|
218
218
|
...
|
|
219
219
|
|
|
220
|
-
def is_subdir(path:
|
|
220
|
+
def is_subdir(path: bytes | str | None, directory) -> bool:
|
|
221
221
|
"""Returns true if path in a subdirectory of directory.
|
|
222
222
|
Both paths must be absolute.
|
|
223
223
|
|
|
224
224
|
:param path: An absolute path.
|
|
225
|
-
:type path:
|
|
225
|
+
:type path: bytes | str | None
|
|
226
226
|
:return: Whether or not the path is a subdirectory.
|
|
227
227
|
:rtype: bool
|
|
228
228
|
"""
|
|
229
229
|
|
|
230
230
|
...
|
|
231
231
|
|
|
232
|
-
def is_subdir(path:
|
|
232
|
+
def is_subdir(path: bytes | str | None, directory) -> bool:
|
|
233
233
|
"""Returns true if path in a subdirectory of directory.
|
|
234
234
|
Both paths must be absolute.
|
|
235
235
|
|
|
236
236
|
:param path: An absolute path.
|
|
237
|
-
:type path:
|
|
237
|
+
:type path: bytes | str | None
|
|
238
238
|
:return: Whether or not the path is a subdirectory.
|
|
239
239
|
:rtype: bool
|
|
240
240
|
"""
|
|
@@ -323,28 +323,28 @@ def reduce_dirs(dirs: list[str] | None) -> list[str]:
|
|
|
323
323
|
|
|
324
324
|
...
|
|
325
325
|
|
|
326
|
-
def relpath(path:
|
|
326
|
+
def relpath(path: bytes | str | None, *, start: bytes | str | None = None) -> str:
|
|
327
327
|
"""Returns the path relative to the current blend file using the "//" prefix.
|
|
328
328
|
|
|
329
329
|
:param path: An absolute path.
|
|
330
|
-
:type path:
|
|
330
|
+
:type path: bytes | str | None
|
|
331
331
|
:param start: Relative to this path,
|
|
332
332
|
when not set the current filename is used.
|
|
333
|
-
:type start:
|
|
333
|
+
:type start: bytes | str | None
|
|
334
334
|
:return: The relative path.
|
|
335
335
|
:rtype: str
|
|
336
336
|
"""
|
|
337
337
|
|
|
338
338
|
...
|
|
339
339
|
|
|
340
|
-
def relpath(path:
|
|
340
|
+
def relpath(path: bytes | str | None, start: bytes | str | None = None) -> str:
|
|
341
341
|
"""Returns the path relative to the current blend file using the "//" prefix.
|
|
342
342
|
|
|
343
343
|
:param path: An absolute path.
|
|
344
|
-
:type path:
|
|
344
|
+
:type path: bytes | str | None
|
|
345
345
|
:param start: Relative to this path,
|
|
346
346
|
when not set the current filename is used.
|
|
347
|
-
:type start:
|
|
347
|
+
:type start: bytes | str | None
|
|
348
348
|
:return: The relative path.
|
|
349
349
|
:rtype: str
|
|
350
350
|
"""
|
bpy/props/__init__.pyi
CHANGED
|
@@ -147,7 +147,7 @@ def BoolVectorProperty(
|
|
|
147
147
|
override: set | None = None(),
|
|
148
148
|
tags: set | None = None(),
|
|
149
149
|
subtype: str | None = "NONE",
|
|
150
|
-
size:
|
|
150
|
+
size: collections.abc.Sequence[int] | int | None = 3,
|
|
151
151
|
update: typing.Any | None = None,
|
|
152
152
|
get: typing.Any | None = None,
|
|
153
153
|
set: typing.Any | None = None,
|
|
@@ -171,7 +171,7 @@ def BoolVectorProperty(
|
|
|
171
171
|
:param subtype: Enumerator in `rna_enum_property_subtype_number_array_items`.
|
|
172
172
|
:type subtype: str | None
|
|
173
173
|
:param size: Vector dimensions in [1, 32]. An int sequence can be used to define multi-dimension arrays.
|
|
174
|
-
:type size:
|
|
174
|
+
:type size: collections.abc.Sequence[int] | int | None
|
|
175
175
|
:param update: Function to be called when this value is modified,
|
|
176
176
|
This function must take 2 values (self, context) and return None.
|
|
177
177
|
Warning there are no safety checks to avoid infinite recursion.
|
|
@@ -217,13 +217,13 @@ def CollectionProperty(
|
|
|
217
217
|
|
|
218
218
|
def EnumProperty(
|
|
219
219
|
*,
|
|
220
|
-
items: collections.abc.
|
|
221
|
-
| collections.abc.
|
|
220
|
+
items: collections.abc.Callable
|
|
221
|
+
| collections.abc.Iterable[collections.abc.Iterable[str]]
|
|
222
222
|
| None,
|
|
223
223
|
name: str | None = "",
|
|
224
224
|
description: str | None = "",
|
|
225
225
|
translation_context: str | None = "*",
|
|
226
|
-
default:
|
|
226
|
+
default: int | set | str | None = None,
|
|
227
227
|
options: set | None = {"ANIMATABLE"},
|
|
228
228
|
override: set | None = None(),
|
|
229
229
|
tags: set | None = None(),
|
|
@@ -271,7 +271,7 @@ def EnumProperty(
|
|
|
271
271
|
There is a known bug with using a callback,
|
|
272
272
|
Python must keep a reference to the strings returned by the callback or Blender
|
|
273
273
|
will misbehave or even crash.
|
|
274
|
-
:type items: collections.abc.Iterable[collections.abc.Iterable[str]] |
|
|
274
|
+
:type items: collections.abc.Callable | collections.abc.Iterable[collections.abc.Iterable[str]] | None
|
|
275
275
|
:param name: Name used in the user interface.
|
|
276
276
|
:type name: str | None
|
|
277
277
|
:param description: Text used for the tooltip and api documentation.
|
|
@@ -282,7 +282,7 @@ def EnumProperty(
|
|
|
282
282
|
If the ENUM_FLAG option is used this must be a set of such string identifiers instead.
|
|
283
283
|
WARNING: Strings cannot be specified for dynamic enums
|
|
284
284
|
(i.e. if a callback function is given as items parameter).
|
|
285
|
-
:type default:
|
|
285
|
+
:type default: int | set | str | None
|
|
286
286
|
:param options: Enumerator in `rna_enum_property_flag_enum_items`.
|
|
287
287
|
:type options: set | None
|
|
288
288
|
:param override: Enumerator in `rna_enum_property_override_flag_items`.
|
|
@@ -385,7 +385,7 @@ def FloatVectorProperty(
|
|
|
385
385
|
tags: set | None = None(),
|
|
386
386
|
subtype: str | None = "NONE",
|
|
387
387
|
unit: str | None = "NONE",
|
|
388
|
-
size:
|
|
388
|
+
size: collections.abc.Sequence[int] | int | None = 3,
|
|
389
389
|
update: typing.Any | None = None,
|
|
390
390
|
get: typing.Any | None = None,
|
|
391
391
|
set: typing.Any | None = None,
|
|
@@ -423,7 +423,7 @@ def FloatVectorProperty(
|
|
|
423
423
|
:param unit: Enumerator in `rna_enum_property_unit_items`.
|
|
424
424
|
:type unit: str | None
|
|
425
425
|
:param size: Vector dimensions in [1, 32]. An int sequence can be used to define multi-dimension arrays.
|
|
426
|
-
:type size:
|
|
426
|
+
:type size: collections.abc.Sequence[int] | int | None
|
|
427
427
|
:param update: Function to be called when this value is modified,
|
|
428
428
|
This function must take 2 values (self, context) and return None.
|
|
429
429
|
Warning there are no safety checks to avoid infinite recursion.
|
|
@@ -512,7 +512,7 @@ def IntVectorProperty(
|
|
|
512
512
|
override: set | None = None(),
|
|
513
513
|
tags: set | None = None(),
|
|
514
514
|
subtype: str | None = "NONE",
|
|
515
|
-
size:
|
|
515
|
+
size: collections.abc.Sequence[int] | int | None = 3,
|
|
516
516
|
update: typing.Any | None = None,
|
|
517
517
|
get: typing.Any | None = None,
|
|
518
518
|
set: typing.Any | None = None,
|
|
@@ -546,7 +546,7 @@ def IntVectorProperty(
|
|
|
546
546
|
:param subtype: Enumerator in `rna_enum_property_subtype_number_array_items`.
|
|
547
547
|
:type subtype: str | None
|
|
548
548
|
:param size: Vector dimensions in [1, 32]. An int sequence can be used to define multi-dimension arrays.
|
|
549
|
-
:type size:
|
|
549
|
+
:type size: collections.abc.Sequence[int] | int | None
|
|
550
550
|
:param update: Function to be called when this value is modified,
|
|
551
551
|
This function must take 2 values (self, context) and return None.
|
|
552
552
|
Warning there are no safety checks to avoid infinite recursion.
|