Skip to content

Commit

Permalink
Remove Relation model
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmon758 committed Apr 27, 2021
1 parent 085d586 commit cc4479a
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions tweepy/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,20 +356,6 @@ def is_subscribed(self, id):
)


class Relation(Model):
@classmethod
def parse(cls, api, json):
result = cls(api)
for k, v in json.items():
if k == 'value' and json['kind'] in ['Tweet', 'LookedupStatus']:
setattr(result, k, Status.parse(api, v))
elif k == 'results':
setattr(result, k, Relation.parse_list(api, v))
else:
setattr(result, k, v)
return result


class Relationship(Model):
@classmethod
def parse(cls, api, json):
Expand Down Expand Up @@ -493,7 +479,6 @@ class ModelFactory:
saved_search = SavedSearch
search_results = SearchResults
list = List
relation = Relation
relationship = Relationship
media = Media

Expand Down

0 comments on commit cc4479a

Please sign in to comment.