Skip to content

Commit 2c7ae41

Browse files
committed
fix check-stubs errors
1 parent 9e999bd commit 2c7ae41

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

shared-bindings/synthio/BlockBiquad.c

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,19 @@ static MP_DEFINE_CONST_DICT(synthio_filter_locals_dict, synthio_filter_locals_ta
3535

3636
MAKE_PRINTER(synthio, synthio_filter);
3737

38-
MAKE_ENUM_TYPE(synthio, FilterKind, synthio_filter);
38+
MAKE_ENUM_TYPE(synthio, FilterType, synthio_filter);
3939

4040
static synthio_filter_e validate_synthio_filter(mp_obj_t obj, qstr arg_name) {
4141
return cp_enum_value(&synthio_filter_type, obj, arg_name);
4242
}
4343

4444
//| class BlockBiquad:
4545
//| def __init__(
46-
//| kind: FilterKind, frequency: BlockInput, q_factor: BlockInput = 0.7071067811865475
47-
//| ):
46+
//| self,
47+
//| kind: FilterType,
48+
//| frequency: BlockInput,
49+
//| q_factor: BlockInput = 0.7071067811865475,
50+
//| ) -> None:
4851
//| """Construct a biquad filter object with dynamic center frequency & q factor
4952
//|
5053
//| Since ``frequency`` and ``q_factor`` are `BlockInput`s, they can be varied dynamically.
@@ -77,7 +80,7 @@ static mp_obj_t synthio_block_biquad_make_new(const mp_obj_type_t *type_in, size
7780
}
7881

7982
//|
80-
//| kind: BiquadKind
83+
//| kind: FilterType
8184
//| """The kind of filter (read-only)"""
8285
static mp_obj_t synthio_block_biquad_get_kind(mp_obj_t self_in) {
8386
synthio_block_biquad_t *self = MP_OBJ_TO_PTR(self_in);

0 commit comments

Comments
 (0)