Removed all 'self, )' · csamuelson/circuitpython@54cb1fe · GitHub
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

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

0 commit comments

Comments
 (0)