fake-bpy-module 20240719__py3-none-any.whl → 20240721__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of fake-bpy-module might be problematic. Click here for more details.

aud/__init__.pyi CHANGED
@@ -157,25 +157,25 @@ class DynamicMusic:
157
157
  class HRTF:
158
158
  """An HRTF object represents a set of head related transfer functions as impulse responses. It's used for binaural sound"""
159
159
 
160
- def loadLeftHrtfSet(self, extension: str, directory) -> HRTF:
160
+ def loadLeftHrtfSet(self, extension: str, directory) -> typing.Self:
161
161
  """Loads all HRTFs from a directory.
162
162
 
163
163
  :param extension: The file extension of the hrtfs.
164
164
  :type extension: str
165
165
  :param directory: The path to where the HRTF files are located.
166
166
  :return: The loaded `HRTF` object.
167
- :rtype: HRTF
167
+ :rtype: typing.Self
168
168
  """
169
169
  ...
170
170
 
171
- def loadRightHrtfSet(self, extension: str, directory) -> HRTF:
171
+ def loadRightHrtfSet(self, extension: str, directory) -> typing.Self:
172
172
  """Loads all HRTFs from a directory.
173
173
 
174
174
  :param extension: The file extension of the hrtfs.
175
175
  :type extension: str
176
176
  :param directory: The path to where the HRTF files are located.
177
177
  :return: The loaded `HRTF` object.
178
- :rtype: HRTF
178
+ :rtype: typing.Self
179
179
  """
180
180
  ...
181
181
 
@@ -466,39 +466,39 @@ class Sound:
466
466
  """ The sample specification of the sound as a tuple with rate and channel count."""
467
467
 
468
468
  @classmethod
469
- def buffer(cls, data, rate: float) -> Sound:
469
+ def buffer(cls, data, rate: float) -> typing.Self:
470
470
  """Creates a sound from a data buffer.
471
471
 
472
472
  :param data: The data as two dimensional numpy array.
473
473
  :param rate: The sample rate.
474
474
  :type rate: float
475
475
  :return: The created `Sound` object.
476
- :rtype: Sound
476
+ :rtype: typing.Self
477
477
  """
478
478
  ...
479
479
 
480
480
  @classmethod
481
- def file(cls, filename: str) -> Sound:
481
+ def file(cls, filename: str) -> typing.Self:
482
482
  """Creates a sound object of a sound file.
483
483
 
484
484
  :param filename: Path of the file.
485
485
  :type filename: str
486
486
  :return: The created `Sound` object.
487
- :rtype: Sound
487
+ :rtype: typing.Self
488
488
  """
489
489
  ...
490
490
 
491
491
  @classmethod
492
- def list(cls) -> Sound:
492
+ def list(cls) -> typing.Self:
493
493
  """Creates an empty sound list that can contain several sounds.
494
494
 
495
495
  :return: The created `Sound` object.
496
- :rtype: Sound
496
+ :rtype: typing.Self
497
497
  """
498
498
  ...
499
499
 
500
500
  @classmethod
501
- def sawtooth(cls, frequency: float, rate: int = 48000) -> Sound:
501
+ def sawtooth(cls, frequency: float, rate: int = 48000) -> typing.Self:
502
502
  """Creates a sawtooth sound which plays a sawtooth wave.
503
503
 
504
504
  :param frequency: The frequency of the sawtooth wave in Hz.
@@ -507,24 +507,24 @@ class Sound:
507
507
  value to the playback device's samling rate to avoid resamping.
508
508
  :type rate: int
509
509
  :return: The created `Sound` object.
510
- :rtype: Sound
510
+ :rtype: typing.Self
511
511
  """
512
512
  ...
513
513
 
514
514
  @classmethod
515
- def silence(cls, rate: int = 48000) -> Sound:
515
+ def silence(cls, rate: int = 48000) -> typing.Self:
516
516
  """Creates a silence sound which plays simple silence.
517
517
 
518
518
  :param rate: The sampling rate in Hz. It's recommended to set this
519
519
  value to the playback device's samling rate to avoid resamping.
520
520
  :type rate: int
521
521
  :return: The created `Sound` object.
522
- :rtype: Sound
522
+ :rtype: typing.Self
523
523
  """
524
524
  ...
525
525
 
526
526
  @classmethod
527
- def sine(cls, frequency: float, rate: int = 48000) -> Sound:
527
+ def sine(cls, frequency: float, rate: int = 48000) -> typing.Self:
528
528
  """Creates a sine sound which plays a sine wave.
529
529
 
530
530
  :param frequency: The frequency of the sine wave in Hz.
@@ -533,12 +533,12 @@ class Sound:
533
533
  value to the playback device's samling rate to avoid resamping.
534
534
  :type rate: int
535
535
  :return: The created `Sound` object.
536
- :rtype: Sound
536
+ :rtype: typing.Self
537
537
  """
538
538
  ...
539
539
 
540
540
  @classmethod
541
- def square(cls, frequency: float, rate: int = 48000) -> Sound:
541
+ def square(cls, frequency: float, rate: int = 48000) -> typing.Self:
542
542
  """Creates a square sound which plays a square wave.
543
543
 
544
544
  :param frequency: The frequency of the square wave in Hz.
@@ -547,12 +547,12 @@ class Sound:
547
547
  value to the playback device's samling rate to avoid resamping.
548
548
  :type rate: int
549
549
  :return: The created `Sound` object.
550
- :rtype: Sound
550
+ :rtype: typing.Self
551
551
  """
552
552
  ...
553
553
 
554
554
  @classmethod
555
- def triangle(cls, frequency: float, rate: int = 48000) -> Sound:
555
+ def triangle(cls, frequency: float, rate: int = 48000) -> typing.Self:
556
556
  """Creates a triangle sound which plays a triangle wave.
557
557
 
558
558
  :param frequency: The frequency of the triangle wave in Hz.
@@ -561,13 +561,13 @@ class Sound:
561
561
  value to the playback device's samling rate to avoid resamping.
562
562
  :type rate: int
563
563
  :return: The created `Sound` object.
564
- :rtype: Sound
564
+ :rtype: typing.Self
565
565
  """
566
566
  ...
567
567
 
568
568
  def ADSR(
569
569
  self, attack: float, decay: float, sustain: float, release: float
570
- ) -> Sound:
570
+ ) -> typing.Self:
571
571
  """Attack-Decay-Sustain-Release envelopes the volume of a sound.
572
572
  Note: there is currently no way to trigger the release with this API.
573
573
 
@@ -580,11 +580,11 @@ class Sound:
580
580
  :param release: The release level.
581
581
  :type release: float
582
582
  :return: The created `Sound` object.
583
- :rtype: Sound
583
+ :rtype: typing.Self
584
584
  """
585
585
  ...
586
586
 
587
- def accumulate(self, additive=False) -> Sound:
587
+ def accumulate(self, additive=False) -> typing.Self:
588
588
  """Accumulates a sound by summing over positive input
589
589
  differences thus generating a monotonic sigal.
590
590
  If additivity is set to true negative input differences get added too,
@@ -592,41 +592,41 @@ class Sound:
592
592
 
593
593
  :param additive: Whether the accumulation should be additive or not.
594
594
  :return: The created `Sound` object.
595
- :rtype: Sound
595
+ :rtype: typing.Self
596
596
  """
597
597
  ...
598
598
 
599
- def addSound(self, sound: Sound):
599
+ def addSound(self, sound: typing.Self):
600
600
  """Adds a new sound to a sound list.
601
601
 
602
602
  :param sound: The sound that will be added to the list.
603
- :type sound: Sound
603
+ :type sound: typing.Self
604
604
  """
605
605
  ...
606
606
 
607
- def binaural(self) -> Sound:
607
+ def binaural(self) -> typing.Self:
608
608
  """Creates a binaural sound using another sound as source. The original sound must be mono
609
609
 
610
610
  :return: The created `Sound` object.
611
- :rtype: Sound
611
+ :rtype: typing.Self
612
612
  """
613
613
  ...
614
614
 
615
- def cache(self) -> Sound:
615
+ def cache(self) -> typing.Self:
616
616
  """Caches a sound into RAM.This saves CPU usage needed for decoding and file access if the
617
617
  underlying sound reads from a file on the harddisk,
618
618
  but it consumes a lot of memory.
619
619
 
620
620
  :return: The created `Sound` object.
621
- :rtype: Sound
621
+ :rtype: typing.Self
622
622
  """
623
623
  ...
624
624
 
625
- def convolver(self) -> Sound:
625
+ def convolver(self) -> typing.Self:
626
626
  """Creates a sound that will apply convolution to another sound.
627
627
 
628
628
  :return: The created `Sound` object.
629
- :rtype: Sound
629
+ :rtype: typing.Self
630
630
  """
631
631
  ...
632
632
 
@@ -637,19 +637,19 @@ class Sound:
637
637
  """
638
638
  ...
639
639
 
640
- def delay(self, time: float) -> Sound:
640
+ def delay(self, time: float) -> typing.Self:
641
641
  """Delays by playing adding silence in front of the other sound's data.
642
642
 
643
643
  :param time: How many seconds of silence should be added before the sound.
644
644
  :type time: float
645
645
  :return: The created `Sound` object.
646
- :rtype: Sound
646
+ :rtype: typing.Self
647
647
  """
648
648
  ...
649
649
 
650
650
  def envelope(
651
651
  self, attack: float, release: float, threshold: float, arthreshold: float
652
- ) -> Sound:
652
+ ) -> typing.Self:
653
653
  """Delays by playing adding silence in front of the other sound's data.
654
654
 
655
655
  :param attack: The attack factor.
@@ -661,11 +661,11 @@ class Sound:
661
661
  :param arthreshold: The attack/release threshold value.
662
662
  :type arthreshold: float
663
663
  :return: The created `Sound` object.
664
- :rtype: Sound
664
+ :rtype: typing.Self
665
665
  """
666
666
  ...
667
667
 
668
- def fadein(self, start: float, length: float) -> Sound:
668
+ def fadein(self, start: float, length: float) -> typing.Self:
669
669
  """Fades a sound in by raising the volume linearly in the given
670
670
  time interval.
671
671
 
@@ -674,11 +674,11 @@ class Sound:
674
674
  :param length: Time in seconds how long the fading should last.
675
675
  :type length: float
676
676
  :return: The created `Sound` object.
677
- :rtype: Sound
677
+ :rtype: typing.Self
678
678
  """
679
679
  ...
680
680
 
681
- def fadeout(self, start: float, length: float) -> Sound:
681
+ def fadeout(self, start: float, length: float) -> typing.Self:
682
682
  """Fades a sound in by lowering the volume linearly in the given
683
683
  time interval.
684
684
 
@@ -687,11 +687,11 @@ class Sound:
687
687
  :param length: Time in seconds how long the fading should last.
688
688
  :type length: float
689
689
  :return: The created `Sound` object.
690
- :rtype: Sound
690
+ :rtype: typing.Self
691
691
  """
692
692
  ...
693
693
 
694
- def filter(self, b: list[float], a: list[float] = 1) -> Sound:
694
+ def filter(self, b: list[float], a: list[float] = 1) -> typing.Self:
695
695
  """Filters a sound with the supplied IIR filter coefficients.
696
696
  Without the second parameter you'll get a FIR filter.If the first value of the a sequence is 0,
697
697
  it will be set to 1 automatically.
@@ -704,11 +704,11 @@ class Sound:
704
704
  :param a: The denominator filter coefficients.
705
705
  :type a: list[float]
706
706
  :return: The created `Sound` object.
707
- :rtype: Sound
707
+ :rtype: typing.Self
708
708
  """
709
709
  ...
710
710
 
711
- def highpass(self, frequency: float, Q: float = 0.5) -> Sound:
711
+ def highpass(self, frequency: float, Q: float = 0.5) -> typing.Self:
712
712
  """Creates a second order highpass filter based on the transfer
713
713
  function H(s) = s^2 / (s^2 + s/Q + 1)
714
714
 
@@ -717,21 +717,21 @@ class Sound:
717
717
  :param Q: Q factor of the lowpass.
718
718
  :type Q: float
719
719
  :return: The created `Sound` object.
720
- :rtype: Sound
720
+ :rtype: typing.Self
721
721
  """
722
722
  ...
723
723
 
724
- def join(self, sound: Sound) -> Sound:
724
+ def join(self, sound: typing.Self) -> typing.Self:
725
725
  """Plays two factories in sequence.
726
726
 
727
727
  :param sound: The sound to play second.
728
- :type sound: Sound
728
+ :type sound: typing.Self
729
729
  :return: The created `Sound` object.
730
- :rtype: Sound
730
+ :rtype: typing.Self
731
731
  """
732
732
  ...
733
733
 
734
- def limit(self, start: float, end: float) -> Sound:
734
+ def limit(self, start: float, end: float) -> typing.Self:
735
735
  """Limits a sound within a specific start and end time.
736
736
 
737
737
  :param start: Start time in seconds.
@@ -739,22 +739,22 @@ class Sound:
739
739
  :param end: End time in seconds.
740
740
  :type end: float
741
741
  :return: The created `Sound` object.
742
- :rtype: Sound
742
+ :rtype: typing.Self
743
743
  """
744
744
  ...
745
745
 
746
- def loop(self, count: int) -> Sound:
746
+ def loop(self, count: int) -> typing.Self:
747
747
  """Loops a sound.
748
748
 
749
749
  :param count: How often the sound should be looped.
750
750
  Negative values mean endlessly.
751
751
  :type count: int
752
752
  :return: The created `Sound` object.
753
- :rtype: Sound
753
+ :rtype: typing.Self
754
754
  """
755
755
  ...
756
756
 
757
- def lowpass(self, frequency: float, Q: float = 0.5) -> Sound:
757
+ def lowpass(self, frequency: float, Q: float = 0.5) -> typing.Self:
758
758
  """Creates a second order lowpass filter based on the transfer function H(s) = 1 / (s^2 + s/Q + 1)
759
759
 
760
760
  :param frequency: The cut off trequency of the lowpass.
@@ -762,69 +762,69 @@ class Sound:
762
762
  :param Q: Q factor of the lowpass.
763
763
  :type Q: float
764
764
  :return: The created `Sound` object.
765
- :rtype: Sound
765
+ :rtype: typing.Self
766
766
  """
767
767
  ...
768
768
 
769
- def mix(self, sound: Sound) -> Sound:
769
+ def mix(self, sound: typing.Self) -> typing.Self:
770
770
  """Mixes two factories.
771
771
 
772
772
  :param sound: The sound to mix over the other.
773
- :type sound: Sound
773
+ :type sound: typing.Self
774
774
  :return: The created `Sound` object.
775
- :rtype: Sound
775
+ :rtype: typing.Self
776
776
  """
777
777
  ...
778
778
 
779
- def modulate(self, sound: Sound) -> Sound:
779
+ def modulate(self, sound: typing.Self) -> typing.Self:
780
780
  """Modulates two factories.
781
781
 
782
782
  :param sound: The sound to modulate over the other.
783
- :type sound: Sound
783
+ :type sound: typing.Self
784
784
  :return: The created `Sound` object.
