Mark logbook.EventAsRow with @final (#142058)

This commit is contained in:
Erik Montnemery 2025-04-02 14:05:23 +02:00 committed by GitHub
parent dfd86d56ec
commit 8200c234dd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,7 +4,7 @@ from __future__ import annotations
from collections.abc import Callable, Mapping
from dataclasses import dataclass
from typing import TYPE_CHECKING, Any, Final, NamedTuple, cast
from typing import TYPE_CHECKING, Any, Final, NamedTuple, cast, final
from propcache.api import cached_property
from sqlalchemy.engine.row import Row
@ -114,6 +114,7 @@ DATA_POS: Final = 11
CONTEXT_POS: Final = 12
@final # Final to allow direct checking of the type instead of using isinstance
class EventAsRow(NamedTuple):
"""Convert an event to a row.