Fix type of content field (may be None on text-less posts)

This commit is contained in:
JustAnotherArchivist
2021-05-27 00:33:12 +00:00
parent 57d0aaafc1
commit 5e6bc4ec50

View File

@@ -15,7 +15,7 @@ logger = logging.getLogger(__name__)
class InstagramPost(snscrape.base.Item):
url: str
date: datetime.datetime
content: str
content: typing.Optional[str]
thumbnailUrl: str
displayUrl: str
username: typing.Optional[str]