mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
fix: use cached_property
instead of cache
and property
This commit is contained in:
parent
4103ad3e71
commit
bb3f87ae51
1 changed files with 2 additions and 3 deletions
|
@ -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.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue