blender-python-stubs 5.3.0.1__tar.gz → 5.3.0.2__tar.gz

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.
Files changed (85) hide show
  1. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/PKG-INFO +1 -1
  2. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/aud/__init__.pyi +50 -45
  3. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/blf/__init__.pyi +2 -1
  4. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/blf/types/__init__.pyi +1 -3
  5. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/bpy/app/__init__.pyi +2 -0
  6. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/bpy/types/__init__.pyi +31 -43
  7. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/bpy/utils/__init__.pyi +9 -3
  8. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/bpy_extras/anim_utils/__init__.pyi +12 -5
  9. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/bpy_extras/io_utils/__init__.pyi +144 -0
  10. blender_python_stubs-5.3.0.2/bpy_extras/node_shader_utils/__init__.pyi +2755 -0
  11. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/bpy_extras/object_utils/__init__.pyi +4 -0
  12. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/freestyle/chainingiterators/__init__.pyi +25 -0
  13. blender_python_stubs-5.3.0.2/freestyle/functions/__init__.pyi +3676 -0
  14. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/freestyle/predicates/__init__.pyi +386 -0
  15. blender_python_stubs-5.3.0.2/freestyle/shaders/__init__.pyi +3365 -0
  16. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/freestyle/types/__init__.pyi +7 -6
  17. blender_python_stubs-5.3.0.2/freestyle/utils/__init__.pyi +2615 -0
  18. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/imbuf/__init__.pyi +5 -3
  19. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/pyproject.toml +1 -1
  20. blender_python_stubs-5.3.0.1/bpy_extras/node_shader_utils/__init__.pyi +0 -197
  21. blender_python_stubs-5.3.0.1/freestyle/functions/__init__.pyi +0 -1289
  22. blender_python_stubs-5.3.0.1/freestyle/shaders/__init__.pyi +0 -819
  23. blender_python_stubs-5.3.0.1/freestyle/utils/__init__.pyi +0 -237
  24. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/.gitignore +0 -0
  25. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/.python-version +0 -0
  26. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/LICENSE +0 -0
  27. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/README.md +0 -0
  28. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/aud/py.typed +0 -0
  29. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/bl_math/__init__.pyi +0 -0
  30. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/bl_math/py.typed +0 -0
  31. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/blf/py.typed +0 -0
  32. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/bmesh/__init__.pyi +0 -0
  33. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/bmesh/geometry/__init__.pyi +0 -0
  34. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/bmesh/ops/__init__.pyi +0 -0
  35. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/bmesh/py.typed +0 -0
  36. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/bmesh/types/__init__.pyi +0 -0
  37. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/bmesh/utils/__init__.pyi +0 -0
  38. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/bpy/__init__.pyi +0 -0
  39. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/bpy/_typing.pyi +0 -0
  40. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/bpy/msgbus/__init__.pyi +0 -0
  41. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/bpy/ops/__init__.pyi +0 -0
  42. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/bpy/path/__init__.pyi +0 -0
  43. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/bpy/props/__init__.pyi +0 -0
  44. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/bpy/py.typed +0 -0
  45. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/bpy/utils/previews/__init__.pyi +0 -0
  46. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/bpy/utils/toolsystem/__init__.pyi +0 -0
  47. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/bpy_extras/__init__.pyi +0 -0
  48. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/bpy_extras/asset_utils/__init__.pyi +0 -0
  49. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/bpy_extras/bmesh_utils/__init__.pyi +0 -0
  50. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/bpy_extras/id_map_utils/__init__.pyi +0 -0
  51. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/bpy_extras/image_utils/__init__.pyi +0 -0
  52. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/bpy_extras/keyconfig_utils/__init__.pyi +0 -0
  53. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/bpy_extras/mesh_utils/__init__.pyi +0 -0
  54. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/bpy_extras/node_utils/__init__.pyi +0 -0
  55. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/bpy_extras/py.typed +0 -0
  56. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/bpy_extras/view3d_utils/__init__.pyi +0 -0
  57. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/freestyle/__init__.pyi +0 -0
  58. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/freestyle/py.typed +0 -0
  59. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/gpu/__init__.pyi +0 -0
  60. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/gpu/capabilities/__init__.pyi +0 -0
  61. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/gpu/compute/__init__.pyi +0 -0
  62. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/gpu/matrix/__init__.pyi +0 -0
  63. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/gpu/platform/__init__.pyi +0 -0
  64. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/gpu/py.typed +0 -0
  65. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/gpu/select/__init__.pyi +0 -0
  66. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/gpu/shader/__init__.pyi +0 -0
  67. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/gpu/state/__init__.pyi +0 -0
  68. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/gpu/texture/__init__.pyi +0 -0
  69. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/gpu/types/__init__.pyi +0 -0
  70. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/gpu_extras/__init__.pyi +0 -0
  71. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/gpu_extras/batch/__init__.pyi +0 -0
  72. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/gpu_extras/presets/__init__.pyi +0 -0
  73. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/gpu_extras/py.typed +0 -0
  74. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/idprop/__init__.pyi +0 -0
  75. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/idprop/py.typed +0 -0
  76. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/idprop/types/__init__.pyi +0 -0
  77. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/imbuf/py.typed +0 -0
  78. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/imbuf/types/__init__.pyi +0 -0
  79. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/mathutils/__init__.pyi +0 -0
  80. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/mathutils/bvhtree/__init__.pyi +0 -0
  81. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/mathutils/geometry/__init__.pyi +0 -0
  82. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/mathutils/interpolate/__init__.pyi +0 -0
  83. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/mathutils/kdtree/__init__.pyi +0 -0
  84. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/mathutils/noise/__init__.pyi +0 -0
  85. {blender_python_stubs-5.3.0.1 → blender_python_stubs-5.3.0.2}/mathutils/py.typed +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: blender-python-stubs
