@@ -68,6 +68,14 @@ class UserWithheld(BaseModel):
68
68
country_codes : Optional [List [str ]] = field (default = None , repr = False )
69
69
70
70
71
+ @dataclass
72
+ class UserAffiliation (BaseModel ):
73
+ user_id : Optional [str ] = field (default = None )
74
+ url : Optional [str ] = field (default = None )
75
+ badge_url : Optional [str ] = field (default = None , repr = False , compare = False )
76
+ description : Optional [str ] = field (default = None , repr = False , compare = False )
77
+
78
+
71
79
@dataclass
72
80
class User (BaseModel ):
73
81
"""
@@ -82,6 +90,7 @@ class User(BaseModel):
82
90
location : Optional [str ] = field (default = None , repr = False , compare = False )
83
91
pinned_tweet_id : Optional [str ] = field (default = None , repr = False , compare = False )
84
92
profile_image_url : Optional [str ] = field (default = None , repr = False , compare = False )
93
+ profile_banner_url : Optional [str ] = field (default = None , repr = False , compare = False )
85
94
protected : Optional [bool ] = field (default = None , repr = False , compare = False )
86
95
url : Optional [str ] = field (default = None , repr = False , compare = False )
87
96
verified : Optional [bool ] = field (default = None , repr = False , compare = False )
@@ -97,3 +106,4 @@ class User(BaseModel):
97
106
default = None , repr = False , compare = False
98
107
)
99
108
most_recent_tweet_id : Optional [str ] = field (default = None , repr = False , compare = False )
109
+ affiliation : Optional [UserAffiliation ] = field (default = None , repr = False , compare = False )
0 commit comments