@@ -110,7 +110,7 @@ def debounce(self, debounceTime: float, type: Debouncer.DebounceType) -> "Trigge
110
110
111
111
:returns: The debounced trigger.
112
112
"""
113
- return Trigger (_Trigger .debounce (debounceTime , type ))
113
+ return Trigger (self . _trigger .debounce (debounceTime , type ))
114
114
115
115
def cancelWhenActive (self , command : Command ) -> None :
116
116
"""
@@ -123,7 +123,7 @@ def cancelWhenActive(self, command: Command) -> None:
123
123
self ._trigger .cancelWhenActive (command )
124
124
125
125
@overload
126
- def whenActive (self , command : Command , / , interruptible : bool = True ) -> None :
126
+ def whenActive (self , command_or_coroutine : Command , interruptible : bool = True ) -> None :
127
127
"""
128
128
Binds a command to start when the trigger becomes active.
129
129
@@ -134,8 +134,7 @@ def whenActive(self, command: Command, /, interruptible: bool = True) -> None:
134
134
@overload
135
135
def whenActive (
136
136
self ,
137
- coroutine : Union [Coroutine , Coroutineable ],
138
- / ,
137
+ command_or_coroutine : Union [Coroutine , Coroutineable ],
139
138
* ,
140
139
interruptible : bool = True ,
141
140
requirements : Optional [List [Subsystem ]] = None ,
@@ -153,7 +152,6 @@ def whenActive(
153
152
@overload
154
153
def whenActive (
155
154
self ,
156
- / ,
157
155
* ,
158
156
interruptible : bool = True ,
159
157
requirements : Optional [List [Subsystem ]] = None ,
@@ -171,7 +169,6 @@ def whenActive(
171
169
def whenActive (
172
170
self ,
173
171
command_or_coroutine : Optional [Union [Command , Coroutine , Coroutineable ]] = None ,
174
- / ,
175
172
interruptible : bool = True ,
176
173
requirements : Optional [List [Subsystem ]] = None ,
177
174
runs_when_disabled : bool = False ,
@@ -199,7 +196,7 @@ def wrapper(coroutine: Coroutineable) -> None:
199
196
return
200
197
201
198
@overload
202
- def whenInactive (self , command : Command , / , interruptible : bool = True ) -> None :
199
+ def whenInactive (self , command_or_coroutine : Command , interruptible : bool = True ) -> None :
203
200
"""
204
201
Binds a command to start when the trigger becomes inactive.
205
202
@@ -210,8 +207,7 @@ def whenInactive(self, command: Command, /, interruptible: bool = True) -> None:
210
207
@overload
211
208
def whenInactive (
212
209
self ,
213
- coroutine : Union [Coroutine , Coroutineable ],
214
- / ,
210
+ command_or_coroutine : Union [Coroutine , Coroutineable ],
215
211
* ,
216
212
interruptible : bool = True ,
217
213
requirements : Optional [List [Subsystem ]] = None ,
@@ -229,7 +225,6 @@ def whenInactive(
229
225
@overload
230
226
def whenInactive (
231
227
self ,
232
- / ,
233
228
* ,
234
229
interruptible : bool = True ,
235
230
requirements : Optional [List [Subsystem ]] = None ,
@@ -247,7 +242,6 @@ def whenInactive(
247
242
def whenInactive (
248
243
self ,
249
244
command_or_coroutine : Optional [Union [Command , Coroutine , Coroutineable ]] = None ,
250
- / ,
251
245
interruptible : bool = True ,
252
246
requirements : Optional [List [Subsystem ]] = None ,
253
247
runs_when_disabled : bool = False ,
@@ -276,7 +270,7 @@ def wrapper(coroutine: Coroutineable) -> None:
276
270
277
271
@overload
278
272
def whileActiveContinous (
279
- self , command : Command , / , interruptible : bool = True
273
+ self , command_or_coroutine : Command , interruptible : bool = True
280
274
) -> None :
281
275
"""
282
276
Binds a command to be started repeatedly while the trigger is active, and
@@ -289,8 +283,7 @@ def whileActiveContinous(
289
283
@overload
290
284
def whileActiveContinous (
291
285
self ,
292
- coroutine : Union [Coroutine , Coroutineable ],
293
- / ,
286
+ command_or_coroutine : Union [Coroutine , Coroutineable ],
294
287
* ,
295
288
interruptible : bool = True ,
296
289
requirements : Optional [List [Subsystem ]] = None ,
@@ -309,7 +302,6 @@ def whileActiveContinous(
309
302
@overload
310
303
def whileActiveContinous (
311
304
self ,
312
- / ,
313
305
* ,
314
306
interruptible : bool = True ,
315
307
requirements : Optional [List [Subsystem ]] = None ,
@@ -328,7 +320,6 @@ def whileActiveContinous(
328
320
def whileActiveContinous (
329
321
self ,
330
322
command_or_coroutine : Optional [Union [Command , Coroutine , Coroutineable ]] = None ,
331
- / ,
332
323
interruptible : bool = True ,
333
324
requirements : Optional [List [Subsystem ]] = None ,
334
325
runs_when_disabled : bool = False ,
@@ -356,7 +347,7 @@ def wrapper(coroutine: Coroutineable) -> None:
356
347
return
357
348
358
349
@overload
359
- def whileActiveOnce (self , command : Command , / , interruptible : bool = True ) -> None :
350
+ def whileActiveOnce (self , command_or_coroutine : Command , interruptible : bool = True ) -> None :
360
351
"""
361
352
Binds a command to be started when the trigger becomes active, and
362
353
canceled when it becomes inactive.
@@ -368,8 +359,7 @@ def whileActiveOnce(self, command: Command, /, interruptible: bool = True) -> No
368
359
@overload
369
360
def whileActiveOnce (
370
361
self ,
371
- coroutine : Union [Coroutine , Coroutineable ],
372
- / ,
362
+ command_or_coroutine : Union [Coroutine , Coroutineable ],
373
363
* ,
374
364
interruptible : bool = True ,
375
365
requirements : Optional [List [Subsystem ]] = None ,
@@ -388,7 +378,6 @@ def whileActiveOnce(
388
378
@overload
389
379
def whileActiveOnce (
390
380
self ,
391
- / ,
392
381
* ,
393
382
interruptible : bool = True ,
394
383
requirements : Optional [List [Subsystem ]] = None ,
@@ -407,7 +396,6 @@ def whileActiveOnce(
407
396
def whileActiveOnce (
408
397
self ,
409
398
command_or_coroutine : Optional [Union [Command , Coroutine , Coroutineable ]] = None ,
410
- / ,
411
399
interruptible : bool = True ,
412
400
requirements : Optional [List [Subsystem ]] = None ,
413
401
runs_when_disabled : bool = False ,
@@ -435,7 +423,7 @@ def wrapper(coroutine: Coroutineable) -> None:
435
423
return
436
424
437
425
@overload
438
- def toggleWhenActive (self , command : Command , / , interruptible : bool = True ) -> None :
426
+ def toggleWhenActive (self , command_or_coroutine : Command , interruptible : bool = True ) -> None :
439
427
"""
440
428
Binds a command to start when the trigger becomes active, and be canceled
441
429
when it again becomes active.
@@ -448,8 +436,7 @@ def toggleWhenActive(self, command: Command, /, interruptible: bool = True) -> N
448
436
@overload
449
437
def toggleWhenActive (
450
438
self ,
451
- coroutine : Union [Coroutine , Coroutineable ],
452
- / ,
439
+ command_or_coroutine : Union [Coroutine , Coroutineable ],
453
440
* ,
454
441
interruptible : bool = True ,
455
442
requirements : Optional [List [Subsystem ]] = None ,
@@ -468,7 +455,6 @@ def toggleWhenActive(
468
455
@overload
469
456
def toggleWhenActive (
470
457
self ,
471
- / ,
472
458
* ,
473
459
interruptible : bool = True ,
474
460
requirements : Optional [List [Subsystem ]] = None ,
@@ -487,7 +473,6 @@ def toggleWhenActive(
487
473
def toggleWhenActive (
488
474
self ,
489
475
command_or_coroutine : Optional [Union [Command , Coroutine , Coroutineable ]] = None ,
490
- / ,
491
476
interruptible : bool = True ,
492
477
requirements : Optional [List [Subsystem ]] = None ,
493
478
runs_when_disabled : bool = False ,
0 commit comments