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
|
# SPDX-License-Identifier: LGPL-3.0-or-later
|
||||||
|
|
||||||
|
|
||||||
from functools import cache
|
from functools import cached_property
|
||||||
|
|
||||||
from .gobject_object import Object
|
from .gobject_object import Object
|
||||||
from .response_id import ResponseId
|
from .response_id import ResponseId
|
||||||
|
@ -37,8 +37,7 @@ class Child(AstNode):
|
||||||
Object,
|
Object,
|
||||||
]
|
]
|
||||||
|
|
||||||
@property
|
@cached_property
|
||||||
@cache
|
|
||||||
def response_id(self) -> T.Optional[ResponseId]:
|
def response_id(self) -> T.Optional[ResponseId]:
|
||||||
"""Get action widget's response ID.
|
"""Get action widget's response ID.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue