Annotate Profile.mediacount as Optional

This commit is contained in:
Alexander Graf
2026-10-23 23:40:53 +02:00
parent 653efed311
commit 328e93b0bc
+2 -1
View File
@@ -1237,7 +1237,8 @@ class Profile:
return self._metadata('followed_by_viewer')
@property
def mediacount(self) -> int:
def mediacount(self) -> Optional[int]:
"""Number of posts, or None if unavailable (e.g. when not logged in)."""
return self._metadata('edge_owner_to_timeline_media', 'count')
@property