fix: use cached_property instead of cache and property

This commit is contained in:
Gleb Smirnov 2022-02-19 12:52:34 +03:00
parent 4103ad3e71
commit bb3f87ae51
No known key found for this signature in database
GPG key ID: 559DB6D1D625EFAB

View file

@ -18,7 +18,7 @@
# SPDX-License-Identifier: LGPL-3.0-or-later
from functools import cache
from functools import cached_property
from .gobject_object import Object
from .response_id import ResponseId
@ -37,8 +37,7 @@ class Child(AstNode):
Object,
]
@property
@cache
@cached_property
def response_id(self) -> T.Optional[ResponseId]:
"""Get action widget's response ID.