785
- :rtype: Sound
785
+ :rtype: typing.Self
786
786
  """
787
787
  ...
788
788
 
789
- def mutable(self) -> Sound:
789
+ def mutable(self) -> typing.Self:
790
790
  """Creates a sound that will be restarted when sought backwards.
791
791
  If the original sound is a sound list, the playing sound can change.
792
792
 
793
793
  :return: The created `Sound` object.
794
- :rtype: Sound
794
+ :rtype: typing.Self
795
795
  """
796
796
  ...
797
797
 
798
- def pingpong(self) -> Sound:
798
+ def pingpong(self) -> typing.Self:
799
799
  """Plays a sound forward and then backward.
800
800
  This is like joining a sound with its reverse.
801
801
 
802
802
  :return: The created `Sound` object.
803
- :rtype: Sound
803
+ :rtype: typing.Self
804
804
  """
805
805
  ...
806
806
 
807
- def pitch(self, factor: float) -> Sound:
807
+ def pitch(self, factor: float) -> typing.Self:
808
808
  """Changes the pitch of a sound with a specific factor.
809
809
 
810
810
  :param factor: The factor to change the pitch with.
811
811
  :type factor: float
812
812
  :return: The created `Sound` object.
813
- :rtype: Sound
813
+ :rtype: typing.Self
814
814
  """
815
815
  ...
816
816
 
817
- def rechannel(self, channels: int) -> Sound:
817
+ def rechannel(self, channels: int) -> typing.Self:
818
818
  """Rechannels the sound.
819
819
 
820
820
  :param channels: The new channel configuration.
821
821
  :type channels: int
822
822
  :return: The created `Sound` object.
823
- :rtype: Sound
823
+ :rtype: typing.Self
824
824
  """
825
825
  ...
826
826
 
827
- def resample(self, rate: float, quality: int) -> Sound:
827
+ def resample(self, rate: float, quality: int) -> typing.Self:
828
828
  """Resamples the sound.
829
829
 
830
830
  :param rate: The new sample rate.
@@ -832,27 +832,27 @@ class Sound:
832
832
  :param quality: Resampler performance vs quality choice (0=fastest, 3=slowest).
833
833
  :type quality: int
834
834
  :return: The created `Sound` object.
835
- :rtype: Sound
835
+ :rtype: typing.Self
836
836
  """
837
837
  ...
838
838
 
839
- def reverse(self) -> Sound:
839
+ def reverse(self) -> typing.Self:
840
840
  """Plays a sound reversed.
841
841
 
842
842
  :return: The created `Sound` object.
843
- :rtype: Sound
843
+ :rtype: typing.Self
844
844
  """
845
845
  ...
846
846
 
847
- def sum(self) -> Sound:
847
+ def sum(self) -> typing.Self:
848
848
  """Sums the samples of a sound.
849
849
 
850
850
  :return: The created `Sound` object.
851
- :rtype: Sound
851
+ :rtype: typing.Self
852
852
  """
853
853
  ...
854
854
 
855
- def threshold(self, threshold: float = 0) -> Sound:
855
+ def threshold(self, threshold: float = 0) -> typing.Self:
856
856
  """Makes a threshold wave out of an audio wave by setting all samples
857
857
  with a amplitude >= threshold to 1, all <= -threshold to -1 and
858
858
  all between to 0.
@@ -861,17 +861,17 @@ class Sound:
861
861
  non-zero.
862
862
  :type threshold: float
863
863
  :return: The created `Sound` object.
864
- :rtype: Sound
864
+ :rtype: typing.Self
865
865
  """
866
866
  ...
867
867
 
868
- def volume(self, volume: float) -> Sound:
868
+ def volume(self, volume: float) -> typing.Self:
869
869
  """Changes the volume of a sound.
870
870
 
871
871
  :param volume: The new volume..
872
872
  :type volume: float
873
873
  :return: The created `Sound` object.
