mirror of
https://github.com/esphome/esphome.git
synced 2025-09-04 12:22:20 +01:00
[mipi] Add type to models for better type hinting downstream (#10475)
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
# Various configuration constants for MIPI displays
|
# Various configuration constants for MIPI displays
|
||||||
# Various utility functions for MIPI DBI configuration
|
# Various utility functions for MIPI DBI configuration
|
||||||
|
|
||||||
from typing import Any
|
from typing import Any, Self
|
||||||
|
|
||||||
from esphome.components.const import CONF_COLOR_DEPTH
|
from esphome.components.const import CONF_COLOR_DEPTH
|
||||||
from esphome.components.display import CONF_SHOW_TEST_CARD, display_ns
|
from esphome.components.display import CONF_SHOW_TEST_CARD, display_ns
|
||||||
@@ -222,7 +222,7 @@ def delay(ms):
|
|||||||
|
|
||||||
|
|
||||||
class DriverChip:
|
class DriverChip:
|
||||||
models = {}
|
models: dict[str, Self] = {}
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
|
Reference in New Issue
Block a user