Skip to content

Commit 839bbd3

Browse files
committed
Update USBFramebuffer: __new__ -> __init__
1 parent 0f94cc5 commit 839bbd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared-bindings/usb_video/USBFramebuffer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ static void check_for_deinit(usb_video_uvcframebuffer_obj_t *self) {
3131
//| it also supports the ``WritableBuffer`` protocol and can be accessed
3232
//| as an array of ``H`` (unsigned 16-bit values)."""
3333
//|
34-
//| def __new__(self) -> USBFramebuffer:
34+
//| def __init__(self) -> None:
3535
//| """Returns the singleton framebuffer object, if USB video is enabled"""
3636
static mp_obj_t usb_video_uvcframebuffer_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *all_args) {
3737
static const mp_arg_t allowed_args[] = {};

0 commit comments

Comments
 (0)