@@ -68,6 +68,14 @@ class UserWithheld(BaseModel):
6868 country_codes : Optional [List [str ]] = field (default = None , repr = False )
6969
7070
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+
7179@dataclass
7280class User (BaseModel ):
7381 """
@@ -82,6 +90,7 @@ class User(BaseModel):
8290 location : Optional [str ] = field (default = None , repr = False , compare = False )
8391 pinned_tweet_id : Optional [str ] = field (default = None , repr = False , compare = False )
8492 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 )
8594 protected : Optional [bool ] = field (default = None , repr = False , compare = False )
8695 url : Optional [str ] = field (default = None , repr = False , compare = False )
8796 verified : Optional [bool ] = field (default = None , repr = False , compare = False )
@@ -97,3 +106,4 @@ class User(BaseModel):
97106 default = None , repr = False , compare = False
98107 )
99108 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