874
- :rtype: Sound
874
+ :rtype: typing.Self
875
875
  """
876
876
  ...
877
877
 
bmesh/types/__init__.pyi CHANGED
@@ -204,11 +204,11 @@ class BMEdge:
204
204
  """
205
205
  ...
206
206
 
207
- def copy_from(self, other: BMEdge):
207
+ def copy_from(self, other: typing.Self):
208
208
  """Copy values from another element of matching type.
209
209
 
210
210
  :param other:
211
- :type other: BMEdge
211
+ :type other: typing.Self
212
212
  """
213
213
  ...
214
214
 
@@ -595,7 +595,7 @@ class BMFace:
595
595
  """
596
596
  ...
597
597
 
598
- def copy(self, verts: bool = True, edges: bool = True) -> BMFace:
598
+ def copy(self, verts: bool = True, edges: bool = True) -> typing.Self:
599
599
  """Make a copy of this face.
600
600
 
601
601
  :param verts: When set, the faces verts will be duplicated too.
@@ -603,23 +603,23 @@ class BMFace:
603
603
  :param edges: When set, the faces edges will be duplicated too.
604
604
  :type edges: bool
605
605
  :return: The newly created face.
606
- :rtype: BMFace
606
+ :rtype: typing.Self
607
607
  """
608
608
  ...
609
609
 
610
- def copy_from(self, other: BMFace):
610
+ def copy_from(self, other: typing.Self):
611
611
  """Copy values from another element of matching type.
612
612
 
613
613
  :param other:
614
- :type other: BMFace
614
+ :type other: typing.Self
615
615
  """
616
616
  ...
617
617
 
618
- def copy_from_face_interp(self, face: BMFace, vert: bool = True):
618
+ def copy_from_face_interp(self, face: typing.Self, vert: bool = True):
619
619
  """Interpolate the customdata from another face onto this one (faces should overlap).
620
620
 
621
621
  :param face: The face to interpolate data from.
622
- :type face: BMFace
622
+ :type face: typing.Self
623
623
  :param vert: When True, also copy vertex data.
624
624
  :type vert: bool
625
625
  """
@@ -1041,7 +1041,7 @@ class BMLayerCollection:
1041
1041
  """
1042
1042
  ...
1043
1043
 
1044
- def new(self, name: str | None) -> BMLayerItem:
1044
+ def new(self, name: str | None = "") -> BMLayerItem:
1045
1045
  """Create a new layer
1046
1046
 
1047
1047
  :param name: Optional name argument (will be made unique).
@@ -1085,11 +1085,11 @@ class BMLayerItem:
1085
1085
  :type: str
1086
1086
  """
1087
1087
 
1088
- def copy_from(self, other: BMLayerItem):
1088
+ def copy_from(self, other: typing.Self):
1089
1089
  """Return a copy of the layer
1090
1090
 
1091
1091
  :param other: Another layer to copy from.
1092
- :type other: BMLayerItem
1092
+ :type other: typing.Self
1093
1093
  """
1094
1094
  ...
1095
1095
 
@@ -1126,28 +1126,28 @@ class BMLoop:
1126
1126
  :type: bool
1127
1127
  """
1128
1128
 
1129
- link_loop_next: BMLoop
1129
+ link_loop_next: typing.Self
1130
1130
  """ The next face corner (read-only).
1131
1131
 
1132
- :type: BMLoop
1132
+ :type: typing.Self
1133
1133
  """
1134
1134
 
1135
- link_loop_prev: BMLoop
1135
+ link_loop_prev: typing.Self
1136
1136
  """ The previous face corner (read-only).
1137
1137
 
1138
- :type: BMLoop
1138
+ :type: typing.Self
1139
1139
  """
1140
1140
 
1141
- link_loop_radial_next: BMLoop
1141
+ link_loop_radial_next: typing.Self
1142
1142
  """ The next loop around the edge (read-only).
1143
1143
 
