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

Files changed (76) hide show
  1. _bpy_internal/extensions/__init__.pyi +1 -0
  2. _bpy_internal/extensions/stale_file_manager/__init__.pyi +39 -0
  3. _bpy_internal/extensions/wheel_manager/__init__.pyi +3 -1
  4. addon_utils/__init__.pyi +2 -0
  5. aud/__init__.pyi +77 -77
  6. bmesh/ops/__init__.pyi +54 -36
  7. bmesh/types/__init__.pyi +24 -24
  8. bpy/ops/action/__init__.pyi +55 -32
  9. bpy/ops/anim/__init__.pyi +22 -22
  10. bpy/ops/armature/__init__.pyi +47 -20
  11. bpy/ops/asset/__init__.pyi +5 -2
  12. bpy/ops/boid/__init__.pyi +12 -2
  13. bpy/ops/brush/__init__.pyi +18 -12
  14. bpy/ops/buttons/__init__.pyi +10 -4
  15. bpy/ops/cachefile/__init__.pyi +12 -6
  16. bpy/ops/clip/__init__.pyi +54 -38
  17. bpy/ops/console/__init__.pyi +17 -6
  18. bpy/ops/constraint/__init__.pyi +28 -28
  19. bpy/ops/curve/__init__.pyi +72 -34
  20. bpy/ops/curves/__init__.pyi +16 -16
  21. bpy/ops/dpaint/__init__.pyi +4 -4
  22. bpy/ops/ed/__init__.pyi +5 -2
  23. bpy/ops/export_anim/__init__.pyi +3 -2
  24. bpy/ops/export_scene/__init__.pyi +55 -45
  25. bpy/ops/file/__init__.pyi +40 -16
  26. bpy/ops/font/__init__.pyi +59 -16
  27. bpy/ops/geometry/__init__.pyi +55 -20
  28. bpy/ops/gpencil/__init__.pyi +155 -122
  29. bpy/ops/graph/__init__.pyi +131 -52
  30. bpy/ops/grease_pencil/__init__.pyi +78 -58
  31. bpy/ops/image/__init__.pyi +77 -54
  32. bpy/ops/import_anim/__init__.pyi +11 -8
  33. bpy/ops/import_scene/__init__.pyi +20 -18
  34. bpy/ops/info/__init__.pyi +4 -4
  35. bpy/ops/lattice/__init__.pyi +8 -8
  36. bpy/ops/marker/__init__.pyi +6 -6
  37. bpy/ops/mask/__init__.pyi +13 -12
  38. bpy/ops/mball/__init__.pyi +6 -6
  39. bpy/ops/mesh/__init__.pyi +290 -150
  40. bpy/ops/nla/__init__.pyi +28 -20
  41. bpy/ops/node/__init__.pyi +43 -32
  42. bpy/ops/object/__init__.pyi +651 -210
  43. bpy/ops/outliner/__init__.pyi +113 -32
  44. bpy/ops/paint/__init__.pyi +65 -56
  45. bpy/ops/palette/__init__.pyi +4 -4
  46. bpy/ops/particle/__init__.pyi +14 -14
  47. bpy/ops/pose/__init__.pyi +121 -44
  48. bpy/ops/preferences/__init__.pyi +9 -6
  49. bpy/ops/render/__init__.pyi +3 -2
  50. bpy/ops/rigidbody/__init__.pyi +45 -14
  51. bpy/ops/scene/__init__.pyi +69 -22
  52. bpy/ops/screen/__init__.pyi +78 -16
  53. bpy/ops/sculpt/__init__.pyi +131 -74
  54. bpy/ops/sculpt_curves/__init__.pyi +2 -2
  55. bpy/ops/sequencer/__init__.pyi +156 -60
  56. bpy/ops/sound/__init__.pyi +40 -16
  57. bpy/ops/surface/__init__.pyi +12 -12
  58. bpy/ops/text/__init__.pyi +65 -20
  59. bpy/ops/texture/__init__.pyi +2 -2
  60. bpy/ops/transform/__init__.pyi +344 -72
  61. bpy/ops/ui/__init__.pyi +9 -6
  62. bpy/ops/uilist/__init__.pyi +2 -2
  63. bpy/ops/uv/__init__.pyi +90 -66
  64. bpy/ops/view3d/__init__.pyi +36 -30
  65. bpy/ops/wm/__init__.pyi +443 -156
  66. bpy/types/__init__.pyi +28584 -2857
  67. {fake_bpy_module-20240803.dist-info → fake_bpy_module-20240805.dist-info}/METADATA +1 -1
  68. {fake_bpy_module-20240803.dist-info → fake_bpy_module-20240805.dist-info}/RECORD +76 -75
  69. freestyle/chainingiterators/__init__.pyi +4 -4
  70. freestyle/types/__init__.pyi +76 -63
  71. idprop/types/__init__.pyi +2 -2
  72. imbuf/types/__init__.pyi +2 -2
  73. mathutils/__init__.pyi +1004 -970
  74. mathutils/bvhtree/__init__.pyi +2 -2
  75. {fake_bpy_module-20240803.dist-info → fake_bpy_module-20240805.dist-info}/WHEEL +0 -0
  76. {fake_bpy_module-20240803.dist-info → fake_bpy_module-20240805.dist-info}/top_level.txt +0 -0
