Update doc that Palette may not always be there

Co-authored-by: Scott Shawcroft <scott@tannewt.org>
This commit is contained in:
Mark 2023-04-21 11:21:29 -05:00 committed by GitHub
parent afae39765f
commit ae7303221d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -206,7 +206,7 @@ MP_DEFINE_CONST_FUN_OBJ_1(gifio_ondiskgif_get_bitmap_obj, gifio_ondiskgif_obj_ge
MP_PROPERTY_GETTER(gifio_ondiskgif_bitmap_obj,
(mp_obj_t)&gifio_ondiskgif_get_bitmap_obj);
//| palette: displayio.Palette
//| palette: Optional[displayio.Palette]
//| """The palette for the current frame if it exists."""
STATIC mp_obj_t gifio_ondiskgif_obj_get_palette(mp_obj_t self_in) {
gifio_ondiskgif_t *self = MP_OBJ_TO_PTR(self_in);