1144
- :type: BMLoop
1144
+ :type: typing.Self
1145
1145
  """
1146
1146
 
1147
- link_loop_radial_prev: BMLoop
1147
+ link_loop_radial_prev: typing.Self
1148
1148
  """ The previous loop around the edge (read-only).
1149
1149
 
1150
- :type: BMLoop
1150
+ :type: typing.Self
1151
1151
  """
1152
1152
 
1153
1153
  link_loops: BMElemSeq[BMLoop]
@@ -1195,11 +1195,11 @@ class BMLoop:
1195
1195
  """
1196
1196
  ...
1197
1197
 
1198
- def copy_from(self, other: BMLoop):
1198
+ def copy_from(self, other: typing.Self):
1199
1199
  """Copy values from another element of matching type.
1200
1200
 
1201
1201
  :param other:
1202
- :type other: BMLoop
1202
+ :type other: typing.Self
1203
1203
  """
1204
1204
  ...
1205
1205
 
@@ -1379,11 +1379,11 @@ class BMVert:
1379
1379
  """
1380
1380
  ...
1381
1381
 
1382
- def copy_from(self, other: BMVert):
1382
+ def copy_from(self, other: typing.Self):
1383
1383
  """Copy values from another element of matching type.
1384
1384
 
1385
1385
  :param other:
1386
- :type other: BMVert
1386
+ :type other: typing.Self
1387
1387
  """
1388
1388
  ...
1389
1389
 
@@ -1617,11 +1617,11 @@ class BMesh:
1617
1617
  """Clear all mesh data."""
1618
1618
  ...
1619
1619
 
1620
- def copy(self) -> BMesh:
1620
+ def copy(self) -> typing.Self:
1621
1621
  """
1622
1622
 
1623
1623
  :return: A copy of this BMesh.
1624
- :rtype: BMesh
1624
+ :rtype: typing.Self
1625
1625
  """
1626
1626
  ...
1627
1627
 
@@ -37,11 +37,11 @@ import typing_extensions
37
37
  GenericType1 = typing.TypeVar("GenericType1")
38
38
  GenericType2 = typing.TypeVar("GenericType2")
39
39
 
40
- def is_registered(function: collections.abc.Callable[[], float]) -> bool:
40
+ def is_registered(function: collections.abc.Callable[[], float | None]) -> bool:
41
41
  """Check if this function is registered as a timer.
42
42
 
43
43
  :param function: Function to check.
44
- :type function: collections.abc.Callable[[], float]
44
+ :type function: collections.abc.Callable[[], float | None]
45
45
  :return: True when this function is registered, otherwise False.
46
46
  :rtype: bool
47
47
  """
@@ -49,7 +49,7 @@ def is_registered(function: collections.abc.Callable[[], float]) -> bool:
49
49
  ...
50
50
 
51
51
  def register(
52
- function: collections.abc.Callable[[], float],
52
+ function: collections.abc.Callable[[], float | None],
53
53
  first_interval: float | None = 0,
54
54
  persistent: bool | None = False,
55
55
  ):
@@ -60,7 +60,7 @@ def register(
60
60
  functools.partial can be used to assign some parameters.
61
61
 
62
62
  :param function: The function that should called.
63
- :type function: collections.abc.Callable[[], float]
63
+ :type function: collections.abc.Callable[[], float | None]
64
64
  :param first_interval: Seconds until the callback should be called the first time.
65
65
  :type first_interval: float | None
66
66
  :param persistent: Don't remove timer when a new file is loaded.
@@ -69,11 +69,11 @@ def register(
69
69
 
70
70
  ...
71
71
 
72
- def unregister(function: collections.abc.Callable[[], float]):
72
+ def unregister(function: collections.abc.Callable[[], float | None]):
73
73
  """Unregister timer.
74
74
 
75
75
  :param function: Function to unregister.
76
- :type function: collections.abc.Callable[[], float]
76
+ :type function: collections.abc.Callable[[], float | None]
77
77
  """
78
78
 
79
79
  ...