@@ -32,7 +32,7 @@ def brush_stroke(
32
32
  *,
33
33
  stroke: bpy.types.bpy_prop_collection[bpy.types.OperatorStrokeElement]
34
34
  | None = None,
35
- mode: str | None = "NORMAL",
35
+ mode: typing.Literal["NORMAL", "INVERT", "SMOOTH", "ERASE"] | None = "NORMAL",
36
36
  ):
37
37
  """Draw a new stroke in the active Grease Pencil object
38
38
 
@@ -54,7 +54,7 @@ def brush_stroke(
54
54
 
55
55
  ERASE
56
56
  Erase -- Switch brush to erase mode for duration of stroke.
57
- :type mode: str | None
57
+ :type mode: typing.Literal['NORMAL','INVERT','SMOOTH','ERASE'] | None
58
58
  """
59
59
 
60
60
  ...
@@ -64,7 +64,7 @@ def caps_set(
64
64
  execution_context: int | str | None = None,
65
65
  undo: bool | None = None,
66
66
  *,
67
- type: str | None = "ROUND",
67
+ type: typing.Literal["ROUND", "FLAT", "START", "END"] | None = "ROUND",
68
68
  ):
69
69
  """Change curve caps mode (rounded or flat)
70
70
 
@@ -84,7 +84,7 @@ def caps_set(
84
84
 
85
85
  END
86
86
  Toggle End.
87
- :type type: str | None
87
+ :type type: typing.Literal['ROUND','FLAT','START','END'] | None
88
88
  """
89
89
 
90
90
  ...
@@ -126,7 +126,7 @@ def cyclical_set(
126
126
  execution_context: int | str | None = None,
127
127
  undo: bool | None = None,
128
128
  *,
129
- type: str | None = "TOGGLE",
129
+ type: typing.Literal["CLOSE", "OPEN", "TOGGLE"] | None = "TOGGLE",
130
130
  ):
131
131
  """Close or open the selected stroke adding a segment from last to first point
132
132
 
@@ -134,7 +134,7 @@ def cyclical_set(
134
134
  :type execution_context: int | str | None
135
135
  :type undo: bool | None
136
136
  :param type: Type
137
- :type type: str | None
137
+ :type type: typing.Literal['CLOSE','OPEN','TOGGLE'] | None
138
138
  """
139
139
 
140
140
  ...
@@ -158,7 +158,7 @@ def delete_frame(
158
158
  execution_context: int | str | None = None,
159
159
  undo: bool | None = None,
160
160
  *,
161
- type: str | None = "ACTIVE_FRAME",
161
+ type: typing.Literal["ACTIVE_FRAME", "ALL_FRAMES"] | None = "ACTIVE_FRAME",
162
162
  ):
163
163
  """Delete Grease Pencil Frame(s)
164
164
 
@@ -172,7 +172,7 @@ def delete_frame(
172
172
 
173
173
  ALL_FRAMES
174
174
  All Active Frames -- Delete active frames for all layers.
175
- :type type: str | None
175
+ :type type: typing.Literal['ACTIVE_FRAME','ALL_FRAMES'] | None
176
176
  """
177
177
 
178
178
  ...
@@ -182,7 +182,7 @@ def dissolve(
182
182
  execution_context: int | str | None = None,
183
183
  undo: bool | None = None,
184
184
  *,
185
- type: str | None = "POINTS",
185
+ type: typing.Literal["POINTS", "BETWEEN", "UNSELECT"] | None = "POINTS",
186
186
  ):
187
187
  """Delete selected points without splitting strokes
188
188
 
@@ -199,7 +199,7 @@ def dissolve(
199
199
 
200
200
  UNSELECT
201
201
  Dissolve Unselect -- Dissolve all unselected points.
202
- :type type: str | None
202
+ :type type: typing.Literal['POINTS','BETWEEN','UNSELECT'] | None
203
203
  """
204
204
 
205
205
  ...
@@ -358,9 +358,9 @@ def interpolate(
358
358
  undo: bool | None = None,
359
359
  *,
360
360
  shift: float | None = 0.0,
361
- layers: str | None = "ACTIVE",
361
+ layers: typing.Literal["ACTIVE", "ALL"] | None = "ACTIVE",
362
362
  exclude_breakdowns: bool | None = False,
363
- flip: str | None = "AUTO",
363
+ flip: typing.Literal["NONE", "FLIP", "AUTO"] | None = "AUTO",
364
364
  smooth_steps: int | None = 1,
365
365
  smooth_factor: float | None = 0.0,
366
366
  ):
@@ -372,11 +372,11 @@ def interpolate(
372
372
  :param shift: Shift, Bias factor for which frame has more influence on the interpolated strokes
373
373
  :type shift: float | None
374
374
  :param layers: Layer, Layers included in the interpolation
375
- :type layers: str | None
375
+ :type layers: typing.Literal['ACTIVE','ALL'] | None
376
376
  :param exclude_breakdowns: Exclude Breakdowns, Exclude existing Breakdowns keyframes as interpolation extremes
377
377
  :type exclude_breakdowns: bool | None
378
378
  :param flip: Flip Mode, Invert destination stroke to match start and end with source stroke
379
- :type flip: str | None
379
+ :type flip: typing.Literal['NONE','FLIP','AUTO'] | None
380
380
  :param smooth_steps: Iterations, Number of times to smooth newly created strokes
381
381
  :type smooth_steps: int | None
382
382
  :param smooth_factor: Smooth, Amount of smoothing to apply to interpolated strokes, to reduce jitter/noise
@@ -445,7 +445,7 @@ def layer_duplicate_object(
445
445
  undo: bool | None = None,
446
446
  *,
447
447
  only_active: bool | None = True,
448
- mode: str | None = "ALL",
448
+ mode: typing.Literal["ALL", "ACTIVE"] | None = "ALL",
449
449
  ):
450
450
  """Make a copy of the active Grease Pencil layer to selected object
451
451
 
@@ -455,7 +455,7 @@ def layer_duplicate_object(
455
455
  :param only_active: Only Active, Copy only active Layer, uncheck to append all layers
456
456
  :type only_active: bool | None
457
457
  :param mode: Mode
458
- :type mode: str | None
458
+ :type mode: typing.Literal['ALL','ACTIVE'] | None
459
459
  """
460
460
 
461
461
  ...
@@ -483,7 +483,18 @@ def layer_group_color_tag(
483
483
  execution_context: int | str | None = None,
484
484
  undo: bool | None = None,
485
485
  *,
486
- color_tag: str | None = "COLOR1",
486
+ color_tag: typing.Literal[
487
+ "NONE",
488
+ "COLOR1",
489
+ "COLOR2",
490
+ "COLOR3",
491
+ "COLOR4",
492
+ "COLOR5",
493
+ "COLOR6",
494
+ "COLOR7",
495
+ "COLOR8",
496
+ ]
497
+ | None = "COLOR1",
487
498
  ):
488
499
  """Change layer group icon
489
500
 
@@ -491,7 +502,7 @@ def layer_group_color_tag(
491
502
  :type execution_context: int | str | None
492
503
  :type undo: bool | None
493
504
  :param color_tag: color tag
494
- :type color_tag: str | None
505
+ :type color_tag: typing.Literal['NONE','COLOR1','COLOR2','COLOR3','COLOR4','COLOR5','COLOR6','COLOR7','COLOR8'] | None
495
506
  """
496
507
 
497
508
  ...
@@ -605,7 +616,7 @@ def layer_mask_reorder(
605
616
  execution_context: int | str | None = None,
606
617
  undo: bool | None = None,
607
618
  *,
608
- direction: str | None = "UP",
619
+ direction: typing.Literal["UP", "DOWN"] | None = "UP",
609
620
  ):
610
621
  """Reorder the active Grease Pencil mask layer up/down in the list
611
622
 
@@ -613,7 +624,7 @@ def layer_mask_reorder(
613
624
  :type execution_context: int | str | None
614
625
  :type undo: bool | None
615
626
  :param direction: Direction
616
- :type direction: str | None
627
+ :type direction: typing.Literal['UP','DOWN'] | None
617
628
  """
618
629
 
619
630
  ...
@@ -638,7 +649,7 @@ def layer_reorder(
638
649
  undo: bool | None = None,
639
650
  *,
640
651
  target_layer_name: str = "Layer",
641
- location: str | None = "ABOVE",
652
+ location: typing.Literal["ABOVE", "BELOW"] | None = "ABOVE",
642
653
  ):
643
654
  """Reorder the active Grease Pencil layer
644
655
 
@@ -648,7 +659,7 @@ def layer_reorder(
648
659
  :param target_layer_name: Target Name, Name of the target layer
649
660
  :type target_layer_name: str
650
661
  :param location: Location
651
- :type location: str | None
662
+ :type location: typing.Literal['ABOVE','BELOW'] | None
652
663
  """
653
664
 
654
665
  ...
@@ -836,7 +847,8 @@ def primitive_arc(
836
847
  undo: bool | None = None,
837
848
  *,
838
849
  subdivision: int | None = 62,
839
- type: str | None = "ARC",
850
+ type: typing.Literal["BOX", "LINE", "POLYLINE", "CIRCLE", "ARC", "CURVE"]
851
+ | None = "ARC",
840
852
  ):
841
853
  """Create predefined grease pencil stroke arcs
842
854
 
@@ -846,7 +858,7 @@ def primitive_arc(
846
858
  :param subdivision: Subdivisions, Number of subdivisions per segment
847
859
  :type subdivision: int | None
848
860
  :param type: Type, Type of shape
849
- :type type: str | None
861
+ :type type: typing.Literal['BOX','LINE','POLYLINE','CIRCLE','ARC','CURVE'] | None
850
862
  """
851
863
 
852
864
  ...
@@ -857,7 +869,8 @@ def primitive_box(
857
869
  undo: bool | None = None,
858
870
  *,
859
871
  subdivision: int | None = 3,
860
- type: str | None = "BOX",
872
+ type: typing.Literal["BOX", "LINE", "POLYLINE", "CIRCLE", "ARC", "CURVE"]
873
+ | None = "BOX",
861
874
  ):
862
875
  """Create predefined grease pencil stroke boxes
863
876
 
@@ -867,7 +880,7 @@ def primitive_box(
867
880
  :param subdivision: Subdivisions, Number of subdivisions per segment
868
881
  :type subdivision: int | None
869
882
  :param type: Type, Type of shape
870
- :type type: str | None
883
+ :type type: typing.Literal['BOX','LINE','POLYLINE','CIRCLE','ARC','CURVE'] | None
871
884
  """
872
885
 
873
886
  ...
@@ -878,7 +891,8 @@ def primitive_circle(
878
891
  undo: bool | None = None,
879
892
  *,
880
893
  subdivision: int | None = 94,
881
- type: str | None = "CIRCLE",
894
+ type: typing.Literal["BOX", "LINE", "POLYLINE", "CIRCLE", "ARC", "CURVE"]
895
+ | None = "CIRCLE",
882
896
  ):
883
897
  """Create predefined grease pencil stroke circles
884
898
 
@@ -888,7 +902,7 @@ def primitive_circle(
888
902
  :param subdivision: Subdivisions, Number of subdivisions per segment
889
903
  :type subdivision: int | None
890
904
  :param type: Type, Type of shape
891
- :type type: str | None
905
+ :type type: typing.Literal['BOX','LINE','POLYLINE','CIRCLE','ARC','CURVE'] | None
892
906
  """
893
907
 
894
908
  ...
@@ -899,7 +913,8 @@ def primitive_curve(
899
913
  undo: bool | None = None,
900
914
  *,
901
915
  subdivision: int | None = 62,
902
- type: str | None = "CURVE",
916
+ type: typing.Literal["BOX", "LINE", "POLYLINE", "CIRCLE", "ARC", "CURVE"]
917
+ | None = "CURVE",
903
918
  ):
904
919
  """Create predefined grease pencil stroke curve shapes
905
920
 
@@ -909,7 +924,7 @@ def primitive_curve(
909
924
  :param subdivision: Subdivisions, Number of subdivisions per segment
910
925
  :type subdivision: int | None
911
926
  :param type: Type, Type of shape
912
- :type type: str | None
927
+ :type type: typing.Literal['BOX','LINE','POLYLINE','CIRCLE','ARC','CURVE'] | None
913
928
  """
914
929
 
915
930
  ...
@@ -920,7 +935,8 @@ def primitive_line(
920
935
  undo: bool | None = None,
921
936
  *,
922
937
  subdivision: int | None = 6,
923
- type: str | None = "LINE",
938
+ type: typing.Literal["BOX", "LINE", "POLYLINE", "CIRCLE", "ARC", "CURVE"]
939
+ | None = "LINE",
924
940
  ):
925
941
  """Create predefined grease pencil stroke lines
926
942
 
@@ -930,7 +946,7 @@ def primitive_line(
930
946
  :param subdivision: Subdivisions, Number of subdivisions per segment
931
947
  :type subdivision: int | None
932
948
  :param type: Type, Type of shape
933
- :type type: str | None
949
+ :type type: typing.Literal['BOX','LINE','POLYLINE','CIRCLE','ARC','CURVE'] | None
934
950
  """
935
951
 
936
952
  ...
@@ -941,7 +957,8 @@ def primitive_polyline(
941
957
  undo: bool | None = None,
942
958
  *,
943
959
  subdivision: int | None = 6,
944
- type: str | None = "POLYLINE",
960
+ type: typing.Literal["BOX", "LINE", "POLYLINE", "CIRCLE", "ARC", "CURVE"]
961
+ | None = "POLYLINE",
945
962
  ):
946
963
  """Create predefined grease pencil stroke polylines
947
964
 
@@ -951,7 +968,7 @@ def primitive_polyline(
951
968
  :param subdivision: Subdivisions, Number of subdivisions per segment
952
969
  :type subdivision: int | None
953
970
  :param type: Type, Type of shape
954
- :type type: str | None
971
+ :type type: typing.Literal['BOX','LINE','POLYLINE','CIRCLE','ARC','CURVE'] | None
955
972
  """
956
973
 
957
974
  ...
@@ -961,7 +978,7 @@ def reorder(
961
978
  execution_context: int | str | None = None,
962
979
  undo: bool | None = None,
963
980
  *,
964
- direction: str | None = "TOP",
981
+ direction: typing.Literal["TOP", "UP", "DOWN", "BOTTOM"] | None = "TOP",
965
982
  ):
966
983
  """Change the display order of the selected strokes
967
984
 
@@ -969,7 +986,7 @@ def reorder(
969
986
  :type execution_context: int | str | None
970
987
  :type undo: bool | None
971
988
  :param direction: Direction
972
- :type direction: str | None
989
+ :type direction: typing.Literal['TOP','UP','DOWN','BOTTOM'] | None
973
990
  """
974
991
 
975
992
  ...
@@ -981,7 +998,7 @@ def sculpt_paint(
981
998
  *,
982
999
  stroke: bpy.types.bpy_prop_collection[bpy.types.OperatorStrokeElement]
983
1000
  | None = None,
984
- mode: str | None = "NORMAL",
1001
+ mode: typing.Literal["NORMAL", "INVERT", "SMOOTH", "ERASE"] | None = "NORMAL",
985
1002
  ):
986
1003
  """Draw a new stroke in the active Grease Pencil object
987
1004
 
@@ -1003,7 +1020,7 @@ def sculpt_paint(
1003
1020
 
1004
1021
  ERASE
1005
1022
  Erase -- Switch brush to erase mode for duration of stroke.
1006
- :type mode: str | None
1023
+ :type mode: typing.Literal['NORMAL','INVERT','SMOOTH','ERASE'] | None
1007
1024
  """
1008
1025
 
1009
1026
  ...
@@ -1013,7 +1030,7 @@ def select_all(
1013
1030
  execution_context: int | str | None = None,
1014
1031
  undo: bool | None = None,
1015
1032
  *,
1016
- action: str | None = "TOGGLE",
1033
+ action: typing.Literal["TOGGLE", "SELECT", "DESELECT", "INVERT"] | None = "TOGGLE",
1017
1034
  ):
1018
1035
  """(De)select all visible strokes
1019
1036
 
@@ -1033,7 +1050,7 @@ def select_all(
1033
1050
 
1034
1051
  INVERT
1035
1052
  Invert -- Invert selection of all elements.
1036
- :type action: str | None
1053
+ :type action: typing.Literal['TOGGLE','SELECT','DESELECT','INVERT'] | None
1037
1054
  """
1038
1055
 
1039
1056
  ...
@@ -1126,7 +1143,7 @@ def select_random(
1126
1143
  *,
1127
1144
  ratio: float | None = 0.5,
1128
1145
  seed: int | None = 0,
1129
- action: str | None = "SELECT",
1146
+ action: typing.Literal["SELECT", "DESELECT"] | None = "SELECT",
1130
1147
  ):
1131
1148
  """Selects random points from the current strokes selection
1132
1149
 
@@ -1144,7 +1161,7 @@ def select_random(
1144
1161
 
1145
1162
  DESELECT
1146
1163
  Deselect -- Deselect all elements.
1147
- :type action: str | None
1164
+ :type action: typing.Literal['SELECT','DESELECT'] | None
1148
1165
  """
1149
1166
 
1150
1167
  ...
@@ -1154,7 +1171,7 @@ def separate(
1154
1171
  execution_context: int | str | None = None,
1155
1172
  undo: bool | None = None,
1156
1173
  *,
1157
- mode: str | None = "SELECTED",
1174
+ mode: typing.Literal["SELECTED", "MATERIAL", "LAYER"] | None = "SELECTED",
1158
1175
  ):
1159
1176
  """Separate the selected geometry into a new grease pencil object
1160
1177
 
@@ -1171,7 +1188,7 @@ def separate(
1171
1188
 
1172
1189
  LAYER
1173
1190
  By Layer -- Separate by layer.
1174
- :type mode: str | None
1191
+ :type mode: typing.Literal['SELECTED','MATERIAL','LAYER'] | None
1175
1192
  """
1176
1193
 
1177
1194
  ...
@@ -1213,7 +1230,7 @@ def set_curve_type(
1213
1230
  execution_context: int | str | None = None,
1214
1231
  undo: bool | None = None,
1215
1232
  *,
1216
- type: str | None = "POLY",
1233
+ type: typing.Literal["CATMULL_ROM", "POLY", "BEZIER", "NURBS"] | None = "POLY",
1217
1234
  use_handles: bool | None = False,
1218
1235
  ):
1219
1236
  """Set type of selected curves
@@ -1222,7 +1239,7 @@ def set_curve_type(
1222
1239
  :type execution_context: int | str | None
1223
1240
  :type undo: bool | None
1224
1241
  :param type: Type, Curve type
1225
- :type type: str | None
1242
+ :type type: typing.Literal['CATMULL_ROM', 'POLY', 'BEZIER', 'NURBS'] | None
1226
1243
  :param use_handles: Handles, Take handle information into account in the conversion
1227
1244
  :type use_handles: bool | None
1228
1245
  """
@@ -1234,7 +1251,7 @@ def set_handle_type(
1234
1251
  execution_context: int | str | None = None,
1235
1252
  undo: bool | None = None,
1236
1253
  *,
1237
- type: str | None = "AUTO",
1254
+ type: typing.Literal["FREE", "AUTO", "VECTOR", "ALIGN"] | None = "AUTO",
1238
1255
  ):
1239
1256
  """Set the handle type for bezier curves
1240
1257
 
@@ -1242,7 +1259,7 @@ def set_handle_type(
1242
1259
  :type execution_context: int | str | None
1243
1260
  :type undo: bool | None
1244
1261
  :param type: Type
1245
- :type type: str | None
1262
+ :type type: typing.Literal['FREE', 'AUTO', 'VECTOR', 'ALIGN'] | None
1246
1263
  """
1247
1264
 
1248
1265
  ...
@@ -1270,7 +1287,7 @@ def set_selection_mode(
1270
1287
  execution_context: int | str | None = None,
1271
1288
  undo: bool | None = None,
1272
1289
  *,
1273
- mode: str | None = "POINT",
1290
+ mode: typing.Literal["POINT", "STROKE", "SEGMENT"] | None = "POINT",
1274
1291
  ):
1275
1292
  """Change the selection mode for Grease Pencil strokes
1276
1293
 
@@ -1278,7 +1295,7 @@ def set_selection_mode(
1278
1295
  :type execution_context: int | str | None
1279
1296
  :type undo: bool | None
1280
1297
  :param mode: Mode
1281
- :type mode: str | None
1298
+ :type mode: typing.Literal['POINT', 'STROKE', 'SEGMENT'] | None
1282
1299
  """
1283
1300
 
1284
1301
  ...
@@ -1546,11 +1563,14 @@ def trace_image(
1546
1563
  execution_context: int | str | None = None,
1547
1564
  undo: bool | None = None,
1548
1565
  *,
1549
- target: str | None = "NEW",
1566
+ target: typing.Literal["NEW", "SELECTED"] | None = "NEW",
1550
1567
  radius: float | None = 0.01,
1551
1568
  threshold: float | None = 0.5,
1552
- turnpolicy: str | None = "MINORITY",
1553
- mode: str | None = "SINGLE",
1569
+ turnpolicy: typing.Literal[
1570
+ "FOREGROUND", "BACKGROUND", "LEFT", "RIGHT", "MINORITY", "MAJORITY", "RANDOM"
1571
+ ]
1572
+ | None = "MINORITY",
1573
+ mode: typing.Literal["SINGLE", "SEQUENCE"] | None = "SINGLE",
1554
1574
  use_current_frame: bool | None = True,
1555
1575
  frame_number: int | None = 0,
1556
1576
  ):
@@ -1560,7 +1580,7 @@ def trace_image(
1560
1580
  :type execution_context: int | str | None
1561
1581
  :type undo: bool | None
1562
1582
  :param target: Target Object, Target grease pencil
1563
- :type target: str | None
1583
+ :type target: typing.Literal['NEW','SELECTED'] | None
1564
1584
  :param radius: Radius
1565
1585
  :type radius: float | None
1566
1586
  :param threshold: Color Threshold, Determine the lightness threshold above which strokes are generated
@@ -1587,7 +1607,7 @@ def trace_image(
1587
1607
 
1588
1608
  RANDOM
1589
1609
  Random -- Choose pseudo-randomly.
1590
- :type turnpolicy: str | None
1610
+ :type turnpolicy: typing.Literal['FOREGROUND','BACKGROUND','LEFT','RIGHT','MINORITY','MAJORITY','RANDOM'] | None
1591
1611
  :param mode: Mode, Determines if trace simple image or full sequence
1592
1612
 
1593
1613
  SINGLE
@@ -1595,7 +1615,7 @@ def trace_image(
1595
1615
 
1596
1616
  SEQUENCE
1597
1617
  Sequence -- Trace full sequence.
1598
- :type mode: str | None
1618
+ :type mode: typing.Literal['SINGLE','SEQUENCE'] | None
1599
1619
  :param use_current_frame: Start At Current Frame, Trace Image starting in current image frame
1600
1620
  :type use_current_frame: bool | None
1601
1621
  :param frame_number: Trace Frame, Used to trace only one frame of the image sequence, set to zero to trace all
@@ -1611,7 +1631,7 @@ def weight_brush_stroke(
1611
1631
  *,
1612
1632
  stroke: bpy.types.bpy_prop_collection[bpy.types.OperatorStrokeElement]
1613
1633
  | None = None,
1614
- mode: str | None = "NORMAL",
1634
+ mode: typing.Literal["NORMAL", "INVERT", "SMOOTH", "ERASE"] | None = "NORMAL",
1615
1635
  ):
1616
1636
  """Draw weight on stroke points in the active Grease Pencil object
1617
1637
 
@@ -1633,7 +1653,7 @@ def weight_brush_stroke(
1633
1653
 
1634
1654
  ERASE
1635
1655
  Erase -- Switch brush to erase mode for duration of stroke.
1636
- :type mode: str | None
1656
+ :type mode: typing.Literal['NORMAL','INVERT','SMOOTH','ERASE'] | None
1637
1657
  """
1638
1658
 
1639
1659
  ...