Skip to content

Commit 54cb1fe

Browse files
committed
Removed all 'self, )'
1 parent 522b17c commit 54cb1fe

56 files changed

Lines changed: 153 additions & 153 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

shared-bindings/_eve/__init__.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ STATIC mp_obj_t _register(mp_obj_t self, mp_obj_t o) {
5858
}
5959
STATIC MP_DEFINE_CONST_FUN_OBJ_2(register_obj, _register);
6060

61-
//| def flush(self, ) -> Any:
61+
//| def flush(self) -> Any:
6262
//| """Send any queued drawing commands directly to the hardware.
6363
//|
6464
//| :param int width: The width of the grid in tiles, or 1 for sprites."""
@@ -559,7 +559,7 @@ STATIC mp_obj_t _colorrgb(size_t n_args, const mp_obj_t *args) {
559559
}
560560
STATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(colorrgb_obj, 4, 4, _colorrgb);
561561

562-
//| def Display(self, ) -> Any: ...
562+
//| def Display(self) -> Any: ...
563563
//| """End the display list"""
564564
//|
565565

@@ -570,7 +570,7 @@ STATIC mp_obj_t _display(mp_obj_t self) {
570570
}
571571
STATIC MP_DEFINE_CONST_FUN_OBJ_1(display_obj, _display);
572572

573-
//| def End(self, ) -> Any:
573+
//| def End(self) -> Any:
574574
//| """End drawing a graphics primitive
575575
//|
576576
//| :meth:`Vertex2ii` and :meth:`Vertex2f` calls are ignored until the next :meth:`Begin`."""
@@ -628,7 +628,7 @@ STATIC mp_obj_t _macro(mp_obj_t self, mp_obj_t a0) {
628628
}
629629
STATIC MP_DEFINE_CONST_FUN_OBJ_2(macro_obj, _macro);
630630

631-
//| def Nop(self, ) -> Any:
631+
//| def Nop(self) -> Any:
632632
//| """No operation"""
633633
//| ...
634634
//|
@@ -672,7 +672,7 @@ STATIC mp_obj_t _pointsize(mp_obj_t self, mp_obj_t a0) {
672672
}
673673
STATIC MP_DEFINE_CONST_FUN_OBJ_2(pointsize_obj, _pointsize);
674674

675-
//| def RestoreContext(self, ) -> Any:
675+
//| def RestoreContext(self) -> Any:
676676
//| """Restore the current graphics context from the context stack"""
677677
//| ...
678678
//|
@@ -684,7 +684,7 @@ STATIC mp_obj_t _restorecontext(mp_obj_t self) {
684684
}
685685
STATIC MP_DEFINE_CONST_FUN_OBJ_1(restorecontext_obj, _restorecontext);
686686

687-
//| def Return(self, ) -> Any:
687+
//| def Return(self) -> Any:
688688
//| """Return from a previous call command"""
689689
//| ...
690690
//|
@@ -696,7 +696,7 @@ STATIC mp_obj_t _return(mp_obj_t self) {
696696
}
697697
STATIC MP_DEFINE_CONST_FUN_OBJ_1(return_obj, _return);
698698

699-
//| def SaveContext(self, ) -> Any:
699+
//| def SaveContext(self) -> Any:
700700
//| """Push the current graphics context on the context stack"""
701701
//| ...
702702
//|

shared-bindings/_pixelbuf/PixelBuf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ STATIC mp_obj_t pixelbuf_pixelbuf_unary_op(mp_unary_op_t op, mp_obj_t self_in) {
245245
}
246246
}
247247

248-
//| def show(self, ) -> Any:
248+
//| def show(self) -> Any:
249249
//| """Transmits the color data to the pixels so that they are shown. This is done automatically
250250
//| when `auto_write` is True."""
251251
//| ...

shared-bindings/analogio/AnalogIn.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ STATIC mp_obj_t analogio_analogin_make_new(const mp_obj_type_t *type,
7070
return MP_OBJ_FROM_PTR(self);
7171
}
7272

73-
//| def deinit(self, ) -> None:
73+
//| def deinit(self) -> None:
7474
//| """Turn off the AnalogIn and release the pin for other use."""
7575
//| ...
7676
//|
@@ -86,13 +86,13 @@ STATIC void check_for_deinit(analogio_analogin_obj_t *self) {
8686
raise_deinited_error();
8787
}
8888
}
89-
//| def __enter__(self, ) -> AnalogIn:
89+
//| def __enter__(self) -> AnalogIn:
9090
//| """No-op used by Context Managers."""
9191
//| ...
9292
//|
9393
// Provided by context manager helper.
9494

95-
//| def __exit__(self, ) -> None:
95+
//| def __exit__(self) -> None:
9696
//| """Automatically deinitializes the hardware when exiting a context. See
9797
//| :ref:`lifetime-and-contextmanagers` for more info."""
9898
//| ...

shared-bindings/analogio/AnalogOut.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ STATIC mp_obj_t analogio_analogout_make_new(const mp_obj_type_t *type, mp_uint_t
6666
return MP_OBJ_FROM_PTR(self);
6767
}
6868

69-
//| def deinit(self, ) -> None:
69+
//| def deinit(self) -> None:
7070
//| """Turn off the AnalogOut and release the pin for other use."""
7171
//| ...
7272
//|
@@ -79,13 +79,13 @@ STATIC mp_obj_t analogio_analogout_deinit(mp_obj_t self_in) {
7979
}
8080
STATIC MP_DEFINE_CONST_FUN_OBJ_1(analogio_analogout_deinit_obj, analogio_analogout_deinit);
8181

82-
//| def __enter__(self, ) -> AnalogOut:
82+
//| def __enter__(self) -> AnalogOut:
8383
//| """No-op used by Context Managers."""
8484
//| ...
8585
//|
8686
// Provided by context manager helper.
8787

88-
//| def __exit__(self, ) -> None:
88+
//| def __exit__(self) -> None:
8989
//| """Automatically deinitializes the hardware when exiting a context. See
9090
//| :ref:`lifetime-and-contextmanagers` for more info."""
9191
//| ...

shared-bindings/audiobusio/I2SOut.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ STATIC mp_obj_t audiobusio_i2sout_make_new(const mp_obj_type_t *type, size_t n_a
112112
return MP_OBJ_FROM_PTR(self);
113113
}
114114

115-
//| def deinit(self, ) -> None:
115+
//| def deinit(self) -> None:
116116
//| """Deinitialises the I2SOut and releases any hardware resources for reuse."""
117117
//| ...
118118
//|
@@ -128,13 +128,13 @@ STATIC void check_for_deinit(audiobusio_i2sout_obj_t *self) {
128128
raise_deinited_error();
129129
}
130130
}
131-
//| def __enter__(self, ) -> I2SOut:
131+
//| def __enter__(self) -> I2SOut:
132132
//| """No-op used by Context Managers."""
133133
//| ...
134134
//|
135135
// Provided by context manager helper.
136136

137-
//| def __exit__(self, ) -> None:
137+
//| def __exit__(self) -> None:
138138
//| """Automatically deinitializes the hardware when exiting a context. See
139139
//| :ref:`lifetime-and-contextmanagers` for more info."""
140140
//| ...
@@ -174,7 +174,7 @@ STATIC mp_obj_t audiobusio_i2sout_obj_play(size_t n_args, const mp_obj_t *pos_ar
174174
}
175175
MP_DEFINE_CONST_FUN_OBJ_KW(audiobusio_i2sout_play_obj, 1, audiobusio_i2sout_obj_play);
176176

177-
//| def stop(self, ) -> None:
177+
//| def stop(self) -> None:
178178
//| """Stops playback."""
179179
//| ...
180180
//|
@@ -203,7 +203,7 @@ const mp_obj_property_t audiobusio_i2sout_playing_obj = {
203203
(mp_obj_t)&mp_const_none_obj},
204204
};
205205

206-
//| def pause(self, ) -> None:
206+
//| def pause(self) -> None:
207207
//| """Stops playback temporarily while remembering the position. Use `resume` to resume playback."""
208208
//| ...
209209
//|
@@ -219,7 +219,7 @@ STATIC mp_obj_t audiobusio_i2sout_obj_pause(mp_obj_t self_in) {
219219
}
220220
MP_DEFINE_CONST_FUN_OBJ_1(audiobusio_i2sout_pause_obj, audiobusio_i2sout_obj_pause);
221221

222-
//| def resume(self, ) -> None:
222+
//| def resume(self) -> None:
223223
//| """Resumes sample playback after :py:func:`pause`."""
224224
//| ...
225225
//|

shared-bindings/audiobusio/PDMIn.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ STATIC mp_obj_t audiobusio_pdmin_make_new(const mp_obj_type_t *type, size_t n_ar
134134
return MP_OBJ_FROM_PTR(self);
135135
}
136136

137-
//| def deinit(self, ) -> None:
137+
//| def deinit(self) -> None:
138138
//| """Deinitialises the PDMIn and releases any hardware resources for reuse."""
139139
//| ...
140140
//|
@@ -150,13 +150,13 @@ STATIC void check_for_deinit(audiobusio_pdmin_obj_t *self) {
150150
raise_deinited_error();
151151
}
152152
}
153-
//| def __enter__(self, ) -> PDMIn:
153+
//| def __enter__(self) -> PDMIn:
154154
//| """No-op used by Context Managers."""
155155
//| ...
156156
//|
157157
// Provided by context manager helper.
158158

