fake-bpy-module 20241207__py3-none-any.whl → 20241209__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.
- addon_utils/__init__.pyi +2 -1
- 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
- blf/__init__.pyi +2 -1
- bmesh/ops/__init__.pyi +110 -53
- bmesh/types/__init__.pyi +18 -10
- bmesh/utils/__init__.pyi +14 -4
- bpy/app/icons/__init__.pyi +4 -1
- bpy/app/translations/__init__.pyi +4 -1
- bpy/msgbus/__init__.pyi +8 -5
- bpy/ops/action/__init__.pyi +38 -138
- 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 +8 -41
- bpy/ops/brush/__init__.pyi +13 -39
- 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 +92 -290
- bpy/ops/cloth/__init__.pyi +1 -3
- bpy/ops/collection/__init__.pyi +9 -25
- bpy/ops/console/__init__.pyi +21 -79
- bpy/ops/constraint/__init__.pyi +18 -45
- bpy/ops/curve/__init__.pyi +51 -180
- bpy/ops/curves/__init__.pyi +28 -100
- bpy/ops/cycles/__init__.pyi +3 -9
- bpy/ops/dpaint/__init__.pyi +5 -19
- bpy/ops/ed/__init__.pyi +12 -53
- bpy/ops/export_anim/__init__.pyi +1 -3
- bpy/ops/export_scene/__init__.pyi +2 -5
- 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 +10 -27
- bpy/ops/gizmogroup/__init__.pyi +2 -9
- bpy/ops/gpencil/__init__.pyi +8 -32
- bpy/ops/graph/__init__.pyi +65 -184
- bpy/ops/grease_pencil/__init__.pyi +108 -290
- bpy/ops/image/__init__.pyi +49 -154
- bpy/ops/import_anim/__init__.pyi +1 -3
- bpy/ops/import_curve/__init__.pyi +1 -3
- bpy/ops/import_scene/__init__.pyi +2 -4
- bpy/ops/info/__init__.pyi +7 -29
- bpy/ops/lattice/__init__.pyi +8 -29
- 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 +164 -401
- bpy/ops/nla/__init__.pyi +39 -147
- bpy/ops/node/__init__.pyi +115 -390
- bpy/ops/object/__init__.pyi +237 -630
- bpy/ops/outliner/__init__.pyi +71 -263
- bpy/ops/paint/__init__.pyi +54 -140
- bpy/ops/paintcurve/__init__.pyi +8 -33
- bpy/ops/palette/__init__.pyi +7 -27
- bpy/ops/particle/__init__.pyi +36 -134
- bpy/ops/pose/__init__.pyi +51 -169
- 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 +13 -45
- bpy/ops/scene/__init__.pyi +37 -121
- bpy/ops/screen/__init__.pyi +39 -137
- bpy/ops/script/__init__.pyi +3 -11
- bpy/ops/sculpt/__init__.pyi +37 -94
- bpy/ops/sculpt_curves/__init__.pyi +4 -10
- bpy/ops/sequencer/__init__.pyi +89 -284
- bpy/ops/sound/__init__.pyi +7 -23
- 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 +27 -61
- bpy/ops/ui/__init__.pyi +34 -117
- bpy/ops/uilist/__init__.pyi +3 -7
- bpy/ops/uv/__init__.pyi +49 -134
- bpy/ops/view2d/__init__.pyi +14 -39
- bpy/ops/view3d/__init__.pyi +67 -232
- bpy/ops/wm/__init__.pyi +114 -298
- bpy/ops/workspace/__init__.pyi +7 -33
- bpy/ops/world/__init__.pyi +2 -11
- bpy/path/__init__.pyi +4 -2
- bpy/types/__init__.pyi +68 -32
- bpy/utils/__init__.pyi +18 -9
- bpy_extras/bmesh_utils/__init__.pyi +2 -1
- bpy_extras/io_utils/__init__.pyi +7 -2
- bpy_extras/mesh_utils/__init__.pyi +19 -7
- bpy_extras/view3d_utils/__init__.pyi +2 -2
- {fake_bpy_module-20241207.dist-info → fake_bpy_module-20241209.dist-info}/METADATA +1 -1
- {fake_bpy_module-20241207.dist-info → fake_bpy_module-20241209.dist-info}/RECORD +115 -115
- freestyle/functions/__init__.pyi +16 -4
- freestyle/types/__init__.pyi +60 -23
- freestyle/utils/ContextFunctions/__init__.pyi +2 -2
- gpu/capabilities/__init__.pyi +2 -1
- gpu/state/__init__.pyi +2 -2
- gpu/types/__init__.pyi +2 -2
- gpu_extras/batch/__init__.pyi +6 -3
- idprop/types/__init__.pyi +4 -3
- imbuf/__init__.pyi +2 -1
- imbuf/types/__init__.pyi +5 -2
- mathutils/__init__.pyi +25 -14
- mathutils/bvhtree/__init__.pyi +8 -7
- mathutils/geometry/__init__.pyi +38 -17
- mathutils/interpolate/__init__.pyi +2 -1
- mathutils/kdtree/__init__.pyi +11 -6
- mathutils/noise/__init__.pyi +2 -1
- {fake_bpy_module-20241207.dist-info → fake_bpy_module-20241209.dist-info}/WHEEL +0 -0
- {fake_bpy_module-20241207.dist-info → fake_bpy_module-20241209.dist-info}/top_level.txt +0 -0
freestyle/functions/__init__.pyi
CHANGED
|
@@ -329,12 +329,15 @@ class GetOccludeeF1D:
|
|
|
329
329
|
def __init__(self):
|
|
330
330
|
"""Builds a GetOccludeeF1D object."""
|
|
331
331
|
|
|
332
|
-
def __call__(
|
|
332
|
+
def __call__(
|
|
333
|
+
self, inter: freestyle.types.Interface1D
|
|
334
|
+
) -> list[freestyle.types.ViewShape]:
|
|
333
335
|
"""Returns a list of occluded shapes covered by this Interface1D.
|
|
334
336
|
|
|
335
337
|
:param inter: An Interface1D object.
|
|
336
338
|
:type inter: freestyle.types.Interface1D
|
|
337
339
|
:return: A list of occluded shapes covered by the Interface1D.
|
|
340
|
+
:rtype: list[freestyle.types.ViewShape]
|
|
338
341
|
"""
|
|
339
342
|
|
|
340
343
|
class GetOccludersF0D:
|
|
@@ -343,7 +346,9 @@ class GetOccludersF0D:
|
|
|
343
346
|
def __init__(self):
|
|
344
347
|
"""Builds a GetOccludersF0D object."""
|
|
345
348
|
|
|
346
|
-
def __call__(
|
|
349
|
+
def __call__(
|
|
350
|
+
self, it: freestyle.types.Interface0DIterator
|
|
351
|
+
) -> list[freestyle.types.ViewShape]:
|
|
347
352
|
"""Returns a list of `freestyle.types.ViewShape` occluding the
|
|
348
353
|
`freestyle.types.Interface0D` pointed by the Interface0DIterator.
|
|
349
354
|
|
|
@@ -351,6 +356,7 @@ class GetOccludersF0D:
|
|
|
351
356
|
:type it: freestyle.types.Interface0DIterator
|
|
352
357
|
:return: A list of ViewShape objects occluding the pointed
|
|
353
358
|
Interface0D.
|
|
359
|
+
:rtype: list[freestyle.types.ViewShape]
|
|
354
360
|
"""
|
|
355
361
|
|
|
356
362
|
class GetOccludersF1D:
|
|
@@ -359,12 +365,15 @@ class GetOccludersF1D:
|
|
|
359
365
|
def __init__(self):
|
|
360
366
|
"""Builds a GetOccludersF1D object."""
|
|
361
367
|
|
|
362
|
-
def __call__(
|
|
368
|
+
def __call__(
|
|
369
|
+
self, inter: freestyle.types.Interface1D
|
|
370
|
+
) -> list[freestyle.types.ViewShape]:
|
|
363
371
|
"""Returns a list of occluding shapes that cover this Interface1D.
|
|
364
372
|
|
|
365
373
|
:param inter: An Interface1D object.
|
|
366
374
|
:type inter: freestyle.types.Interface1D
|
|
367
375
|
:return: A list of occluding shapes that cover the Interface1D.
|
|
376
|
+
:rtype: list[freestyle.types.ViewShape]
|
|
368
377
|
"""
|
|
369
378
|
|
|
370
379
|
class GetParameterF0D:
|
|
@@ -521,12 +530,15 @@ class GetShapeF1D:
|
|
|
521
530
|
def __init__(self):
|
|
522
531
|
"""Builds a GetShapeF1D object."""
|
|
523
532
|
|
|
524
|
-
def __call__(
|
|
533
|
+
def __call__(
|
|
534
|
+
self, inter: freestyle.types.Interface1D
|
|
535
|
+
) -> list[freestyle.types.ViewShape]:
|
|
525
536
|
"""Returns a list of shapes covered by this Interface1D.
|
|
526
537
|
|
|
527
538
|
:param inter: An Interface1D object.
|
|
528
539
|
:type inter: freestyle.types.Interface1D
|
|
529
540
|
:return: A list of shapes covered by the Interface1D.
|
|
541
|
+
:rtype: list[freestyle.types.ViewShape]
|
|
530
542
|
"""
|
|
531
543
|
|
|
532
544
|
class GetSteerableViewMapDensityF1D:
|
freestyle/types/__init__.pyi
CHANGED
|
@@ -1046,11 +1046,23 @@ class Material:
|
|
|
1046
1046
|
|
|
1047
1047
|
def __init__(
|
|
1048
1048
|
self,
|
|
1049
|
-
line: collections.abc.Sequence[float]
|
|
1049
|
+
line: collections.abc.Sequence[float]
|
|
1050
|
+
| list[float]
|
|
1051
|
+
| mathutils.Vector
|
|
1052
|
+
| tuple[float, float, float, float],
|
|
1050
1053
|
diffuse: typing.Any,
|
|
1051
|
-
ambient: collections.abc.Sequence[float]
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
+
ambient: collections.abc.Sequence[float]
|
|
1055
|
+
| list[float]
|
|
1056
|
+
| mathutils.Vector
|
|
1057
|
+
| tuple[float, float, float, float],
|
|
1058
|
+
specular: collections.abc.Sequence[float]
|
|
1059
|
+
| list[float]
|
|
1060
|
+
| mathutils.Vector
|
|
1061
|
+
| tuple[float, float, float, float],
|
|
1062
|
+
emission: collections.abc.Sequence[float]
|
|
1063
|
+
| list[float]
|
|
1064
|
+
| mathutils.Vector
|
|
1065
|
+
| tuple[float, float, float, float],
|
|
1054
1066
|
shininess: float,
|
|
1055
1067
|
priority: int,
|
|
1056
1068
|
):
|
|
@@ -1058,15 +1070,15 @@ class Material:
|
|
|
1058
1070
|
copy constructor, or an overloaded constructor
|
|
1059
1071
|
|
|
1060
1072
|
:param line: The line color.
|
|
1061
|
-
:type line: collections.abc.Sequence[float] | float | mathutils.Vector
|
|
1073
|
+
:type line: collections.abc.Sequence[float] | list[float] | mathutils.Vector | tuple[float, float, float, float]
|
|
1062
1074
|
:param diffuse: The diffuse color.
|
|
1063
1075
|
:type diffuse: typing.Any
|
|
1064
1076
|
:param ambient: The ambient color.
|
|
1065
|
-
:type ambient: collections.abc.Sequence[float] | float | mathutils.Vector
|
|
1077
|
+
:type ambient: collections.abc.Sequence[float] | list[float] | mathutils.Vector | tuple[float, float, float, float]
|
|
1066
1078
|
:param specular: The specular color.
|
|
1067
|
-
:type specular: collections.abc.Sequence[float] | float | mathutils.Vector
|
|
1079
|
+
:type specular: collections.abc.Sequence[float] | list[float] | mathutils.Vector | tuple[float, float, float, float]
|
|
1068
1080
|
:param emission: The emissive color.
|
|
1069
|
-
:type emission: collections.abc.Sequence[float] | float | mathutils.Vector
|
|
1081
|
+
:type emission: collections.abc.Sequence[float] | list[float] | mathutils.Vector | tuple[float, float, float, float]
|
|
1070
1082
|
:param shininess: The shininess coefficient.
|
|
1071
1083
|
:type shininess: float
|
|
1072
1084
|
:param priority: The line color priority.
|
|
@@ -1103,23 +1115,31 @@ class Noise:
|
|
|
1103
1115
|
"""
|
|
1104
1116
|
|
|
1105
1117
|
def smoothNoise2(
|
|
1106
|
-
self,
|
|
1118
|
+
self,
|
|
1119
|
+
v: collections.abc.Sequence[float]
|
|
1120
|
+
| list[float]
|
|
1121
|
+
| mathutils.Vector
|
|
1122
|
+
| tuple[float, float],
|
|
1107
1123
|
) -> float:
|
|
1108
1124
|
"""Returns a smooth noise value for a 2D element.
|
|
1109
1125
|
|
|
1110
1126
|
:param v: Two-dimensional sample point.
|
|
1111
|
-
:type v: collections.abc.Sequence[float] | mathutils.Vector
|
|
1127
|
+
:type v: collections.abc.Sequence[float] | list[float] | mathutils.Vector | tuple[float, float]
|
|
1112
1128
|
:return: A smooth noise value.
|
|
1113
1129
|
:rtype: float
|
|
1114
1130
|
"""
|
|
1115
1131
|
|
|
1116
1132
|
def smoothNoise3(
|
|
1117
|
-
self,
|
|
1133
|
+
self,
|
|
1134
|
+
v: collections.abc.Sequence[float]
|
|
1135
|
+
| list[float]
|
|
1136
|
+
| mathutils.Vector
|
|
1137
|
+
| tuple[float, float, float],
|
|
1118
1138
|
) -> float:
|
|
1119
1139
|
"""Returns a smooth noise value for a 3D element.
|
|
1120
1140
|
|
|
1121
1141
|
:param v: Three-dimensional sample point.
|
|
1122
|
-
:type v: collections.abc.Sequence[float] | float | mathutils.Vector
|
|
1142
|
+
:type v: collections.abc.Sequence[float] | list[float] | mathutils.Vector | tuple[float, float, float]
|
|
1123
1143
|
:return: A smooth noise value.
|
|
1124
1144
|
:rtype: float
|
|
1125
1145
|
"""
|
|
@@ -1141,7 +1161,10 @@ class Noise:
|
|
|
1141
1161
|
|
|
1142
1162
|
def turbulence2(
|
|
1143
1163
|
self,
|
|
1144
|
-
v: collections.abc.Sequence[float]
|
|
1164
|
+
v: collections.abc.Sequence[float]
|
|
1165
|
+
| list[float]
|
|
1166
|
+
| mathutils.Vector
|
|
1167
|
+
| tuple[float, float],
|
|
1145
1168
|
freq: float,
|
|
1146
1169
|
amp: float,
|
|
1147
1170
|
oct: int = 4,
|
|
@@ -1149,7 +1172,7 @@ class Noise:
|
|
|
1149
1172
|
"""Returns a noise value for a 2D element.
|
|
1150
1173
|
|
|
1151
1174
|
:param v: Two-dimensional sample point.
|
|
1152
|
-
:type v: collections.abc.Sequence[float] | mathutils.Vector
|
|
1175
|
+
:type v: collections.abc.Sequence[float] | list[float] | mathutils.Vector | tuple[float, float]
|
|
1153
1176
|
:param freq: Noise frequency.
|
|
1154
1177
|
:type freq: float
|
|
1155
1178
|
:param amp: Amplitude.
|
|
@@ -1162,7 +1185,10 @@ class Noise:
|
|
|
1162
1185
|
|
|
1163
1186
|
def turbulence3(
|
|
1164
1187
|
self,
|
|
1165
|
-
v: collections.abc.Sequence[float]
|
|
1188
|
+
v: collections.abc.Sequence[float]
|
|
1189
|
+
| list[float]
|
|
1190
|
+
| mathutils.Vector
|
|
1191
|
+
| tuple[float, float, float],
|
|
1166
1192
|
freq: float,
|
|
1167
1193
|
amp: float,
|
|
1168
1194
|
oct: int = 4,
|
|
@@ -1170,7 +1196,7 @@ class Noise:
|
|
|
1170
1196
|
"""Returns a noise value for a 3D element.
|
|
1171
1197
|
|
|
1172
1198
|
:param v: Three-dimensional sample point.
|
|
1173
|
-
:type v: collections.abc.Sequence[float] | float | mathutils.Vector
|
|
1199
|
+
:type v: collections.abc.Sequence[float] | list[float] | mathutils.Vector | tuple[float, float, float]
|
|
1174
1200
|
:param freq: Noise frequency.
|
|
1175
1201
|
:type freq: float
|
|
1176
1202
|
:param amp: Amplitude.
|
|
@@ -1291,7 +1317,7 @@ class Operators:
|
|
|
1291
1317
|
"""
|
|
1292
1318
|
|
|
1293
1319
|
@staticmethod
|
|
1294
|
-
def create(pred: UnaryPredicate1D, shaders):
|
|
1320
|
+
def create(pred: UnaryPredicate1D, shaders: list[StrokeShader]):
|
|
1295
1321
|
"""Creates and shades the strokes from the current set of chains. A
|
|
1296
1322
|
predicate can be specified to make a selection pass on the chains.
|
|
1297
1323
|
|
|
@@ -1299,6 +1325,7 @@ class Operators:
|
|
|
1299
1325
|
transform as a stroke.
|
|
1300
1326
|
:type pred: UnaryPredicate1D
|
|
1301
1327
|
:param shaders: The list of shaders used to shade the strokes.
|
|
1328
|
+
:type shaders: list[StrokeShader]
|
|
1302
1329
|
"""
|
|
1303
1330
|
|
|
1304
1331
|
@staticmethod
|
|
@@ -1644,13 +1671,17 @@ ViewVertex, and None otherwise.
|
|
|
1644
1671
|
"""
|
|
1645
1672
|
|
|
1646
1673
|
def add_normal(
|
|
1647
|
-
self,
|
|
1674
|
+
self,
|
|
1675
|
+
normal: collections.abc.Sequence[float]
|
|
1676
|
+
| list[float]
|
|
1677
|
+
| mathutils.Vector
|
|
1678
|
+
| tuple[float, float, float],
|
|
1648
1679
|
):
|
|
1649
1680
|
"""Adds a normal to the SVertex's set of normals. If the same normal
|
|
1650
1681
|
is already in the set, nothing changes.
|
|
1651
1682
|
|
|
1652
1683
|
:param normal: A three-dimensional vector.
|
|
1653
|
-
:type normal: collections.abc.Sequence[float] | float | mathutils.Vector
|
|
1684
|
+
:type normal: collections.abc.Sequence[float] | list[float] | mathutils.Vector | tuple[float, float, float]
|
|
1654
1685
|
"""
|
|
1655
1686
|
|
|
1656
1687
|
class SVertexIterator:
|
|
@@ -2005,7 +2036,10 @@ when following the stroke.
|
|
|
2005
2036
|
def set_attribute_vec2(
|
|
2006
2037
|
self,
|
|
2007
2038
|
name: str,
|
|
2008
|
-
value: collections.abc.Sequence[float]
|
|
2039
|
+
value: collections.abc.Sequence[float]
|
|
2040
|
+
| list[float]
|
|
2041
|
+
| mathutils.Vector
|
|
2042
|
+
| tuple[float, float, float],
|
|
2009
2043
|
):
|
|
2010
2044
|
"""Adds a user-defined attribute of two-dimensional vector type. If
|
|
2011
2045
|
there is no attribute of the given name, it is added. Otherwise,
|
|
@@ -2014,13 +2048,16 @@ when following the stroke.
|
|
|
2014
2048
|
:param name: The name of the attribute.
|
|
2015
2049
|
:type name: str
|
|
2016
2050
|
:param value: The attribute value.
|
|
2017
|
-
:type value: collections.abc.Sequence[float] | float | mathutils.Vector
|
|
2051
|
+
:type value: collections.abc.Sequence[float] | list[float] | mathutils.Vector | tuple[float, float, float]
|
|
2018
2052
|
"""
|
|
2019
2053
|
|
|
2020
2054
|
def set_attribute_vec3(
|
|
2021
2055
|
self,
|
|
2022
2056
|
name: str,
|
|
2023
|
-
value: collections.abc.Sequence[float]
|
|
2057
|
+
value: collections.abc.Sequence[float]
|
|
2058
|
+
| list[float]
|
|
2059
|
+
| mathutils.Vector
|
|
2060
|
+
| tuple[float, float, float],
|
|
2024
2061
|
):
|
|
2025
2062
|
"""Adds a user-defined attribute of three-dimensional vector type.
|
|
2026
2063
|
If there is no attribute of the given name, it is added.
|
|
@@ -2029,7 +2066,7 @@ when following the stroke.
|
|
|
2029
2066
|
:param name: The name of the attribute.
|
|
2030
2067
|
:type name: str
|
|
2031
2068
|
:param value: The attribute value as a 3D vector.
|
|
2032
|
-
:type value: collections.abc.Sequence[float] | float | mathutils.Vector
|
|
2069
|
+
:type value: collections.abc.Sequence[float] | list[float] | mathutils.Vector | tuple[float, float, float]
|
|
2033
2070
|
"""
|
|
2034
2071
|
|
|
2035
2072
|
class StrokeShader:
|
|
@@ -8,11 +8,11 @@ import collections.abc
|
|
|
8
8
|
import typing_extensions
|
|
9
9
|
import freestyle.types
|
|
10
10
|
|
|
11
|
-
def get_border() -> int:
|
|
11
|
+
def get_border() -> tuple[int, int, int, int]:
|
|
12
12
|
"""Returns the border.
|
|
13
13
|
|
|
14
14
|
:return: A tuple of 4 numbers (xmin, ymin, xmax, ymax).
|
|
15
|
-
:rtype: int
|
|
15
|
+
:rtype: tuple[int, int, int, int]
|
|
16
16
|
"""
|
|
17
17
|
|
|
18
18
|
def get_canvas_height() -> int:
|
gpu/capabilities/__init__.pyi
CHANGED
|
@@ -14,10 +14,11 @@ def compute_shader_support_get() -> bool:
|
|
|
14
14
|
:rtype: bool
|
|
15
15
|
"""
|
|
16
16
|
|
|
17
|
-
def extensions_get():
|
|
17
|
+
def extensions_get() -> tuple[str]:
|
|
18
18
|
"""Get supported extensions in the current context.
|
|
19
19
|
|
|
20
20
|
:return: Extensions.
|
|
21
|
+
:rtype: tuple[str]
|
|
21
22
|
"""
|
|
22
23
|
|
|
23
24
|
def hdr_support_get() -> bool:
|
gpu/state/__init__.pyi
CHANGED
|
@@ -98,7 +98,7 @@ def program_point_size_set(enable: bool):
|
|
|
98
98
|
:type enable: bool
|
|
99
99
|
"""
|
|
100
100
|
|
|
101
|
-
def scissor_get() -> int:
|
|
101
|
+
def scissor_get() -> tuple[int, int, int, int]:
|
|
102
102
|
"""Retrieve the scissors of the active framebuffer.
|
|
103
103
|
Note: Only valid between 'scissor_set' and a framebuffer rebind.
|
|
104
104
|
|
|
@@ -106,7 +106,7 @@ def scissor_get() -> int:
|
|
|
106
106
|
(x, y, xsize, ysize).
|
|
107
107
|
x, y: lower left corner of the scissor rectangle, in pixels.
|
|
108
108
|
xsize, ysize: width and height of the scissor rectangle.
|
|
109
|
-
:rtype: int
|
|
109
|
+
:rtype: tuple[int, int, int, int]
|
|
110
110
|
"""
|
|
111
111
|
|
|
112
112
|
def scissor_set(x: int, y, xsize: int, ysize):
|
gpu/types/__init__.pyi
CHANGED
|
@@ -271,11 +271,11 @@ class GPUShader:
|
|
|
271
271
|
:rtype: int
|
|
272
272
|
"""
|
|
273
273
|
|
|
274
|
-
def attrs_info_get(self) -> str:
|
|
274
|
+
def attrs_info_get(self) -> tuple[tuple[str, str], int]:
|
|
275
275
|
"""Information about the attributes used in the Shader.
|
|
276
276
|
|
|
277
277
|
:return: tuples containing information about the attributes in order (name, type)
|
|
278
|
-
:rtype: str
|
|
278
|
+
:rtype: tuple[tuple[str, str], int]
|
|
279
279
|
"""
|
|
280
280
|
|
|
281
281
|
def bind(self):
|
gpu_extras/batch/__init__.pyi
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import typing
|
|
2
2
|
import collections.abc
|
|
3
3
|
import typing_extensions
|
|
4
|
-
import bgl
|
|
5
4
|
import gpu.types
|
|
6
5
|
|
|
7
6
|
def batch_for_shader(
|
|
8
|
-
shader: gpu.types.GPUShader,
|
|
7
|
+
shader: gpu.types.GPUShader,
|
|
8
|
+
type: str,
|
|
9
|
+
content: dict[str, gpu.types.Buffer],
|
|
10
|
+
*,
|
|
11
|
+
indices=None,
|
|
9
12
|
) -> gpu.types.GPUBatch:
|
|
10
13
|
"""Return a batch already configured and compatible with the shader.
|
|
11
14
|
|
|
@@ -15,7 +18,7 @@ def batch_for_shader(
|
|
|
15
18
|
:type type: str
|
|
16
19
|
:param content: Maps the name of the shader attribute with the data to fill the vertex buffer.
|
|
17
20
|
For the dictionary values see documentation for `gpu.types.GPUVertBuf.attr_fill` data argument.
|
|
18
|
-
:type content:
|
|
21
|
+
:type content: dict[str, gpu.types.Buffer]
|
|
19
22
|
:return: compatible batch
|
|
20
23
|
:rtype: gpu.types.GPUBatch
|
|
21
24
|
"""
|
idprop/types/__init__.pyi
CHANGED
|
@@ -29,22 +29,23 @@ class IDPropertyGroup:
|
|
|
29
29
|
def keys(self):
|
|
30
30
|
"""Return the keys associated with this group as a list of strings."""
|
|
31
31
|
|
|
32
|
-
def pop(self, key: str, default):
|
|
32
|
+
def pop(self, key: str, default: typing.Any):
|
|
33
33
|
"""Remove an item from the group, returning a Python representation.
|
|
34
34
|
|
|
35
35
|
:param key: Name of item to remove.
|
|
36
36
|
:type key: str
|
|
37
37
|
:param default: Value to return when key isn't found, otherwise raise an exception.
|
|
38
|
+
:type default: typing.Any
|
|
38
39
|
"""
|
|
39
40
|
|
|
40
41
|
def to_dict(self):
|
|
41
42
|
"""Return a purely Python version of the group."""
|
|
42
43
|
|
|
43
|
-
def update(self, other: typing_extensions.Self):
|
|
44
|
+
def update(self, other: dict[str, typing.Any] | typing_extensions.Self):
|
|
44
45
|
"""Update key, values.
|
|
45
46
|
|
|
46
47
|
:param other: Updates the values in the group with this.
|
|
47
|
-
:type other: typing_extensions.Self
|
|
48
|
+
:type other: dict[str, typing.Any] | typing_extensions.Self
|
|
48
49
|
"""
|
|
49
50
|
|
|
50
51
|
def values(self):
|
imbuf/__init__.pyi
CHANGED
|
@@ -27,10 +27,11 @@ def load(filepath: bytes | str) -> imbuf.types.ImBuf:
|
|
|
27
27
|
:rtype: imbuf.types.ImBuf
|
|
28
28
|
"""
|
|
29
29
|
|
|
30
|
-
def new(size) -> imbuf.types.ImBuf:
|
|
30
|
+
def new(size: tuple[int, int]) -> imbuf.types.ImBuf:
|
|
31
31
|
"""Load a new image.
|
|
32
32
|
|
|
33
33
|
:param size: The size of the image in pixels.
|
|
34
|
+
:type size: tuple[int, int]
|
|
34
35
|
:return: the newly loaded image.
|
|
35
36
|
:rtype: imbuf.types.ImBuf
|
|
36
37
|
"""
|
imbuf/types/__init__.pyi
CHANGED
|
@@ -43,20 +43,23 @@ class ImBuf:
|
|
|
43
43
|
:rtype: typing_extensions.Self
|
|
44
44
|
"""
|
|
45
45
|
|
|
46
|
-
def crop(self, min, max):
|
|
46
|
+
def crop(self, min: tuple[int, int], max: tuple[int, int]):
|
|
47
47
|
"""Crop the image.
|
|
48
48
|
|
|
49
49
|
:param min: X, Y minimum.
|
|
50
|
+
:type min: tuple[int, int]
|
|
50
51
|
:param max: X, Y maximum.
|
|
52
|
+
:type max: tuple[int, int]
|
|
51
53
|
"""
|
|
52
54
|
|
|
53
55
|
def free(self):
|
|
54
56
|
"""Clear image data immediately (causing an error on re-use)."""
|
|
55
57
|
|
|
56
|
-
def resize(self, size, method: str = "FAST"):
|
|
58
|
+
def resize(self, size: tuple[int, int], method: str = "FAST"):
|
|
57
59
|
"""Resize the image.
|
|
58
60
|
|
|
59
61
|
:param size: New size.
|
|
62
|
+
:type size: tuple[int, int]
|
|
60
63
|
:param method: Method of resizing ('FAST', 'BILINEAR')
|
|
61
64
|
:type method: str
|
|
62
65
|
"""
|
mathutils/__init__.pyi
CHANGED
|
@@ -742,11 +742,11 @@ class Matrix:
|
|
|
742
742
|
:rtype: typing_extensions.Self
|
|
743
743
|
"""
|
|
744
744
|
|
|
745
|
-
def decompose(self) -> Quaternion:
|
|
745
|
+
def decompose(self) -> tuple[Vector, Quaternion, Vector]:
|
|
746
746
|
"""Return the translation, rotation, and scale components of this matrix.
|
|
747
747
|
|
|
748
748
|
:return: Tuple of translation, rotation, and scale.
|
|
749
|
-
:rtype: Quaternion
|
|
749
|
+
:rtype: tuple[Vector, Quaternion, Vector]
|
|
750
750
|
"""
|
|
751
751
|
|
|
752
752
|
def determinant(self) -> float:
|
|
@@ -786,13 +786,16 @@ class Matrix:
|
|
|
786
786
|
|
|
787
787
|
"""
|
|
788
788
|
|
|
789
|
-
def inverted(
|
|
789
|
+
def inverted(
|
|
790
|
+
self, fallback: typing.Any | None = None
|
|
791
|
+
) -> typing.Any | typing_extensions.Self:
|
|
790
792
|
"""Return an inverted copy of the matrix.
|
|
791
793
|
|
|
792
794
|
:param fallback: return this when the inverse can't be calculated
|
|
793
795
|
(instead of raising a `ValueError`).
|
|
796
|
+
:type fallback: typing.Any | None
|
|
794
797
|
:return: The inverted matrix or fallback when given.
|
|
795
|
-
:rtype: typing_extensions.Self
|
|
798
|
+
:rtype: typing.Any | typing_extensions.Self
|
|
796
799
|
"""
|
|
797
800
|
|
|
798
801
|
def inverted_safe(self) -> typing_extensions.Self:
|
|
@@ -1296,10 +1299,11 @@ class Quaternion:
|
|
|
1296
1299
|
:rtype: typing_extensions.Self
|
|
1297
1300
|
"""
|
|
1298
1301
|
|
|
1299
|
-
def to_axis_angle(self):
|
|
1302
|
+
def to_axis_angle(self) -> tuple[Vector, float]:
|
|
1300
1303
|
"""Return the axis, angle representation of the quaternion.
|
|
1301
1304
|
|
|
1302
1305
|
:return: Axis, angle.
|
|
1306
|
+
:rtype: tuple[Vector, float]
|
|
1303
1307
|
"""
|
|
1304
1308
|
|
|
1305
1309
|
def to_euler(
|
|
@@ -1334,13 +1338,14 @@ class Quaternion:
|
|
|
1334
1338
|
:rtype: Matrix
|
|
1335
1339
|
"""
|
|
1336
1340
|
|
|
1337
|
-
def to_swing_twist(self, axis: str):
|
|
1341
|
+
def to_swing_twist(self, axis: str) -> tuple[Quaternion, float]:
|
|
1338
1342
|
"""Split the rotation into a swing quaternion with the specified
|
|
1339
1343
|
axis fixed at zero, and the remaining twist rotation angle.
|
|
1340
1344
|
|
|
1341
1345
|
:param axis: Twist axis as a string in ['X', 'Y', 'Z'].
|
|
1342
1346
|
:type axis: str
|
|
1343
1347
|
:return: Swing, twist angle.
|
|
1348
|
+
:rtype: tuple[Quaternion, float]
|
|
1344
1349
|
"""
|
|
1345
1350
|
|
|
1346
1351
|
def __init__(self, seq=(1.0, 0.0, 0.0, 0.0)):
|
|
@@ -3645,29 +3650,33 @@ class Vector:
|
|
|
3645
3650
|
def angle(
|
|
3646
3651
|
self,
|
|
3647
3652
|
other: collections.abc.Sequence[float] | typing_extensions.Self,
|
|
3648
|
-
fallback=None,
|
|
3649
|
-
) -> float:
|
|
3653
|
+
fallback: typing.Any | None = None,
|
|
3654
|
+
) -> float | typing.Any:
|
|
3650
3655
|
"""Return the angle between two vectors.
|
|
3651
3656
|
|
|
3652
3657
|
:param other: another vector to compare the angle with
|
|
3653
3658
|
:type other: collections.abc.Sequence[float] | typing_extensions.Self
|
|
3654
3659
|
:param fallback: return this when the angle can't be calculated (zero length vector),
|
|
3655
3660
|
(instead of raising a `ValueError`).
|
|
3661
|
+
:type fallback: typing.Any | None
|
|
3656
3662
|
:return: angle in radians or fallback when given
|
|
3657
|
-
:rtype: float
|
|
3663
|
+
:rtype: float | typing.Any
|
|
3658
3664
|
"""
|
|
3659
3665
|
|
|
3660
3666
|
def angle_signed(
|
|
3661
|
-
self,
|
|
3662
|
-
|
|
3667
|
+
self,
|
|
3668
|
+
other: collections.abc.Sequence[float] | typing_extensions.Self,
|
|
3669
|
+
fallback: typing.Any,
|
|
3670
|
+
) -> float | typing.Any:
|
|
3663
3671
|
"""Return the signed angle between two 2D vectors (clockwise is positive).
|
|
3664
3672
|
|
|
3665
3673
|
:param other: another vector to compare the angle with
|
|
3666
3674
|
:type other: collections.abc.Sequence[float] | typing_extensions.Self
|
|
3667
3675
|
:param fallback: return this when the angle can't be calculated (zero length vector),
|
|
3668
3676
|
(instead of raising a `ValueError`).
|
|
3677
|
+
:type fallback: typing.Any
|
|
3669
3678
|
:return: angle in radians or fallback when given
|
|
3670
|
-
:rtype: float
|
|
3679
|
+
:rtype: float | typing.Any
|
|
3671
3680
|
"""
|
|
3672
3681
|
|
|
3673
3682
|
def copy(self) -> typing_extensions.Self:
|
|
@@ -3816,7 +3825,7 @@ class Vector:
|
|
|
3816
3825
|
self,
|
|
3817
3826
|
other: collections.abc.Sequence[float] | typing_extensions.Self,
|
|
3818
3827
|
factor: float,
|
|
3819
|
-
fallback=None,
|
|
3828
|
+
fallback: typing.Any | None = None,
|
|
3820
3829
|
) -> typing_extensions.Self:
|
|
3821
3830
|
"""Returns the interpolation of two non-zero vectors (spherical coordinates).
|
|
3822
3831
|
|
|
@@ -3826,6 +3835,7 @@ class Vector:
|
|
|
3826
3835
|
:type factor: float
|
|
3827
3836
|
:param fallback: return this when the vector can't be calculated (zero length vector or direct opposites),
|
|
3828
3837
|
(instead of raising a `ValueError`).
|
|
3838
|
+
:type fallback: typing.Any | None
|
|
3829
3839
|
:return: The interpolated vector.
|
|
3830
3840
|
:rtype: typing_extensions.Self
|
|
3831
3841
|
"""
|
|
@@ -3862,12 +3872,13 @@ class Vector:
|
|
|
3862
3872
|
:rtype: Quaternion
|
|
3863
3873
|
"""
|
|
3864
3874
|
|
|
3865
|
-
def to_tuple(self, precision: int = -1):
|
|
3875
|
+
def to_tuple(self, precision: int = -1) -> tuple[float]:
|
|
3866
3876
|
"""Return this vector as a tuple with.
|
|
3867
3877
|
|
|
3868
3878
|
:param precision: The number to round the value to in [-1, 21].
|
|
3869
3879
|
:type precision: int
|
|
3870
3880
|
:return: the values of the vector rounded by precision
|
|
3881
|
+
:rtype: tuple[float]
|
|
3871
3882
|
"""
|
|
3872
3883
|
|
|
3873
3884
|
def zero(self):
|
mathutils/bvhtree/__init__.pyi
CHANGED
|
@@ -62,7 +62,7 @@ class BVHTree:
|
|
|
62
62
|
|
|
63
63
|
def find_nearest(
|
|
64
64
|
self, origin, distance: float = 1.84467e19
|
|
65
|
-
) ->
|
|
65
|
+
) -> tuple[mathutils.Vector, mathutils.Vector, int, float]:
|
|
66
66
|
"""Find the nearest element (typically face index) to a point.
|
|
67
67
|
|
|
68
68
|
:param origin:
|
|
@@ -70,27 +70,28 @@ class BVHTree:
|
|
|
70
70
|
:type distance: float
|
|
71
71
|
:return: Returns a tuple: (position, normal, index, distance),
|
|
72
72
|
Values will all be None if no hit is found.
|
|
73
|
-
:rtype:
|
|
73
|
+
:rtype: tuple[mathutils.Vector, mathutils.Vector, int, float]
|
|
74
74
|
"""
|
|
75
75
|
|
|
76
76
|
def find_nearest_range(
|
|
77
77
|
self, origin, distance: float = 1.84467e19
|
|
78
|
-
) ->
|
|
78
|
+
) -> list[tuple[mathutils.Vector, mathutils.Vector, int, float]]:
|
|
79
79
|
"""Find the nearest elements (typically face index) to a point in the distance range.
|
|
80
80
|
|
|
81
81
|
:param origin:
|
|
82
82
|
:param distance: Maximum distance threshold.
|
|
83
83
|
:type distance: float
|
|
84
84
|
:return: Returns a list of tuples (position, normal, index, distance)
|
|
85
|
-
:rtype:
|
|
85
|
+
:rtype: list[tuple[mathutils.Vector, mathutils.Vector, int, float]]
|
|
86
86
|
"""
|
|
87
87
|
|
|
88
|
-
def overlap(self, other_tree: typing_extensions.Self):
|
|
88
|
+
def overlap(self, other_tree: typing_extensions.Self) -> list[tuple[int, int]]:
|
|
89
89
|
"""Find overlapping indices between 2 trees.
|
|
90
90
|
|
|
91
91
|
:param other_tree: Other tree to perform overlap test on.
|
|
92
92
|
:type other_tree: typing_extensions.Self
|
|
93
93
|
:return: Returns a list of unique index pairs, the first index referencing this tree, the second referencing the other_tree.
|
|
94
|
+
:rtype: list[tuple[int, int]]
|
|
94
95
|
"""
|
|
95
96
|
|
|
96
97
|
def ray_cast(
|
|
@@ -98,7 +99,7 @@ class BVHTree:
|
|
|
98
99
|
origin: collections.abc.Sequence[float] | mathutils.Vector,
|
|
99
100
|
direction: collections.abc.Sequence[float] | mathutils.Vector,
|
|
100
101
|
distance: float = sys.float_info.max,
|
|
101
|
-
) ->
|
|
102
|
+
) -> tuple[mathutils.Vector, mathutils.Vector, int, float]:
|
|
102
103
|
"""Cast a ray onto the mesh.
|
|
103
104
|
|
|
104
105
|
:param origin: Start location of the ray in object space.
|
|
@@ -109,7 +110,7 @@ class BVHTree:
|
|
|
109
110
|
:type distance: float
|
|
110
111
|
:return: Returns a tuple: (position, normal, index, distance),
|
|
111
112
|
Values will all be None if no hit is found.
|
|
112
|
-
:rtype:
|
|
113
|
+
:rtype: tuple[mathutils.Vector, mathutils.Vector, int, float]
|
|
113
114
|
"""
|
|
114
115
|
|
|
115
116
|
def __init__(self, size):
|