mirror of
https://github.com/instaloader/instaloader.git
synced 2026-10-25 10:21:59 -07:00
Annotate Profile.mediacount as Optional
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user