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
@@ -262,7 +262,7 @@ def decimate(
262
262
  execution_context: int | str | None = None,
263
263
  undo: bool | None = None,
264
264
  *,
265
- mode: str | None = "RATIO",
265
+ mode: typing.Literal["RATIO", "ERROR"] | None = "RATIO",
266
266
  factor: float | None = 0.333333,
267
267
  remove_error_margin: float | None = 0.0,
268
268
  ):
@@ -278,7 +278,7 @@ def decimate(
278
278
 
279
279
  ERROR
280
280
  Error Margin -- Use an error margin to specify how much the curve is allowed to deviate from the original path.
281
- :type mode: str | None
281
+ :type mode: typing.Literal['RATIO','ERROR'] | None
282
282
  :param factor: Remove, The ratio of remaining keyframes after the operation
283
283
  :type factor: float | None
284
284
  :param remove_error_margin: Max Error Margin, How much the new decimated curve is allowed to deviate from the original
@@ -356,7 +356,42 @@ def duplicate(
356
356
  execution_context: int | str | None = None,
357
357
  undo: bool | None = None,
358
358
  *,
359
- mode: str | None = "TRANSLATION",
359
+ mode: typing.Literal[
360
+ "INIT",
361
+ "DUMMY",
362
+ "TRANSLATION",
363
+ "ROTATION",
364
+ "RESIZE",
365
+ "SKIN_RESIZE",
366
+ "TOSPHERE",
367
+ "SHEAR",
368
+ "BEND",
369
+ "SHRINKFATTEN",
370
+ "TILT",
371
+ "TRACKBALL",
372
+ "PUSHPULL",
373
+ "CREASE",
374
+ "VERTEX_CREASE",
375
+ "MIRROR",
376
+ "BONE_SIZE",
377
+ "BONE_ENVELOPE",
378
+ "BONE_ENVELOPE_DIST",
379
+ "CURVE_SHRINKFATTEN",
380
+ "MASK_SHRINKFATTEN",
381
+ "GPENCIL_SHRINKFATTEN",
382
+ "BONE_ROLL",
383
+ "TIME_TRANSLATE",
384
+ "TIME_SLIDE",
385
+ "TIME_SCALE",
386
+ "TIME_EXTEND",
387
+ "BAKE_TIME",
388
+ "BWEIGHT",
389
+ "ALIGN",
390
+ "EDGESLIDE",
391
+ "SEQSLIDE",
392
+ "GPENCIL_OPACITY",
393
+ ]
394
+ | None = "TRANSLATION",
360
395
  ):
361
396
  """Make a copy of all selected keyframes
362
397
 
@@ -364,7 +399,7 @@ def duplicate(
364
399
  :type execution_context: int | str | None
365
400
  :type undo: bool | None
366
401
  :param mode: Mode
367
- :type mode: str | None
402
+ :type mode: typing.Literal['INIT', 'DUMMY', 'TRANSLATION', 'ROTATION', 'RESIZE', 'SKIN_RESIZE', 'TOSPHERE', 'SHEAR', 'BEND', 'SHRINKFATTEN', 'TILT', 'TRACKBALL', 'PUSHPULL', 'CREASE', 'VERTEX_CREASE', 'MIRROR', 'BONE_SIZE', 'BONE_ENVELOPE', 'BONE_ENVELOPE_DIST', 'CURVE_SHRINKFATTEN', 'MASK_SHRINKFATTEN', 'GPENCIL_SHRINKFATTEN', 'BONE_ROLL', 'TIME_TRANSLATE', 'TIME_SLIDE', 'TIME_SCALE', 'TIME_EXTEND', 'BAKE_TIME', 'BWEIGHT', 'ALIGN', 'EDGESLIDE', 'SEQSLIDE', 'GPENCIL_OPACITY'] | None
368
403
  """
369
404
 
370
405
  ...
@@ -416,7 +451,7 @@ def easing_type(
416
451
  execution_context: int | str | None = None,
417
452
  undo: bool | None = None,
418
453
  *,
419
- type: str | None = "AUTO",
454
+ type: typing.Literal["AUTO", "EASE_IN", "EASE_OUT", "EASE_IN_OUT"] | None = "AUTO",
420
455
  ):
421
456
  """Set easing type for the F-Curve segments starting from the selected keyframes
422
457
 
@@ -424,7 +459,7 @@ def easing_type(
424
459
  :type execution_context: int | str | None
425
460
  :type undo: bool | None
426
461
  :param type: Type
427
- :type type: str | None
462
+ :type type: typing.Literal['AUTO', 'EASE_IN', 'EASE_OUT', 'EASE_IN_OUT'] | None
428
463
  """
429
464
 
430
465
  ...
@@ -434,7 +469,7 @@ def equalize_handles(
434
469
  execution_context: int | str | None = None,
435
470
  undo: bool | None = None,
436
471
  *,
437
- side: str | None = "LEFT",
472
+ side: typing.Literal["LEFT", "RIGHT", "BOTH"] | None = "LEFT",
438
473
  handle_length: float | None = 5.0,
439
474
  flatten: bool | None = False,
440
475
  ):
@@ -453,7 +488,7 @@ def equalize_handles(
453
488
 
454
489
  BOTH
455
490
  Both -- Equalize both of a keyframe's handles.
456
- :type side: str | None
491
+ :type side: typing.Literal['LEFT','RIGHT','BOTH'] | None
457
492
  :param handle_length: Handle Length, Length to make selected keyframes' Bézier handles
458
493
  :type handle_length: float | None
459
494
  :param flatten: Flatten, Make the values of the selected keyframes' handles the same as their respective keyframes
@@ -481,7 +516,8 @@ def extrapolation_type(
481
516
  execution_context: int | str | None = None,
482
517
  undo: bool | None = None,
483
518
  *,
484
- type: str | None = "CONSTANT",
519
+ type: typing.Literal["CONSTANT", "LINEAR", "MAKE_CYCLIC", "CLEAR_CYCLIC"]
520
+ | None = "CONSTANT",
485
521
  ):
486
522
  """Set extrapolation mode for selected F-Curves
487
523
 
@@ -501,7 +537,7 @@ def extrapolation_type(
501
537
 
502
538
  CLEAR_CYCLIC
503
539
  Clear Cyclic (F-Modifier) -- Remove Cycles F-Modifier if not needed anymore.
504
- :type type: str | None
540
+ :type type: typing.Literal['CONSTANT','LINEAR','MAKE_CYCLIC','CLEAR_CYCLIC'] | None
505
541
  """
506
542
 
507
543
  ...
@@ -511,7 +547,17 @@ def fmodifier_add(
511
547
  execution_context: int | str | None = None,
512
548
  undo: bool | None = None,
513
549
  *,
514
- type: str | None = "NULL",
550
+ type: typing.Literal[
551
+ "NULL",
552
+ "GENERATOR",
553
+ "FNGENERATOR",
554
+ "ENVELOPE",
555
+ "CYCLES",
556
+ "NOISE",
557
+ "LIMITS",
558
+ "STEPPED",
559
+ ]
560
+ | None = "NULL",
515
561
  only_active: bool | None = False,
516
562
  ):
517
563
  """Add F-Modifier to the active/selected F-Curves
@@ -520,7 +566,7 @@ def fmodifier_add(
520
566
  :type execution_context: int | str | None
521
567
  :type undo: bool | None
522
568
  :param type: Type
523
- :type type: str | None
569
+ :type type: typing.Literal['NULL', 'GENERATOR', 'FNGENERATOR', 'ENVELOPE', 'CYCLES', 'NOISE', 'LIMITS', 'STEPPED'] | None
524
570
  :param only_active: Only Active, Only add F-Modifier to active F-Curve
525
571
  :type only_active: bool | None
526
572
  """
@@ -633,7 +679,8 @@ def handle_type(
633
679
  execution_context: int | str | None = None,
634
680
  undo: bool | None = None,
635
681
  *,
636
- type: str | None = "FREE",
682
+ type: typing.Literal["FREE", "ALIGNED", "VECTOR", "AUTO", "AUTO_CLAMPED"]
683
+ | None = "FREE",
637
684
  ):
638
685
  """Set type of handle for selected keyframes
639
686
 
@@ -641,7 +688,7 @@ def handle_type(
641
688
  :type execution_context: int | str | None
642
689
  :type undo: bool | None
643
690
  :param type: Type
644
- :type type: str | None
691
+ :type type: typing.Literal['FREE', 'ALIGNED', 'VECTOR', 'AUTO', 'AUTO_CLAMPED'] | None
645
692
  """
646
693
 
647
694
  ...
@@ -669,7 +716,22 @@ def interpolation_type(
669
716
  execution_context: int | str | None = None,
670
717
  undo: bool | None = None,
671
718
  *,
672
- type: str | None = "CONSTANT",
719
+ type: typing.Literal[
720
+ "CONSTANT",
721
+ "LINEAR",
722
+ "BEZIER",
723
+ "SINE",
724
+ "QUAD",
725
+ "CUBIC",
726
+ "QUART",
727
+ "QUINT",
728
+ "EXPO",
729
+ "CIRC",
730
+ "BACK",
731
+ "BOUNCE",
732
+ "ELASTIC",
733
+ ]
734
+ | None = "CONSTANT",
673
735
  ):
674
736
  """Set interpolation mode for the F-Curve segments starting from the selected keyframes
675
737
 
@@ -677,7 +739,7 @@ def interpolation_type(
677
739
  :type execution_context: int | str | None
678
740
  :type undo: bool | None
679
741
  :param type: Type
680
- :type type: str | None
742
+ :type type: typing.Literal['CONSTANT', 'LINEAR', 'BEZIER', 'SINE', 'QUAD', 'CUBIC', 'QUART', 'QUINT', 'EXPO', 'CIRC', 'BACK', 'BOUNCE', 'ELASTIC'] | None
681
743
  """
682
744
 
683
745
  ...
@@ -687,7 +749,8 @@ def keyframe_insert(
687
749
  execution_context: int | str | None = None,
688
750
  undo: bool | None = None,
689
751
  *,
690
- type: str | None = "ALL",
752
+ type: typing.Literal["ALL", "SEL", "ACTIVE", "CURSOR_ACTIVE", "CURSOR_SEL"]
753
+ | None = "ALL",
691
754
  ):
692
755
  """Insert keyframes for the specified channels
693
756
 
@@ -710,7 +773,7 @@ def keyframe_insert(
710
773
 
711
774
  CURSOR_SEL
712
775
  Selected Channels at Cursor -- Insert a keyframe for selected F-Curves at the cursor point.
713
- :type type: str | None
776
+ :type type: typing.Literal['ALL','SEL','ACTIVE','CURSOR_ACTIVE','CURSOR_SEL'] | None
714
777
  """
715
778
 
716
779
  ...
@@ -770,7 +833,7 @@ def mirror(
770
833
  execution_context: int | str | None = None,
771
834
  undo: bool | None = None,
772
835
  *,
773
- type: str | None = "CFRA",
836
+ type: typing.Literal["CFRA", "VALUE", "YAXIS", "XAXIS", "MARKER"] | None = "CFRA",
774
837
  ):
775
838
  """Flip selected keyframes over the selected mirror line
776
839
 
@@ -793,7 +856,7 @@ def mirror(
793
856
 
794
857
  MARKER
795
858
  By Times Over First Selected Marker -- Flip times of selected keyframes using the first selected marker as the reference point.
796
- :type type: str | None
859
+ :type type: typing.Literal['CFRA','VALUE','YAXIS','XAXIS','MARKER'] | None
797
860
  """
798
861
 
799
862
  ...
@@ -803,9 +866,13 @@ def paste(
803
866
  execution_context: int | str | None = None,
804
867
  undo: bool | None = None,
805
868
  *,
806
- offset: str | None = "START",
807
- value_offset: str | None = "NONE",
808
- merge: str | None = "MIX",
869
+ offset: typing.Literal["START", "END", "RELATIVE", "NONE"] | None = "START",
870
+ value_offset: typing.Literal[
871
+ "LEFT_KEY", "RIGHT_KEY", "CURRENT_FRAME", "CURSOR_VALUE", "NONE"
872
+ ]
873
+ | None = "NONE",
874
+ merge: typing.Literal["MIX", "OVER_ALL", "OVER_RANGE", "OVER_RANGE_ALL"]
875
+ | None = "MIX",
809
876
  flipped: bool | None = False,
810
877
  ):
811
878
  """Paste keyframes from the internal clipboard for the selected channels, starting on the current frame
@@ -814,11 +881,11 @@ def paste(
814
881
  :type execution_context: int | str | None
815
882
  :type undo: bool | None
816
883
  :param offset: Frame Offset, Paste time offset of keys
817
- :type offset: str | None
884
+ :type offset: typing.Literal['START', 'END', 'RELATIVE', 'NONE'] | None
818
885
  :param value_offset: Value Offset, Paste keys with a value offset
819
- :type value_offset: str | None
886
+ :type value_offset: typing.Literal['LEFT_KEY', 'RIGHT_KEY', 'CURRENT_FRAME', 'CURSOR_VALUE', 'NONE'] | None
820
887
  :param merge: Type, Method of merging pasted keys and existing
821
- :type merge: str | None
888
+ :type merge: typing.Literal['MIX', 'OVER_ALL', 'OVER_RANGE', 'OVER_RANGE_ALL'] | None
822
889
  :param flipped: Flipped, Paste keyframes from mirrored bones if they exist
823
890
  :type flipped: bool | None
824
891
  """
@@ -913,7 +980,7 @@ def scale_from_neighbor(
913
980
  undo: bool | None = None,
914
981
  *,
915
982
  factor: float | None = 0.0,
916
- anchor: str | None = "LEFT",
983
+ anchor: typing.Literal["LEFT", "RIGHT"] | None = "LEFT",
917
984
  ):
918
985
  """Increase or decrease the value of selected keys in relationship to the neighboring one
919
986
 
@@ -923,7 +990,7 @@ def scale_from_neighbor(
923
990
  :param factor: Factor, The factor to scale keys with
924
991
  :type factor: float | None
925
992
  :param anchor: Reference Key, Which end of the segment to use as a reference to scale from
926
- :type anchor: str | None
993
+ :type anchor: typing.Literal['LEFT','RIGHT'] | None
927
994
  """
928
995
 
929
996
  ...
@@ -933,7 +1000,7 @@ def select_all(
933
1000
  execution_context: int | str | None = None,
934
1001
  undo: bool | None = None,
935
1002
  *,
936
- action: str | None = "TOGGLE",
1003
+ action: typing.Literal["TOGGLE", "SELECT", "DESELECT", "INVERT"] | None = "TOGGLE",
937
1004
  ):
938
1005
  """Toggle selection of all keyframes
939
1006
 
@@ -953,7 +1020,7 @@ def select_all(
953
1020
 
954
1021
  INVERT
955
1022
  Invert -- Invert selection of all elements.
956
- :type action: str | None
1023
+ :type action: typing.Literal['TOGGLE','SELECT','DESELECT','INVERT'] | None
957
1024
  """
958
1025
 
959
1026
  ...
@@ -972,7 +1039,7 @@ def select_box(
972
1039
  ymin: int | None = 0,
973
1040
  ymax: int | None = 0,
974
1041
  wait_for_input: bool | None = True,
975
- mode: str | None = "SET",
1042
+ mode: typing.Literal["SET", "ADD", "SUB"] | None = "SET",
976
1043
  ):
977
1044
  """Select all keyframes within the specified region
978
1045
 
@@ -1007,7 +1074,7 @@ def select_box(
1007
1074
 
1008
1075
  SUB
1009
1076
  Subtract -- Subtract existing selection.
1010
- :type mode: str | None
1077
+ :type mode: typing.Literal['SET','ADD','SUB'] | None
1011
1078
  """
1012
1079
 
1013
1080
  ...
@@ -1021,7 +1088,7 @@ def select_circle(
1021
1088
  y: int | None = 0,
1022
1089
  radius: int | None = 25,
1023
1090
  wait_for_input: bool | None = True,
1024
- mode: str | None = "SET",
1091
+ mode: typing.Literal["SET", "ADD", "SUB"] | None = "SET",
1025
1092
  use_curve_selection: bool | None = True,
1026
1093
  ):
1027
1094
  """Select keyframe points using circle selection
@@ -1047,7 +1114,7 @@ def select_circle(
1047
1114
 
1048
1115
  SUB
1049
1116
  Subtract -- Subtract existing selection.
1050
- :type mode: str | None
1117
+ :type mode: typing.Literal['SET','ADD','SUB'] | None
1051
1118
  :param use_curve_selection: Select Curves, Allow selecting all the keyframes of a curve by selecting the curve itself
1052
1119
  :type use_curve_selection: bool | None
1053
1120
  """
@@ -1059,7 +1126,8 @@ def select_column(
1059
1126
  execution_context: int | str | None = None,
1060
1127
  undo: bool | None = None,
1061
1128
  *,
1062
- mode: str | None = "KEYS",
1129
+ mode: typing.Literal["KEYS", "CFRA", "MARKERS_COLUMN", "MARKERS_BETWEEN"]
1130
+ | None = "KEYS",
1063
1131
  ):
1064
1132
  """Select all keyframes on the specified frame(s)
1065
1133
 
@@ -1067,7 +1135,7 @@ def select_column(
1067
1135
  :type execution_context: int | str | None
1068
1136
  :type undo: bool | None
1069
1137
  :param mode: Mode
1070
- :type mode: str | None
1138
+ :type mode: typing.Literal['KEYS','CFRA','MARKERS_COLUMN','MARKERS_BETWEEN'] | None
1071
1139
  """
1072
1140
 
1073
1141
  ...
@@ -1077,9 +1145,9 @@ def select_key_handles(
1077
1145
  execution_context: int | str | None = None,
1078
1146
  undo: bool | None = None,
1079
1147
  *,
1080
- left_handle_action: str | None = "SELECT",
1081
- right_handle_action: str | None = "SELECT",
1082
- key_action: str | None = "KEEP",
1148
+ left_handle_action: typing.Literal["SELECT", "DESELECT", "KEEP"] | None = "SELECT",
1149
+ right_handle_action: typing.Literal["SELECT", "DESELECT", "KEEP"] | None = "SELECT",
1150
+ key_action: typing.Literal["SELECT", "DESELECT", "KEEP"] | None = "KEEP",
1083
1151
  ):
1084
1152
  """For selected keyframes, select/deselect any combination of the key itself and its handles
1085
1153
 
@@ -1096,7 +1164,7 @@ def select_key_handles(
1096
1164
 
1097
1165
  KEEP
1098
1166
  Keep -- Leave as is.
1099
- :type left_handle_action: str | None
1167
+ :type left_handle_action: typing.Literal['SELECT','DESELECT','KEEP'] | None
1100
1168
  :param right_handle_action: Right Handle, Effect on the right handle
1101
1169
 
1102
1170
  SELECT
@@ -1107,7 +1175,7 @@ def select_key_handles(
1107
1175
 
1108
1176
  KEEP
1109
1177
  Keep -- Leave as is.
1110
- :type right_handle_action: str | None
1178
+ :type right_handle_action: typing.Literal['SELECT','DESELECT','KEEP'] | None
1111
1179
  :param key_action: Key, Effect on the key itself
1112
1180
 
1113
1181
  SELECT
@@ -1118,7 +1186,7 @@ def select_key_handles(
1118
1186
 
1119
1187
  KEEP
1120
1188
  Keep -- Leave as is.
1121
- :type key_action: str | None
1189
+ :type key_action: typing.Literal['SELECT','DESELECT','KEEP'] | None
1122
1190
  """
1123
1191
 
1124
1192
  ...
@@ -1132,7 +1200,7 @@ def select_lasso(
1132
1200
  use_smooth_stroke: bool | None = False,
1133
1201
  smooth_stroke_factor: float | None = 0.75,
1134
1202
  smooth_stroke_radius: int | None = 35,
1135
- mode: str | None = "SET",
1203
+ mode: typing.Literal["SET", "ADD", "SUB"] | None = "SET",
1136
1204
  use_curve_selection: bool | None = True,
1137
1205
  ):
1138
1206
  """Select keyframe points using lasso selection
@@ -1158,7 +1226,7 @@ def select_lasso(
1158
1226
 
1159
1227
  SUB
1160
1228
  Subtract -- Subtract existing selection.
1161
- :type mode: str | None
1229
+ :type mode: typing.Literal['SET','ADD','SUB'] | None
1162
1230
  :param use_curve_selection: Select Curves, Allow selecting all the keyframes of a curve by selecting the curve itself
1163
1231
  :type use_curve_selection: bool | None
1164
1232
  """
@@ -1170,7 +1238,7 @@ def select_leftright(
1170
1238
  execution_context: int | str | None = None,
1171
1239
  undo: bool | None = None,
1172
1240
  *,
1173
- mode: str | None = "CHECK",
1241
+ mode: typing.Literal["CHECK", "LEFT", "RIGHT"] | None = "CHECK",
1174
1242
  extend: bool | None = False,
1175
1243
  ):
1176
1244
  """Select keyframes to the left or the right of the current frame
@@ -1179,7 +1247,7 @@ def select_leftright(
1179
1247
  :type execution_context: int | str | None
1180
1248
  :type undo: bool | None
1181
1249
  :param mode: Mode
1182
- :type mode: str | None
1250
+ :type mode: typing.Literal['CHECK','LEFT','RIGHT'] | None
1183
1251
  :param extend: Extend Select
1184
1252
  :type extend: bool | None
1185
1253
  """
@@ -1234,7 +1302,7 @@ def shear(
1234
1302
  undo: bool | None = None,
1235
1303
  *,
1236
1304
  factor: float | None = 0.0,
1237
- direction: str | None = "FROM_LEFT",
1305
+ direction: typing.Literal["FROM_LEFT", "FROM_RIGHT"] | None = "FROM_LEFT",
1238
1306
  ):
1239
1307
  """Affect the value of the keys linearly, keeping the same relationship between them using either the left or the right key as reference
1240
1308
 
@@ -1250,7 +1318,7 @@ def shear(
1250
1318
 
1251
1319
  FROM_RIGHT
1252
1320
  From Right -- Shear the keys using the right key as reference.
1253
- :type direction: str | None
1321
+ :type direction: typing.Literal['FROM_LEFT','FROM_RIGHT'] | None
1254
1322
  """
1255
1323
 
1256
1324
  ...
@@ -1274,7 +1342,15 @@ def snap(
1274
1342
  execution_context: int | str | None = None,
1275
1343
  undo: bool | None = None,
1276
1344
  *,
1277
- type: str | None = "CFRA",
1345
+ type: typing.Literal[
1346
+ "CFRA",
1347
+ "VALUE",
1348
+ "NEAREST_FRAME",
1349
+ "NEAREST_SECOND",
1350
+ "NEAREST_MARKER",
1351
+ "HORIZONTAL",
1352
+ ]
1353
+ | None = "CFRA",
1278
1354
  ):
1279
1355
  """Snap selected keyframes to the chosen times/values
1280
1356
 
@@ -1300,7 +1376,7 @@ def snap(
1300
1376
 
1301
1377
  HORIZONTAL
1302
1378
  Flatten Handles -- Flatten handles for a smoother transition.
1303
- :type type: str | None
1379
+ :type type: typing.Literal['CFRA','VALUE','NEAREST_FRAME','NEAREST_SECOND','NEAREST_MARKER','HORIZONTAL'] | None
1304
1380
  """
1305
1381
 
1306
1382
  ...
@@ -1346,7 +1422,10 @@ def sound_to_samples(
1346
1422
  filemode: int | None = 9,
1347
1423
  show_multiview: bool | None = False,
1348
1424
  use_multiview: bool | None = False,
1349
- display_type: str | None = "DEFAULT",
1425
+ display_type: typing.Literal[
1426
+ "DEFAULT", "LIST_VERTICAL", "LIST_HORIZONTAL", "THUMBNAIL"
1427
+ ]
1428
+ | None = "DEFAULT",
1350
1429
  sort_method: str | None = "",
1351
1430
  low: float | None = 0.0,
1352
1431
  high: float | None = 100000.0,
@@ -1420,7 +1499,7 @@ def sound_to_samples(
1420
1499
 
1421
1500
  THUMBNAIL
1422
1501
  Thumbnails -- Display files as thumbnails.
1423
- :type display_type: str | None
1502
+ :type display_type: typing.Literal['DEFAULT','LIST_VERTICAL','LIST_HORIZONTAL','THUMBNAIL'] | None
1424
1503
  :param sort_method: File sorting mode
1425
1504
  :type sort_method: str | None
1426
1505
  :param low: Lowest Frequency, Cutoff frequency of a high-pass filter that is applied to the audio data