summaryrefslogtreecommitdiff
path: root/shared-bindings/_stage
diff options
context:
space:
mode:
authorTaku Fukada <naninunenor@gmail.com>2020-07-25 17:58:37 +0900
committerTaku Fukada <naninunenor@gmail.com>2020-07-27 18:05:13 +0900
commitd356581651e4a11dc18787da95e2f96bfde3575d (patch)
treeaa6eb14d4bd0b1e29a79b26413d7ee90b57243e9 /shared-bindings/_stage
parent54a342a7f5b74f32c7a53ea483d9046e688b9830 (diff)
Fix several type hints
Diffstat (limited to 'shared-bindings/_stage')
-rw-r--r--shared-bindings/_stage/Layer.c2
-rw-r--r--shared-bindings/_stage/Text.c2
-rw-r--r--shared-bindings/_stage/__init__.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/shared-bindings/_stage/Layer.c b/shared-bindings/_stage/Layer.c
index 5828669a7..269005ccf 100644
--- a/shared-bindings/_stage/Layer.c
+++ b/shared-bindings/_stage/Layer.c
@@ -33,7 +33,7 @@
//| class Layer:
//| """Keep information about a single layer of graphics"""
//|
-//| def __init__(self, width: int, height: int, graphic: bytearray, palette: bytearray, grid: bytearray) -> None:
+//| def __init__(self, width: int, height: int, graphic: ReadableBuffer, palette: ReadableBuffer, grid: ReadableBuffer) -> None:
//| """Keep internal information about a layer of graphics (either a
//| ``Grid`` or a ``Sprite``) in a format suitable for fast rendering
//| with the ``render()`` function.
diff --git a/shared-bindings/_stage/Text.c b/shared-bindings/_stage/Text.c
index 555eb5831..464af1b98 100644
--- a/shared-bindings/_stage/Text.c
+++ b/shared-bindings/_stage/Text.c
@@ -33,7 +33,7 @@
//| class Text:
//| """Keep information about a single grid of text"""
//|
-//| def __init__(self, width: int, height: int, font: bytearray, palette: bytearray, chars: bytearray) -> None:
+//| def __init__(self, width: int, height: int, font: ReadableBuffer, palette: ReadableBuffer, chars: ReadableBuffer) -> None:
//| """Keep internal information about a grid of text
//| in a format suitable for fast rendering
//| with the ``render()`` function.
diff --git a/shared-bindings/_stage/__init__.c b/shared-bindings/_stage/__init__.c
index 6af0e6dbf..6651b3e0b 100644
--- a/shared-bindings/_stage/__init__.c
+++ b/shared-bindings/_stage/__init__.c
@@ -39,7 +39,7 @@
//| The `_stage` module contains native code to speed-up the ```stage`` Library
//| <https://github.com/python-ugame/circuitpython-stage>`_."""
//|
-//| def render(x0: int, y0: int, x1: int, y1: int, layers: list, buffer: bytearray, display: displayio.Display, scale: int, background: int) -> None:
+//| def render(x0: int, y0: int, x1: int, y1: int, layers: list, buffer: WriteableBuffer, display: displayio.Display, scale: int, background: int) -> None:
//| """Render and send to the display a fragment of the screen.
//|
//| :param int x0: Left edge of the fragment.