Mark Integration with @final (#142057)

This commit is contained in:
Erik Montnemery 2025-04-02 15:05:43 +02:00 committed by GitHub
parent 6fbee5c2e3
commit feff5355c8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -18,7 +18,7 @@ import pathlib
import sys import sys
import time import time
from types import ModuleType from types import ModuleType
from typing import TYPE_CHECKING, Any, Literal, Protocol, TypedDict, cast from typing import TYPE_CHECKING, Any, Literal, Protocol, TypedDict, cast, final
from awesomeversion import ( from awesomeversion import (
AwesomeVersion, AwesomeVersion,
@ -646,6 +646,7 @@ def async_register_preload_platform(hass: HomeAssistant, platform_name: str) ->
preload_platforms.append(platform_name) preload_platforms.append(platform_name)
@final # Final to allow direct checking of the type instead of using isinstance
class Integration: class Integration:
"""An integration in Home Assistant.""" """An integration in Home Assistant."""