mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
added prepared epc warning
This commit is contained in:
parent
8070168715
commit
20d63c4ca2
1 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue