mirror of
https://github.com/esphome/esphome.git
synced 2026-06-24 14:37:04 +00:00
[store_yaml] Add return type annotation on _import_zstd
This commit is contained in:
@@ -3,6 +3,7 @@ from __future__ import annotations
|
||||
import logging
|
||||
from pathlib import Path
|
||||
import struct
|
||||
from types import ModuleType
|
||||
|
||||
import esphome.codegen as cg
|
||||
import esphome.config_validation as cv
|
||||
@@ -35,7 +36,7 @@ CONFIG_SCHEMA = cv.Schema(
|
||||
).extend(cv.COMPONENT_SCHEMA)
|
||||
|
||||
|
||||
def _import_zstd():
|
||||
def _import_zstd() -> ModuleType:
|
||||
try:
|
||||
from compression import zstd # noqa: PLC0415 — Python 3.14+ stdlib
|
||||
except ImportError:
|
||||
|
||||
Reference in New Issue
Block a user