Deprecate Entity type

There is no meaningful distinction from Items, and it complicates the integration of scrapers for user searches
This commit is contained in:
JustAnotherArchivist
2023-02-21 21:24:00 +00:00
parent 7327a01397
commit 4e70306f99
8 changed files with 15 additions and 21 deletions

View File

@@ -457,7 +457,7 @@ class Tombstone(snscrape.base.Item):
@dataclasses.dataclass
class User(snscrape.base.Entity):
class User(snscrape.base.Item):
# Most fields can be None if they're not known.
username: str
@@ -513,7 +513,7 @@ class UserRef:
@dataclasses.dataclass
class Community(snscrape.base.Entity):
class Community(snscrape.base.Item):
id: int
name: str
description: str