1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Update Python version for mypy to 3.13 (#135636)

This commit is contained in:
Marc Mueller
2025-01-15 01:43:13 +01:00
committed by GitHub
parent c4d8cda92b
commit 239aa94b6f
4 changed files with 8 additions and 24 deletions

View File

@@ -9,6 +9,8 @@ import os
from pathlib import Path
from typing import Final
from homeassistant.const import REQUIRED_PYTHON_VER
from .model import Config, Integration
# Component modules which should set no_implicit_reexport = true.
@@ -29,18 +31,7 @@ HEADER: Final = """
""".lstrip()
GENERAL_SETTINGS: Final[dict[str, str]] = {
# We use @dataclass_transform in all our EntityDescriptions, causing
# `__replace__` to be already synthesized by mypy, causing **every** use of
# our entity descriptions to fail:
#
# error: Signature of "__replace__" incompatible with supertype "EntityDescription"
#
# Until this is fixed in mypy, we keep mypy locked on to Python 3.12 as we
# have done for the past few releases.
#
# Ref: https://github.com/python/mypy/issues/18216
# "python_version": ".".join(str(x) for x in REQUIRED_PYTHON_VER[:2]),
"python_version": "3.12",
"python_version": ".".join(str(x) for x in REQUIRED_PYTHON_VER[:2]),
"platform": "linux",
"plugins": ", ".join( # noqa: FLY002
[