3
- Version: 5.3.0.1
3
+ Version: 5.3.0.2
4
4
  Summary: Type stubs for Blender 5.3 Python API
5
5
  Project-URL: Homepage, https://git.autourdeminuit.com/autour_de_minuit/blender-python-stubs
6
6
  Project-URL: Issues, https://git.autourdeminuit.com/autour_de_minuit/blender-python-stubs/issues
@@ -3,6 +3,7 @@ import collections.abc
3
3
  """Audaspace (pronounced "outer space") is a high level audio library."""
4
4
 
5
5
  from typing import Generic, TypeVar
6
+ import bpy.types
6
7
 
7
8
  _T = TypeVar("_T")
8
9
 
@@ -254,7 +255,7 @@ The speed of sound in air is typically 343.3 m/s."""
254
255
  sounds at the same time.
255
256
  """
256
257
 
257
- def play(self, sound: Sound, keep: bool = False) -> Handle:
258
+ def play(self, sound: bpy.types.Sound, keep: bool = False) -> Handle:
258
259
  """Plays a sound."""
259
260
 
260
261
  def stopAll(self) -> None:
@@ -291,10 +292,10 @@ class DynamicMusic:
291
292
  """The volume of the scene."""
292
293
 
293
294
  def __init__(self, device: Device, /) -> None: ...
294
- def addScene(self, scene: Sound, /) -> int:
295
+ def addScene(self, scene: bpy.types.Sound, /) -> int:
295
296
  """Adds a new scene."""
296
297
 
297
- def addTransition(self, ini: int, end: int, transition: Sound) -> bool:
298
+ def addTransition(self, ini: int, end: int, transition: bpy.types.Sound) -> bool:
298
299
  """Adds a new scene."""
299
300
 
300
301
  def pause(self) -> bool:
@@ -313,7 +314,7 @@ class HRTF:
313
314
  """
314
315
 
315
316
  def addImpulseResponseFromSound(
316
- self, sound: Sound, azimuth: float, elevation: float
317
+ self, sound: bpy.types.Sound, azimuth: float, elevation: float
317
318
  ) -> bool:
318
319
  """Adds a new hrtf to the HRTF object"""
319
320
 
@@ -420,7 +421,7 @@ class ImpulseResponse:
420
421
  :type sound: :class:`Sound`
421
422
  """
422
423
 
423
- def __init__(self, sound: Sound, /) -> None: ...
424
+ def __init__(self, sound: bpy.types.Sound, /) -> None: ...
424
425
 
425
426
  class PlaybackManager:
426
427
  """.. class:: PlaybackManager(device, /)
@@ -444,7 +445,7 @@ class PlaybackManager:
444
445
  def pause(self, catKey: int) -> bool:
445
446
  """Pauses playback of the category."""
446
447
 
447
- def play(self, sound: Sound, catKey: int) -> Handle:
448
+ def play(self, sound: bpy.types.Sound, catKey: int) -> Handle:
448
449
  """Plays a sound through the playback manager and assigns it to a category."""
449
450
 
450
451
  def resume(self, catKey: int) -> bool:
@@ -503,7 +504,9 @@ The speed of sound in air is typically 343.3 m/s."""
503
504
  fps: float = 30.0,
