mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-29 22:24:26 +00: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 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.display import CONF_SHOW_TEST_CARD, display_ns | ||||
| @@ -222,7 +222,7 @@ def delay(ms): | ||||
|  | ||||
|  | ||||
| class DriverChip: | ||||
|     models = {} | ||||
|     models: dict[str, Self] = {} | ||||
|  | ||||
|     def __init__( | ||||
|         self, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user