adding type information
This commit is contained in:
parent
9a3e9c3ade
commit
4f7927fcc4
1 changed files with 6 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue