Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions plexapi/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ class cached_data_property(cached_property):
automatic invalidation on data changes.
"""

def __new__(cls, *args, **kwargs) -> cached_property:
return super().__new__(cls, *args, **kwargs)

def __set_name__(self, owner, name):
"""Register the annotated property in the parent class's _cached_data_properties set."""
super().__set_name__(owner, name)
Expand Down