504
505
  muted: bool = False,
505
506
  ) -> None: ...
506
- def add(self, sound: Sound, begin: float, end: float, skip: float) -> SequenceEntry:
507
+ def add(
508
+ self, sound: bpy.types.Sound, begin: float, end: float, skip: float
509
+ ) -> SequenceEntry:
507
510
  """Adds a new entry to the sequence."""
508
511
 
509
512
  def remove(self, entry: SequenceEntry) -> None:
@@ -604,12 +607,12 @@ class Sound:
604
607
  def __init__(self, filename: str, stream: int = 0) -> None: ...
605
608
  def ADSR(
606
609
  self, attack: float, decay: float, sustain: float, release: float
607
- ) -> Sound:
610
+ ) -> bpy.types.Sound:
608
611
  """Attack-Decay-Sustain-Release envelopes the volume of a sound.
609
612
  Note: there is currently no way to trigger the release with this API.
610
613
  """
611
614
 
612
- def accumulate(self, additive: bool = False) -> Sound:
615
+ def accumulate(self, additive: bool = False) -> bpy.types.Sound:
613
616
  """Accumulates a sound by summing over positive input
614
617
  differences thus generating a monotonic sigal.
615
618
  If additivity is set to true negative input differences get added too,
@@ -618,7 +621,7 @@ class Sound:
618
621
  Note that with additivity the signal is not monotonic anymore.
619
622
  """
620
623
 
621
- def addSound(self, sound: Sound, /) -> None:
624
+ def addSound(self, sound: bpy.types.Sound, /) -> None:
622
625
  """Adds a new sound to a sound list."""
623
626
 
624
627
  def animateableTimeStretchPitchScale(
@@ -628,17 +631,19 @@ class Sound:
628
631
  pitch_scale: float | object,
629
632
  quality: int,
630
633
  preserve_formant: bool,
631
- ) -> Sound:
634
+ ) -> bpy.types.Sound:
632
635
  """Applies time-stretching and pitch-scaling to the sound."""
633
636
 
634
- def binaural(self, hrtf: HRTF, source: Source, threadPool: ThreadPool) -> Sound:
637
+ def binaural(
638
+ self, hrtf: HRTF, source: Source, threadPool: ThreadPool
639
+ ) -> bpy.types.Sound:
635
640
  """Creates a binaural sound using another sound as source. The original sound must be mono"""
636
641
 
637
642
  @classmethod
638
- def buffer(cls, data: object, rate: float) -> Sound:
643
+ def buffer(cls, data: object, rate: float) -> bpy.types.Sound:
639
644
  """Creates a sound from a data buffer."""
640
645
 
641
- def cache(self) -> Sound:
646
+ def cache(self) -> bpy.types.Sound:
642
647
  """Caches a sound into RAM.
643
648
 
644
649
  This saves CPU usage needed for decoding and file access if the
@@ -648,42 +653,42 @@ class Sound:
648
653
 
649
654
  def convolver(
650
655
  self, impulseResponse: ImpulseResponse, threadPool: ThreadPool
651
- ) -> Sound:
656
+ ) -> bpy.types.Sound:
652
657
  """Creates a sound that will apply convolution to another sound."""
653
658
 
654
659
  def data(self) -> object:
655
660
  """Retrieves the data of the sound as numpy array."""
656
661
 
657
- def delay(self, time: float) -> Sound:
662
+ def delay(self, time: float) -> bpy.types.Sound:
658
663
  """Delays by playing adding silence in front of the other sound's data."""
659
664
 
660
- def echo(self, delay: float, feedback: float, mix: float) -> Sound:
665
+ def echo(self, delay: float, feedback: float, mix: float) -> bpy.types.Sound:
661
666
  """Adds Echo effect to the sound."""
662
667
 
663
668
  def envelope(
664
669
  self, attack: float, release: float, threshold: float, arthreshold: float
665
- ) -> Sound:
670
+ ) -> bpy.types.Sound:
666
671
  """Delays by playing adding silence in front of the other sound's data."""
667
672
 
668
- def fadein(self, start: float, length: float) -> Sound:
673
+ def fadein(self, start: float, length: float) -> bpy.types.Sound:
669
674
  """Fades a sound in by raising the volume linearly in the given
670
675
  time interval.
671
676
  """
672
677
 
673
- def fadeout(self, start: float, length: float) -> Sound:
678
+ def fadeout(self, start: float, length: float) -> bpy.types.Sound:
674
679
  """Fades a sound in by lowering the volume linearly in the given
675
680
  time interval.
676
681
  """
677
682
 
678
683
  @classmethod
679
- def file(cls, filename: str) -> Sound:
684
+ def file(cls, filename: str) -> bpy.types.Sound:
680
685
  """Creates a sound object of a sound file."""
681
686
 
682
687
  def filter(
683
688
  self,
684
689
  b: collections.abc.Sequence[float],
685
690
  a: collections.abc.Sequence[float] = (1,),
686
- ) -> Sound:
691
+ ) -> bpy.types.Sound:
687
692
  """Filters a sound with the supplied IIR filter coefficients.
688
693
  Without the second parameter you'll get a FIR filter.
689
694
 
@@ -694,75 +699,75 @@ class Sound:
694
699
  in the end, you don't have to scale yourself.
695
700
  """
696
701
 
697
- def highpass(self, frequency: float, Q: float = 0.5) -> Sound:
702
+ def highpass(self, frequency: float, Q: float = 0.5) -> bpy.types.Sound:
698
703
  """Creates a second order highpass filter based on the transfer
699
704
  function :math:`H(s) = s^2 / (s^2 + s/Q + 1)`
700
705
  """
701
706
 
702
- def join(self, sound: Sound, /) -> Sound:
707
+ def join(self, sound: bpy.types.Sound, /) -> bpy.types.Sound:
703
708
  """Plays two factories in sequence."""
704
709
 
705
- def limit(self, start: float, end: float) -> Sound:
710
+ def limit(self, start: float, end: float) -> bpy.types.Sound:
706
711
  """Limits a sound within a specific start and end time."""
707
712
 
708
713
  @classmethod
709
- def list(cls, random: int) -> Sound:
714
+ def list(cls, random: int) -> bpy.types.Sound:
710
715
  """Creates an empty sound list that can contain several sounds."""
711
716
 
712
- def loop(self, count: int) -> Sound:
717
+ def loop(self, count: int) -> bpy.types.Sound:
713
718
  """Loops a sound."""
714
719
 
715
- def lowpass(self, frequency: float, Q: float = 0.5) -> Sound:
720
+ def lowpass(self, frequency: float, Q: float = 0.5) -> bpy.types.Sound:
716
721
  """Creates a second order lowpass filter based on the transfer function :math:`H(s) = 1 / (s^2 + s/Q + 1)`"""
717
722
 
718
- def mix(self, sound: Sound, /) -> Sound:
723
+ def mix(self, sound: bpy.types.Sound, /) -> bpy.types.Sound:
719
724
  """Mixes two factories."""
720
725
 
721
- def modulate(self, sound: Sound, /) -> Sound:
726
+ def modulate(self, sound: bpy.types.Sound, /) -> bpy.types.Sound:
722
727
  """Modulates two factories."""
723
728
 
724
- def mutable(self) -> Sound:
729
+ def mutable(self) -> bpy.types.Sound:
725
730
  """Creates a sound that will be restarted when sought backwards.
726
731
  If the original sound is a sound list, the playing sound can change.
727
732
  """
728
733
 
729
- def pingpong(self) -> Sound:
734
+ def pingpong(self) -> bpy.types.Sound:
730
735
  """Plays a sound forward and then backward.
731
736
  This is like joining a sound with its reverse.
732
737
  """
733
738
 
734
- def pitch(self, factor: float) -> Sound:
739
+ def pitch(self, factor: float) -> bpy.types.Sound:
735
740
  """Changes the pitch of a sound with a specific factor."""
736
741
 
737
- def rechannel(self, channels: int) -> Sound:
742
+ def rechannel(self, channels: int) -> bpy.types.Sound:
738
743
  """Rechannels the sound."""
739
744
 
740
- def resample(self, rate: float, quality: int) -> Sound:
745
+ def resample(self, rate: float, quality: int) -> bpy.types.Sound:
741
746
  """Resamples the sound."""
742
747
 
743
- def reverse(self) -> Sound:
748
+ def reverse(self) -> bpy.types.Sound:
744
749
  """Plays a sound reversed."""
745
750
 
746
751
  @classmethod
747
- def sawtooth(cls, frequency: float, rate: int) -> Sound:
752
+ def sawtooth(cls, frequency: float, rate: int) -> bpy.types.Sound:
748
753
  """Creates a sawtooth sound which plays a sawtooth wave."""
749
754
 
750
755
  @classmethod
751
- def silence(cls, rate: int) -> Sound:
756
+ def silence(cls, rate: int) -> bpy.types.Sound:
752
757
  """Creates a silence sound which plays simple silence."""
753
758
 
754
759
  @classmethod
755
- def sine(cls, frequency: float, rate: int) -> Sound:
760
+ def sine(cls, frequency: float, rate: int) -> bpy.types.Sound:
756
761
  """Creates a sine sound which plays a sine wave."""
757
762
 
758
763
  @classmethod
759
- def square(cls, frequency: float, rate: int) -> Sound:
764
+ def square(cls, frequency: float, rate: int) -> bpy.types.Sound:
760
765
  """Creates a square sound which plays a square wave."""
761
766
 
762
- def sum(self) -> Sound:
767
+ def sum(self) -> bpy.types.Sound:
763
768
  """Sums the samples of a sound."""
764
769
 
765
- def threshold(self, threshold: float = 0) -> Sound:
770
+ def threshold(self, threshold: float = 0) -> bpy.types.Sound:
766
771
  """Makes a threshold wave out of an audio wave by setting all samples
767
772
  with a amplitude >= threshold to 1, all <= -threshold to -1 and
768
773
  all between to 0.
@@ -774,14 +779,14 @@ class Sound:
774
779
  pitch_scale: float,
775
780
  quality: int,
776
781
  preserve_formant: bool,
777
- ) -> Sound:
782
+ ) -> bpy.types.Sound:
778
783
  """Applies time-stretching and pitch-scaling to the sound."""
779
784
 
780
785
  @classmethod
781
- def triangle(cls, frequency: float, rate: int) -> Sound:
786
+ def triangle(cls, frequency: float, rate: int) -> bpy.types.Sound:
782
787
  """Creates a triangle sound which plays a triangle wave."""
783
788
 
784
- def volume(self, volume: float) -> Sound:
789
+ def volume(self, volume: float) -> bpy.types.Sound:
785
790
  """Changes the volume of a sound."""
786
791
 
787
792
  def write(
@@ -1,6 +1,7 @@
1
1
  """This module provides access to Blender's text drawing functions."""
2
2
 
3
3
  from . import types as types
4
+ import blf.types
4
5
  import imbuf.types
5
6
 
6
7
  CLIPPING: int
@@ -23,7 +24,7 @@ def aspect(fontid: int, aspect: float) -> None:
23
24
 
24
25
  def bind_imbuf(
25
26
  fontid: int, imbuf: imbuf.types.ImBuf, *, display_name: str | None = None
26
- ) -> blf.types.object:
27
+ ) -> blf.types.BLFImBufContext:
27
28
  """Context manager to draw text into an image buffer instead of the GPU's context.
28
29
 
29
30
  :param fontid: The id of the typeface as returned by :func:`blf.load`, for default font use 0.
@@ -1,13 +1,11 @@
1
1
  """This module provides access to font drawing types."""
2
2
 
3
- from typing import Self
4
-
5
3
  class BLFImBufContext:
6
4
  """Context manager returned by :func:`blf.bind_imbuf` that binds an image buffer
7
5
  as the destination for text drawing.
8
6
  """
9
7
 
10
- def __enter__(self) -> Self: ...
8
+ def __enter__(self) -> None: ...
11
9
  def __exit__(
12
10
  self,
13
11
  exc_type: type[BaseException] | None,
@@ -10,6 +10,8 @@ autoexec_fail_message: str
10
10
 
11
11
  autoexec_fail_quiet: bool
12
12
 
13
+ autoexec_override: None
14
+
13
15
  background: bool
14
16
 
15
17
  binary_path: str
@@ -6,6 +6,7 @@ from typing import override
6
6
  import bpy._typing
7
7
  import builtins
8
8
  import collections.abc
9
+ import gpu.types
9
10
  import mathutils
10
11
 
11
12
  _T = TypeVar("_T")
@@ -431,10 +432,10 @@ class UIList(bpy_struct):
431
432
 
432
433
  def draw_item(
433
434
  self,
434
- context: Context | None,
435
+ context: Context,
435
436
  layout: UILayout,
436
- data: AnyType | None,
437
- item: AnyType | None,
437
+ data: AnyType,
438
+ item: AnyType,
438
439
  icon: int,
439
440
  active_data: AnyType,
440
441
  active_property: str,
@@ -443,11 +444,11 @@ class UIList(bpy_struct):
443
444
  ) -> None:
444
445
  """Draw an item in the list (NOTE: when you define your own draw_item function, you may want to check given 'item' is of the right type...)"""
445
446
 
446
- def draw_filter(self, context: Context | None, layout: UILayout) -> None:
447
+ def draw_filter(self, context: Context, layout: UILayout) -> None:
447
448
  """Draw filtering options"""
448
449
 
449
450
  def filter_items(
450
- self, context: Context | None, data: AnyType | None, property: str
451
+ self, context: Context, data: AnyType, property: str
451
452
  ) -> tuple[bpy_prop_array[int], bpy_prop_array[int]]:
452
453
  """Filter and/or re-order items of the collection (output filter results in filter_flags, and reorder results in filter_neworder arrays)"""
453
454
 
@@ -2564,11 +2565,11 @@ class AssetShelf(bpy_struct):
2564
2565
  """Filter assets by name"""
2565
2566
 
2566
2567
  @classmethod
2567
- def poll(cls, context: Context | None) -> bool:
2568
+ def poll(cls, context: Context) -> bool:
2568
2569
  """If this method returns a non-null output, the asset shelf will be visible"""
2569
2570
 
2570
2571
  @classmethod
2571
- def asset_poll(cls, asset: AssetRepresentation | None) -> bool:
2572
+ def asset_poll(cls, asset: AssetRepresentation) -> bool:
2572
2573
  """Determine if an asset should be visible in the asset shelf. If this method returns a non-null output, the asset will be visible."""
2573
2574
 
2574
2575
  @classmethod
@@ -2577,10 +2578,7 @@ class AssetShelf(bpy_struct):
2577
2578
 
2578
2579
  @classmethod
2579
2580
  def draw_context_menu(
2580
- cls,
2581
- context: Context | None,
2582
- asset: AssetRepresentation | None,
2583
- layout: UILayout | None,
2581
+ cls, context: Context, asset: AssetRepresentation, layout: UILayout
2584
2582
  ) -> None:
2585
2583
  """Draw UI elements into the context menu UI layout displayed on right click"""
2586
2584
 
@@ -2910,15 +2908,13 @@ class KeyingSetInfo(bpy_struct):
2910
2908
  bl_options: set[str]
2911
2909
  """Keying Set options to use when inserting keyframes"""
2912
2910
 
2913
- def poll(self, context: Context | None) -> bool:
2911
+ def poll(self, context: Context) -> bool:
2914
2912
  """Test if Keying Set can be used or not"""
2915
2913
 
2916
- def iterator(self, context: Context | None, ks: KeyingSet | None) -> None:
2914
+ def iterator(self, context: Context, ks: KeyingSet) -> None:
2917
2915
  """Call generate() on the structs which have properties to be keyframed"""
2918
2916
 
2919
- def generate(
2920
- self, context: Context | None, ks: KeyingSet | None, data: AnyType
2921
- ) -> None:
2917
+ def generate(self, context: Context, ks: KeyingSet, data: AnyType) -> None:
2922
2918
  """Add Paths to the Keying Set to keyframe the properties of the given data"""
2923
2919
 
2924
2920
  class Available(KeyingSetInfo): ...
@@ -7710,26 +7706,22 @@ class RenderEngine(bpy_struct):
7710
7706
  bl_use_materialx: bool
7711
7707
  """Use MaterialX for exporting materials to Hydra"""
7712
7708
 
7713
- def update(
7714
- self,
7715
- data: BlendData | None | None = None,
7716
- depsgraph: Depsgraph | None | None = None,
7717
- ) -> None:
7709
+ def update(self, data: BlendData, depsgraph: Depsgraph) -> None:
7718
7710
  """Export scene data for render"""
7719
7711
 
7720
- def render(self, depsgraph: Depsgraph | None) -> None:
7712
+ def render(self, depsgraph: Depsgraph) -> None:
7721
7713
  """Render scene into an image"""
7722
7714
 
7723
7715
  def render_frame_finish(self) -> None:
7724
7716
  """Perform finishing operations after all view layers in a frame were rendered"""
7725
7717
 
7726
- def draw(self, context: Context | None, depsgraph: Depsgraph | None) -> None:
7718
+ def draw(self, context: Context, depsgraph: Depsgraph) -> None:
7727
7719
  """Draw render image"""
7728
7720
 
7729
7721
  def bake(
7730
7722
  self,
7731
- depsgraph: Depsgraph | None,
7732
- object: Object | None,
7723
+ depsgraph: Depsgraph,
7724
+ object: Object,
7733
7725
  pass_type: Literal[
7734
7726
  "COMBINED",
7735
7727
  "AO",
@@ -7750,29 +7742,25 @@ class RenderEngine(bpy_struct):
7750
7742
  ) -> None:
7751
7743
  """Bake passes"""
7752
7744
 
7753
- def view_update(self, context: Context | None, depsgraph: Depsgraph | None) -> None:
7745
+ def view_update(self, context: Context, depsgraph: Depsgraph) -> None:
7754
7746
  """Update on data changes for viewport render"""
7755
7747
 
7756
- def view_draw(self, context: Context | None, depsgraph: Depsgraph | None) -> None:
7748
+ def view_draw(self, context: Context, depsgraph: Depsgraph) -> None:
7757
7749
  """Draw viewport render"""
7758
7750
 
7759
- def view_pause(self, context: Context | None) -> None:
7751
+ def view_pause(self, context: Context) -> None:
7760
7752
  """Pause viewport render"""
7761
7753
 
7762
- def view_resume(self, context: Context | None) -> None:
7754
+ def view_resume(self, context: Context) -> None:
7763
7755
  """Resume viewport render"""
7764
7756
 
7765
- def update_script_node(self, node: Node | None | None = None) -> None:
7757
+ def update_script_node(self, node: Node) -> None:
7766
7758
  """Compile shader script node"""
7767
7759
 
7768
- def update_render_passes(
7769
- self,
7770
- scene: Scene | None | None = None,
7771
- renderlayer: ViewLayer | None | None = None,
7772
- ) -> None:
7760
+ def update_render_passes(self, scene: Scene, renderlayer: ViewLayer) -> None:
7773
7761
  """Update the render passes that will be generated"""
7774
7762
 
7775
- def update_custom_camera(self, cam: Camera | None | None = None) -> None:
7763
+ def update_custom_camera(self, cam: Camera) -> None:
7776
7764
  """Compile custom camera"""
7777
7765
 
7778
7766
  def tag_redraw(self) -> None:
@@ -10633,10 +10621,10 @@ class Node(bpy_struct):
10633
10621
  """True if a registered node type"""
10634
10622
 
10635
10623
  @classmethod
10636
- def poll(cls, node_tree: NodeTree | None) -> bool:
10624
+ def poll(cls, node_tree: NodeTree) -> bool:
10637
10625
  """If non-null output is returned, the node type can be added to the tree"""
10638
10626
 
10639
- def poll_instance(self, node_tree: NodeTree | None) -> bool:
10627
+ def poll_instance(self, node_tree: NodeTree) -> bool:
10640
10628
  """If non-null output is returned, the node can be added to the tree"""
10641
10629
 
10642
10630
  def update(self) -> None:
@@ -19116,7 +19104,7 @@ class FileHandler(bpy_struct):
19116
19104
  For Example: ``".blend;.ble"``"""
19117
19105
 
19118
19106
  @classmethod
19119
- def poll_drop(cls, context: Context | None) -> bool:
19107
+ def poll_drop(cls, context: Context) -> bool:
19120
19108
  """If this method returns True, can be used to handle the drop of a drag-and-drop action"""
19121
19109
 
19122
19110
  @classmethod
@@ -27162,7 +27150,7 @@ class Gizmo(bpy_struct):
27162
27150
  select: bool
27163
27151
 
27164
27152
  def draw(self, context: Context) -> None: ...
27165
- def draw_select(self, context: Context, select_id: int | None = None) -> None: ...
27153
+ def draw_select(self, context: Context, select_id: int) -> None: ...
27166
27154
  def test_select(self, context: Context, location: bpy_prop_array[int]) -> int: ...
27167
27155
  def modal(self, context: Context, event: Event, tweak: set[str]) -> set[str]: ...
27168
27156
  def setup(self) -> None: ...
@@ -29699,7 +29687,7 @@ class Header(bpy_struct):
29699
29687
  bl_region_type: RegionType
29700
29688
  """The region where the header is going to be used in (defaults to header region)"""
29701
29689
 
29702
- def draw(self, context: Context | None) -> None:
29690
+ def draw(self, context: Context) -> None:
29703
29691
  """Draw UI elements into the header UI layout"""
29704
29692
 
29705
29693
  class Histogram(bpy_struct):
@@ -34995,10 +34983,10 @@ class Menu(bpy_struct):
34995
34983
  """Options for this menu type"""
34996
34984
 
34997
34985
  @classmethod
34998
- def poll(cls, context: Context | None) -> bool:
34986
+ def poll(cls, context: Context) -> bool:
34999
34987
  """If this method returns a non-null output, then the menu can be drawn"""
35000
34988
 
35001
- def draw(self, context: Context | None) -> None:
34989
+ def draw(self, context: Context) -> None:
35002
34990
  """Draw UI elements into the menu UI layout"""
35003
34991
 
35004
34992
  def draw_preset(self, context: Context) -> None:
@@ -4,13 +4,13 @@ not associated with blenders internal data."""
4
4
  from . import previews as previews
5
5
  from . import toolsystem as toolsystem
6
6
  from collections.abc import Callable
7
- from collections.abc import Iterator
8
7
  from collections.abc import Sequence
9
8
  from typing import Literal
10
9
  import bpy.types
11
10
  import datetime
11
+ import freestyle.types
12
12
 
13
- def app_template_paths(*, path: str | None = None) -> Iterator[str]:
13
+ def app_template_paths(*, path: str | None = None) -> freestyle.types.Iterator[str]:
14
14
  """Returns valid application template paths.
15
15
 
16
16
  :param path: Optional subdir.
@@ -110,7 +110,7 @@ def make_rna_paths(
110
110
  def manual_language_code(default: str = "en") -> str:
111
111
  """:param default: The fallback language code to use when the current language is unavailable."""
112
112
 
113
- def manual_map() -> Iterator[tuple[str, list[tuple[str, str]]]]:
113
+ def manual_map() -> freestyle.types.Iterator[tuple[str, list[tuple[str, str]]]]:
114
114
  """Yield manual URL mappings from all registered hooks."""
115
115
 
116
116
  def modules_from_path(path: str, loaded_modules: set[str]) -> list[object]:
@@ -281,6 +281,12 @@ def smpte_from_seconds(
281
281
  :param time: time in seconds.
282
282
  """
283
283
 
284
+ def system_resource(type: str, *, path: str | bytes = "") -> str:
285
+ """Return a system resource path.
286
+
287
+ :param type: string in ['DATAFILES', 'SCRIPTS', 'EXTENSIONS', 'PYTHON'].
288
+ """
289
+
284
290
  def time_from_frame(
285
291
  frame: int | float, *, fps: float | None = None, fps_base: float | None = None
286
292
  ) -> datetime.timedelta:
@@ -1,11 +1,16 @@
1
+ from bpy.types import ActionChannelbag as ActionChannelbag
2
+ from typing import Iterable as Iterable
3
+ from collections.abc import Mapping as Mapping
4
+ from bpy.types import PoseBone as PoseBone
5
+ from collections.abc import Sequence as Sequence
6
+ from dataclasses import dataclass as dataclass
7
+
1
8
  from collections.abc import Generator
2
- from collections.abc import Iterable
3
- from collections.abc import Iterator
4
- from collections.abc import Sequence
5
9
  from typing import TypeAlias
6
10
  from typing_extensions import override
7
11
  import bpy.types
8
12
  import collections.abc
13
+ import freestyle.types
9
14
 
10
15
  FCurveKey: TypeAlias = tuple[str, int]
11
16
 
@@ -87,6 +92,8 @@ def bake_action_objects_iter(
87
92
  action is the destination for the baked data. When None a new action will be created.
88
93
  """
89
94
 
95
+ def rna_idprop_value_to_python(value: object) -> None: ...
96
+
90
97
  class AutoKeying:
91
98
  """Auto-keying support."""
92
99
 
@@ -175,7 +182,7 @@ class AutoKeying:
175
182
  """
176
183
 
177
184
  @classmethod
178
- def keytype(cls, the_keytype: str) -> Iterator[None]:
185
+ def keytype(cls, the_keytype: str) -> freestyle.types.Iterator[None]:
179
186
  """Context manager to set the key type that's inserted.
180
187
 
181
188
  :param the_keytype: The key type to use.
@@ -190,7 +197,7 @@ class AutoKeying:
190
197
  use_rot: bool = True,
191
198
  use_scale: bool = True,
192
199
  force_autokey: bool = False
193
- ) -> Iterator[None]:
200
+ ) -> freestyle.types.Iterator[None]:
194
201
  """Context manager to set various keyframing options.
195
202
 
196
203
  :param keytype: The key type to use.