adding type information

This commit is contained in:
foamyguy 2021-09-28 19:36:22 -05:00
parent 9a3e9c3ade
commit 4f7927fcc4

View file

@ -46,6 +46,11 @@ Implementation Notes
https://github.com/adafruit/circuitpython/releases
"""
try:
# used for typing only
from typing import Any
except ImportError:
pass
import displayio
@ -82,5 +87,5 @@ _INIT_SEQUENCE = (
class ILI9341(displayio.Display):
"""ILI9341 display driver"""
def __init__(self, bus, **kwargs):
def __init__(self, bus: displayio.FourWire, **kwargs: Any):
super().__init__(bus, _INIT_SEQUENCE, **kwargs)