159-
//| def __exit__(self, ) -> None:
159+
//| def __exit__(self) -> None:
160160
//| """Automatically deinitializes the hardware when exiting a context."""
161161
//| ...
162162
//|

shared-bindings/audiocore/RawSample.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ STATIC mp_obj_t audioio_rawsample_make_new(const mp_obj_type_t *type, size_t n_a
101101
return MP_OBJ_FROM_PTR(self);
102102
}
103103

104-
//| def deinit(self, ) -> None:
104+
//| def deinit(self) -> None:
105105
//| """Deinitialises the AudioOut and releases any hardware resources for reuse."""
106106
//| ...
107107
//|
@@ -118,13 +118,13 @@ STATIC void check_for_deinit(audioio_rawsample_obj_t *self) {
118118
}
119119
}
120120

121-
//| def __enter__(self, ) -> RawSample:
121+
//| def __enter__(self) -> RawSample:
122122
//| """No-op used by Context Managers."""
123123
//| ...
124124
//|
125125
// Provided by context manager helper.
126126

127-
//| def __exit__(self, ) -> None:
127+
//| def __exit__(self) -> None:
128128
//| """Automatically deinitializes the hardware when exiting a context. See
129129
//| :ref:`lifetime-and-contextmanagers` for more info."""
130130
//| ...

shared-bindings/audiocore/WaveFile.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ STATIC mp_obj_t audioio_wavefile_make_new(const mp_obj_type_t *type, size_t n_ar
9191
return MP_OBJ_FROM_PTR(self);
9292
}
9393

94-
//| def deinit(self, ) -> None:
94+
//| def deinit(self) -> None:
9595
//| """Deinitialises the WaveFile and releases all memory resources for reuse."""
9696
//| ...
9797
STATIC mp_obj_t audioio_wavefile_deinit(mp_obj_t self_in) {
@@ -107,13 +107,13 @@ STATIC void check_for_deinit(audioio_wavefile_obj_t *self) {
107107
}
108108
}
109109

110-
//| def __enter__(self, ) -> WaveFile:
110+
//| def __enter__(self) -> WaveFile:
111111
//| """No-op used by Context Managers."""
112112
//| ...
113113
//|
114114
// Provided by context manager helper.
115115

116-
//| def __exit__(self, ) -> None:
116+
//| def __exit__(self) -> None:
117117
//| """Automatically deinitializes the hardware when exiting a context. See
118118
//| :ref:`lifetime-and-contextmanagers` for more info."""
119119
//| ...

shared-bindings/audiomixer/Mixer.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ STATIC mp_obj_t audiomixer_mixer_make_new(const mp_obj_type_t *type, size_t n_ar
121121
return MP_OBJ_FROM_PTR(self);
122122
}
123123

124-
//| def deinit(self, ) -> None:
124+
//| def deinit(self) -> None:
125125
//| """Deinitialises the Mixer and releases any hardware resources for reuse."""
126126
//| ...
127127
//|
@@ -138,13 +138,13 @@ STATIC void check_for_deinit(audiomixer_mixer_obj_t *self) {
138138
}
139139
}
140140

141-
//| def __enter__(self, ) -> Mixer:
141+
//| def __enter__(self) -> Mixer:
142142
//| """No-op used by Context Managers."""
143143
//| ...
144144
//|
145145
// Provided by context manager helper.
146146

147-
//| def __exit__(self, ) -> None:
147+
//| def __exit__(self) -> None:
148148
//| """Automatically deinitializes the hardware when exiting a context. See
149149
//| :ref:`lifetime-and-contextmanagers` for more info."""
150150
//| ...

shared-bindings/audiomixer/MixerVoice.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
//|
4343
//| Used to access and control samples with `audiomixer.Mixer`."""
4444
//|
45-
//| def __init__(self, ):
45+
//| def __init__(self):
4646
//| """MixerVoice instance object(s) created by `audiomixer.Mixer`."""
4747
//| ...
4848
//|
@@ -81,7 +81,7 @@ STATIC mp_obj_t audiomixer_mixervoice_obj_play(size_t n_args, const mp_obj_t *po
8181
}
8282
MP_DEFINE_CONST_FUN_OBJ_KW(audiomixer_mixervoice_play_obj, 1, audiomixer_mixervoice_obj_play);
8383

84-
//| def stop(self, ) -> None:
84+
//| def stop(self) -> None:
8585
//| """Stops playback of the sample on this voice."""
8686
//| ...
8787
//|

0 commit comments

Comments
 (0)