Skip to content

Commit e0ae144

Browse files
MineFartSCopilot
andauthored
Fix Typing for cached_data_property (#1620)
* Fix Typing for cached_data_property * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 76f6994 commit e0ae144

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎plexapi/base.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ class cached_data_property(cached_property):
4545
automatic invalidation on data changes.
4646
"""
4747

48+
def __new__(cls, *args, **kwargs) -> cached_property:
49+
return super().__new__(cls, *args, **kwargs)
50+
4851
def __set_name__(self, owner, name):
4952
"""Register the annotated property in the parent class's _cached_data_properties set."""
5053
super().__set_name__(owner, name)

0 commit comments

Comments
 (0)