added prepared epc warning

This commit is contained in:
Khalim Conn-Kowlessar 2026-03-11 14:22:13 +00:00
parent 8070168715
commit 20d63c4ca2

View file

@ -1,4 +1,4 @@
from warnings import deprecated
import warnings
from typing import Optional, get_origin, get_args, TypedDict, cast, TypeAlias
from backend.addresses.Address import Address
from dataclasses import fields
@ -1144,6 +1144,11 @@ class EPCRecord:
@property
def prepared_epc(self):
warnings.warn(
"Accessing prepared_epc directly is deprecated, use get method instead",
DeprecationWarning,
stacklevel=2,
)
return self._prepared_epc