mirror of
				https://github.com/RGBCube/GitHubWrapper
				synced 2025-10-31 05:52:45 +00:00 
			
		
		
		
	Add some stuff
This commit is contained in:
		
							parent
							
								
									45bd2699e9
								
							
						
					
					
						commit
						0c245453e5
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		|  | @ -80,6 +80,11 @@ class _BaseUser(APIObject): | |||
|         results = await self._http.get_user_orgs(self)  # type: ignore | ||||
|         return [Organization(data, self._http) for data in results] | ||||
| 
 | ||||
|     @property | ||||
|     def name(self): | ||||
|         """Optional[str]: The name of the user, if available.""" | ||||
|         return self._response.get('login') | ||||
| 
 | ||||
| 
 | ||||
| class User(_BaseUser): | ||||
|     """Representation of a user object on Github. | ||||
|  | @ -125,6 +130,7 @@ class User(_BaseUser): | |||
|         return f'<{self.__class__.__name__} login: {self.login!r}, id: {self.id}, created_at: {self.created_at}>' | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| class PartialUser(_BaseUser): | ||||
|     __slots__ = ( | ||||
|         'site_admin', | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 VarMonke
						VarMonke