mirror of
				https://github.com/RGBCube/GitHubWrapper
				synced 2025-10-31 14:02:46 +00:00 
			
		
		
		
	Fixed HTTPClient not recognizing passed kwargs
This commit is contained in:
		
							parent
							
								
									b23d5b78eb
								
							
						
					
					
						commit
						cad7916da6
					
				
					 1 changed files with 2 additions and 7 deletions
				
			
		|  | @ -93,14 +93,9 @@ class HTTPClient: | |||
|     _last_ping: float | ||||
|     _latency: float | ||||
| 
 | ||||
|     def __new__( | ||||
|         cls, | ||||
|         *, | ||||
|         headers: Optional[Dict[str, Union[str, int]]] = None, | ||||
|         auth: Optional[BasicAuth] = None, | ||||
|     ) -> Awaitable[Self]: | ||||
|     def __new__(cls, **kwargs) -> Awaitable[Self]: | ||||
|         # Basically async def __init__ | ||||
|         return cls.__async_init() | ||||
|         return cls.__async_init(**kwargs) | ||||
| 
 | ||||
|     @classmethod | ||||
|     async def __async_init( | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 RGBCube
						RGBCube